From 1657a91ba436cb170110b1985b6314740a187868 Mon Sep 17 00:00:00 2001 From: Engin Diri Date: Mon, 29 Jan 2024 10:48:20 +0100 Subject: [PATCH] Upgrade pulumi-java to 0.9.9 (#283) * make tfgen * make build_sdks --------- Co-authored-by: dirien-bot --- .pulumi-java-gen.version | 1 + provider/go.mod | 4 +- sdk/dotnet/AntiAffinityGroup.cs | 25 + sdk/dotnet/ComputeInstance.cs | 43 +- sdk/dotnet/Database.cs | 2 + sdk/dotnet/Domain.cs | 24 + sdk/dotnet/DomainRecord.cs | 48 + sdk/dotnet/{ElasticIP.cs => ElasticIp.cs} | 98 +- sdk/dotnet/GetAntiAffinityGroup.cs | 68 + sdk/dotnet/GetComputeInstance.cs | 70 + sdk/dotnet/GetComputeInstanceList.cs | 10 + .../{GetDatabaseURI.cs => GetDatabaseUri.cs} | 34 +- sdk/dotnet/GetDomain.cs | 68 + sdk/dotnet/GetDomainRecord.cs | 10 + .../{GetElasticIP.cs => GetElasticIp.cs} | 102 +- .../{GetIAMAPIKey.cs => GetIamApiKey.cs} | 34 +- ...{GetIAMOrgPolicy.cs => GetIamOrgPolicy.cs} | 38 +- sdk/dotnet/{GetIAMRole.cs => GetIamRole.cs} | 38 +- sdk/dotnet/GetInstancePool.cs | 70 + sdk/dotnet/GetInstancePoolList.cs | 10 + sdk/dotnet/{GetNLB.cs => GetNlb.cs} | 96 +- ...NLBServiceList.cs => GetNlbServiceList.cs} | 48 +- sdk/dotnet/GetPrivateNetwork.cs | 70 + sdk/dotnet/GetSecurityGroup.cs | 68 + .../{GetSKSCluster.cs => GetSksCluster.cs} | 34 +- ...SKSClusterList.cs => GetSksClusterList.cs} | 30 +- .../{GetSKSNodepool.cs => GetSksNodepool.cs} | 32 +- ...SNodepoolList.cs => GetSksNodepoolList.cs} | 30 +- sdk/dotnet/GetTemplate.cs | 66 + sdk/dotnet/GetZones.cs | 58 + .../{IAMAccessKey.cs => IamAccessKey.cs} | 72 +- sdk/dotnet/{IAMAPIKey.cs => IamApiKey.cs} | 38 +- .../{IAMOrgPolicy.cs => IamOrgPolicy.cs} | 52 +- sdk/dotnet/{IAMRole.cs => IamRole.cs} | 50 +- ...eckArgs.cs => ElasticIpHealthcheckArgs.cs} | 6 +- ...Args.cs => ElasticIpHealthcheckGetArgs.cs} | 6 +- ...ITimeouts.cs => GetDatabaseUriTimeouts.cs} | 6 +- ...sArgs.cs => GetDatabaseUriTimeoutsArgs.cs} | 6 +- ...KeyTimeouts.cs => GetIamApiKeyTimeouts.cs} | 6 +- ...utsArgs.cs => GetIamApiKeyTimeoutsArgs.cs} | 6 +- ...Timeouts.cs => GetIamOrgPolicyTimeouts.cs} | 6 +- ...Args.cs => GetIamOrgPolicyTimeoutsArgs.cs} | 6 +- ...MRoleTimeouts.cs => GetIamRoleTimeouts.cs} | 6 +- ...tsGetArgs.cs => GetIamRoleTimeoutsArgs.cs} | 6 +- ...meouts.cs => GetNlbServiceListTimeouts.cs} | 6 +- ...gs.cs => GetNlbServiceListTimeoutsArgs.cs} | 6 +- ...SKSClusterOidc.cs => GetSksClusterOidc.cs} | 6 +- ...erOidcArgs.cs => GetSksClusterOidcArgs.cs} | 6 +- ...meoutsArgs.cs => IamApiKeyTimeoutsArgs.cs} | 6 +- ...GetArgs.cs => IamApiKeyTimeoutsGetArgs.cs} | 6 +- ...cesArgs.cs => IamOrgPolicyServicesArgs.cs} | 12 +- ...Args.cs => IamOrgPolicyServicesGetArgs.cs} | 12 +- ...rgs.cs => IamOrgPolicyServicesRuleArgs.cs} | 6 +- ....cs => IamOrgPolicyServicesRuleGetArgs.cs} | 6 +- ...utsArgs.cs => IamOrgPolicyTimeoutsArgs.cs} | 6 +- ...Args.cs => IamOrgPolicyTimeoutsGetArgs.cs} | 6 +- ...RolePolicyArgs.cs => IamRolePolicyArgs.cs} | 12 +- ...licyGetArgs.cs => IamRolePolicyGetArgs.cs} | 12 +- ...esArgs.cs => IamRolePolicyServicesArgs.cs} | 12 +- ...rgs.cs => IamRolePolicyServicesGetArgs.cs} | 12 +- ...gs.cs => IamRolePolicyServicesRuleArgs.cs} | 6 +- ...cs => IamRolePolicyServicesRuleGetArgs.cs} | 6 +- ...TimeoutsArgs.cs => IamRoleTimeoutsArgs.cs} | 6 +- ...tsGetArgs.cs => IamRoleTimeoutsGetArgs.cs} | 6 +- ...ckArgs.cs => NlbServiceHealthcheckArgs.cs} | 6 +- ...rgs.cs => NlbServiceHealthcheckGetArgs.cs} | 6 +- ...usterOidcArgs.cs => SksClusterOidcArgs.cs} | 6 +- ...idcGetArgs.cs => SksClusterOidcGetArgs.cs} | 6 +- sdk/dotnet/InstancePool.cs | 36 + sdk/dotnet/{NLB.cs => Nlb.cs} | 61 +- sdk/dotnet/{NLBService.cs => NlbService.cs} | 101 +- ...Healthcheck.cs => ElasticIpHealthcheck.cs} | 4 +- ...ult.cs => GetDatabaseUriTimeoutsResult.cs} | 4 +- ...lt.cs => GetElasticIpHealthcheckResult.cs} | 4 +- ...esult.cs => GetIamApiKeyTimeoutsResult.cs} | 4 +- ...lt.cs => GetIamOrgPolicyServicesResult.cs} | 8 +- ...s => GetIamOrgPolicyServicesRuleResult.cs} | 4 +- ...lt.cs => GetIamOrgPolicyTimeoutsResult.cs} | 4 +- ...icyResult.cs => GetIamRolePolicyResult.cs} | 8 +- ...t.cs => GetIamRolePolicyServicesResult.cs} | 8 +- ... => GetIamRolePolicyServicesRuleResult.cs} | 4 +- ...sResult.cs => GetIamRoleTimeoutsResult.cs} | 4 +- .../GetNLBServiceListTimeoutsResult.cs | 28 - ...NlbServiceListServiceHealthcheckResult.cs} | 4 +- ...t.cs => GetNlbServiceListServiceResult.cs} | 8 +- .../GetNlbServiceListTimeoutsResult.cs | 28 + ... => GetSksClusterListClusterOidcResult.cs} | 4 +- ...t.cs => GetSksClusterListClusterResult.cs} | 8 +- ...dcResult.cs => GetSksClusterOidcResult.cs} | 4 +- ...cs => GetSksNodepoolListNodepoolResult.cs} | 4 +- ...APIKeyTimeouts.cs => IamApiKeyTimeouts.cs} | 4 +- ...icyServices.cs => IamOrgPolicyServices.cs} | 8 +- ...cesRule.cs => IamOrgPolicyServicesRule.cs} | 4 +- ...icyTimeouts.cs => IamOrgPolicyTimeouts.cs} | 4 +- .../{IAMRolePolicy.cs => IamRolePolicy.cs} | 8 +- ...cyServices.cs => IamRolePolicyServices.cs} | 8 +- ...esRule.cs => IamRolePolicyServicesRule.cs} | 4 +- ...{IAMRoleTimeouts.cs => IamRoleTimeouts.cs} | 4 +- ...ealthcheck.cs => NlbServiceHealthcheck.cs} | 4 +- .../{SKSClusterOidc.cs => SksClusterOidc.cs} | 4 +- sdk/dotnet/PrivateNetwork.cs | 48 + sdk/dotnet/SecurityGroup.cs | 24 + sdk/dotnet/SecurityGroupRule.cs | 30 + sdk/dotnet/{SKSCluster.cs => SksCluster.cs} | 69 +- .../{SKSKubeconfig.cs => SksKubeconfig.cs} | 32 +- sdk/dotnet/{SKSNodepool.cs => SksNodepool.cs} | 71 +- sdk/dotnet/{SSHKey.cs => SshKey.cs} | 34 +- sdk/go/exoscale/antiAffinityGroup.go | 33 + sdk/go/exoscale/computeInstance.go | 57 +- sdk/go/exoscale/database.go | 2 + sdk/go/exoscale/domain.go | 33 + sdk/go/exoscale/domainRecord.go | 58 + sdk/go/exoscale/elasticIP.go | 328 -- sdk/go/exoscale/elasticIp.go | 401 ++ sdk/go/exoscale/getAntiAffinityGroup.go | 33 + sdk/go/exoscale/getComputeInstance.go | 34 + sdk/go/exoscale/getComputeInstanceList.go | 3 + sdk/go/exoscale/getDatabaseURI.go | 124 - sdk/go/exoscale/getDatabaseUri.go | 124 + sdk/go/exoscale/getDomain.go | 33 + sdk/go/exoscale/getDomainRecord.go | 3 + sdk/go/exoscale/getElasticIP.go | 149 - sdk/go/exoscale/getElasticIp.go | 183 + sdk/go/exoscale/getIAMAPIKey.go | 112 - sdk/go/exoscale/getIAMOrgPolicy.go | 101 - sdk/go/exoscale/getIAMRole.go | 137 - sdk/go/exoscale/getIamApiKey.go | 112 + sdk/go/exoscale/getIamOrgPolicy.go | 101 + sdk/go/exoscale/getIamRole.go | 137 + sdk/go/exoscale/getInstancePool.go | 34 + sdk/go/exoscale/getInstancePoolList.go | 3 + sdk/go/exoscale/getNLB.go | 131 - sdk/go/exoscale/getNLBServiceList.go | 124 - sdk/go/exoscale/getNlb.go | 165 + sdk/go/exoscale/getNlbServiceList.go | 127 + sdk/go/exoscale/getPrivateNetwork.go | 34 + sdk/go/exoscale/getSecurityGroup.go | 33 + .../{getSKSCluster.go => getSksCluster.go} | 134 +- ...SKSClusterList.go => getSksClusterList.go} | 122 +- .../{getSKSNodepool.go => getSksNodepool.go} | 140 +- ...SNodepoolList.go => getSksNodepoolList.go} | 126 +- sdk/go/exoscale/getTemplate.go | 32 + sdk/go/exoscale/getZones.go | 29 + sdk/go/exoscale/iamAccessKey.go | 337 ++ sdk/go/exoscale/iamApiKey.go | 268 ++ sdk/go/exoscale/iamOrgPolicy.go | 245 ++ sdk/go/exoscale/iamRole.go | 299 ++ sdk/go/exoscale/iamaccessKey.go | 293 -- sdk/go/exoscale/iamapikey.go | 268 -- sdk/go/exoscale/iamorgPolicy.go | 245 -- sdk/go/exoscale/iamrole.go | 299 -- sdk/go/exoscale/init.go | 70 +- sdk/go/exoscale/instancePool.go | 44 + sdk/go/exoscale/nlb.go | 231 +- sdk/go/exoscale/nlbService.go | 442 +++ sdk/go/exoscale/nlbservice.go | 388 -- sdk/go/exoscale/privateNetwork.go | 64 + sdk/go/exoscale/pulumiTypes.go | 3350 ++++++++--------- sdk/go/exoscale/securityGroup.go | 33 + sdk/go/exoscale/securityGroupRule.go | 40 + .../exoscale/{skscluster.go => sksCluster.go} | 292 +- .../{skskubeconfig.go => sksKubeconfig.go} | 202 +- .../{sksnodepool.go => sksNodepool.go} | 304 +- sdk/go/exoscale/sshKey.go | 257 ++ sdk/go/exoscale/sshkey.go | 257 -- sdk/nodejs/antiAffinityGroup.ts | 16 + sdk/nodejs/computeInstance.ts | 34 +- sdk/nodejs/database.ts | 2 + sdk/nodejs/domain.ts | 18 + sdk/nodejs/domainRecord.ts | 36 + sdk/nodejs/{elasticIP.ts => elasticIp.ts} | 85 +- sdk/nodejs/getAntiAffinityGroup.ts | 40 + sdk/nodejs/getComputeInstance.ts | 42 + sdk/nodejs/getComputeInstanceList.ts | 10 + .../{getDatabaseURI.ts => getDatabaseUri.ts} | 26 +- sdk/nodejs/getDomain.ts | 40 + sdk/nodejs/getDomainRecord.ts | 10 + .../{getElasticIP.ts => getElasticIp.ts} | 64 +- .../{getIAMAPIKey.ts => getIamApiKey.ts} | 26 +- ...{getIAMOrgPolicy.ts => getIamOrgPolicy.ts} | 28 +- sdk/nodejs/{getIAMRole.ts => getIamRole.ts} | 28 +- sdk/nodejs/getInstancePool.ts | 42 + sdk/nodejs/getInstancePoolList.ts | 10 + sdk/nodejs/{getNLB.ts => getNlb.ts} | 62 +- ...NLBServiceList.ts => getNlbServiceList.ts} | 38 +- sdk/nodejs/getPrivateNetwork.ts | 42 + sdk/nodejs/getSecurityGroup.ts | 40 + .../{getSKSCluster.ts => getSksCluster.ts} | 26 +- ...SKSClusterList.ts => getSksClusterList.ts} | 22 +- .../{getSKSNodepool.ts => getSksNodepool.ts} | 26 +- ...SNodepoolList.ts => getSksNodepoolList.ts} | 22 +- sdk/nodejs/getTemplate.ts | 38 + sdk/nodejs/getZones.ts | 32 + .../{iamaccessKey.ts => iamAccessKey.ts} | 58 +- sdk/nodejs/{iamapikey.ts => iamApiKey.ts} | 42 +- .../{iamorgPolicy.ts => iamOrgPolicy.ts} | 48 +- sdk/nodejs/{iamrole.ts => iamRole.ts} | 54 +- sdk/nodejs/index.ts | 250 +- sdk/nodejs/instancePool.ts | 27 + sdk/nodejs/nlb.ts | 56 +- sdk/nodejs/{nlbservice.ts => nlbService.ts} | 82 +- sdk/nodejs/privateNetwork.ts | 32 + sdk/nodejs/securityGroup.ts | 18 + sdk/nodejs/securityGroupRule.ts | 22 + sdk/nodejs/{skscluster.ts => sksCluster.ts} | 61 +- .../{skskubeconfig.ts => sksKubeconfig.ts} | 36 +- sdk/nodejs/{sksnodepool.ts => sksNodepool.ts} | 64 +- sdk/nodejs/{sshkey.ts => sshKey.ts} | 38 +- sdk/nodejs/tsconfig.json | 42 +- sdk/nodejs/types/input.ts | 52 +- sdk/nodejs/types/output.ts | 72 +- sdk/python/pulumiverse_exoscale/__init__.py | 56 +- sdk/python/pulumiverse_exoscale/_inputs.py | 92 +- .../anti_affinity_group.py | 32 + .../pulumiverse_exoscale/compute_instance.py | 64 +- sdk/python/pulumiverse_exoscale/database.py | 4 + sdk/python/pulumiverse_exoscale/domain.py | 36 + .../pulumiverse_exoscale/domain_record.py | 76 + sdk/python/pulumiverse_exoscale/elastic_ip.py | 144 +- .../get_anti_affinity_group.py | 36 +- .../get_compute_instance.py | 38 +- .../get_compute_instance_list.py | 8 +- .../pulumiverse_exoscale/get_database_uri.py | 26 +- sdk/python/pulumiverse_exoscale/get_domain.py | 36 +- .../pulumiverse_exoscale/get_domain_record.py | 10 +- .../pulumiverse_exoscale/get_elastic_ip.py | 60 +- .../pulumiverse_exoscale/get_iam_api_key.py | 131 + .../get_iam_org_policy.py | 28 +- .../pulumiverse_exoscale/get_iam_role.py | 28 +- .../pulumiverse_exoscale/get_instance_pool.py | 38 +- .../get_instance_pool_list.py | 8 +- sdk/python/pulumiverse_exoscale/get_nlb.py | 58 +- .../get_nlb_service_list.py | 38 +- .../get_private_network.py | 38 +- .../get_security_group.py | 36 +- .../pulumiverse_exoscale/get_sks_cluster.py | 30 +- .../get_sks_cluster_list.py | 22 +- .../pulumiverse_exoscale/get_sks_nodepool.py | 26 +- .../get_sks_nodepool_list.py | 22 +- .../pulumiverse_exoscale/get_template.py | 34 +- sdk/python/pulumiverse_exoscale/get_zones.py | 30 +- .../pulumiverse_exoscale/iam_access_key.py | 74 +- .../pulumiverse_exoscale/iam_api_key.py | 285 ++ .../pulumiverse_exoscale/iam_org_policy.py | 82 +- sdk/python/pulumiverse_exoscale/iam_role.py | 92 +- .../pulumiverse_exoscale/instance_pool.py | 48 + sdk/python/pulumiverse_exoscale/nlb.py | 72 +- .../pulumiverse_exoscale/nlb_service.py | 140 +- sdk/python/pulumiverse_exoscale/outputs.py | 180 +- .../pulumiverse_exoscale/private_network.py | 62 + .../pulumiverse_exoscale/security_group.py | 36 + .../security_group_rule.py | 42 + .../pulumiverse_exoscale/sks_cluster.py | 98 +- .../pulumiverse_exoscale/sks_kubeconfig.py | 36 +- .../pulumiverse_exoscale/sks_nodepool.py | 88 +- sdk/python/pulumiverse_exoscale/ssh_key.py | 36 +- 256 files changed, 11640 insertions(+), 7218 deletions(-) create mode 100644 .pulumi-java-gen.version rename sdk/dotnet/{ElasticIP.cs => ElasticIp.cs} (69%) rename sdk/dotnet/{GetDatabaseURI.cs => GetDatabaseUri.cs} (69%) rename sdk/dotnet/{GetElasticIP.cs => GetElasticIp.cs} (56%) rename sdk/dotnet/{GetIAMAPIKey.cs => GetIamApiKey.cs} (63%) rename sdk/dotnet/{GetIAMOrgPolicy.cs => GetIamOrgPolicy.cs} (55%) rename sdk/dotnet/{GetIAMRole.cs => GetIamRole.cs} (72%) rename sdk/dotnet/{GetNLB.cs => GetNlb.cs} (51%) rename sdk/dotnet/{GetNLBServiceList.cs => GetNlbServiceList.cs} (58%) rename sdk/dotnet/{GetSKSCluster.cs => GetSksCluster.cs} (92%) rename sdk/dotnet/{GetSKSClusterList.cs => GetSksClusterList.cs} (87%) rename sdk/dotnet/{GetSKSNodepool.cs => GetSksNodepool.cs} (93%) rename sdk/dotnet/{GetSKSNodepoolList.cs => GetSksNodepoolList.cs} (88%) rename sdk/dotnet/{IAMAccessKey.cs => IamAccessKey.cs} (76%) rename sdk/dotnet/{IAMAPIKey.cs => IamApiKey.cs} (77%) rename sdk/dotnet/{IAMOrgPolicy.cs => IamOrgPolicy.cs} (68%) rename sdk/dotnet/{IAMRole.cs => IamRole.cs} (79%) rename sdk/dotnet/Inputs/{ElasticIPHealthcheckArgs.cs => ElasticIpHealthcheckArgs.cs} (92%) rename sdk/dotnet/Inputs/{ElasticIPHealthcheckGetArgs.cs => ElasticIpHealthcheckGetArgs.cs} (92%) rename sdk/dotnet/Inputs/{GetDatabaseURITimeouts.cs => GetDatabaseUriTimeouts.cs} (80%) rename sdk/dotnet/Inputs/{GetDatabaseURITimeoutsArgs.cs => GetDatabaseUriTimeoutsArgs.cs} (79%) rename sdk/dotnet/Inputs/{GetIAMAPIKeyTimeouts.cs => GetIamApiKeyTimeouts.cs} (80%) rename sdk/dotnet/Inputs/{GetIAMAPIKeyTimeoutsArgs.cs => GetIamApiKeyTimeoutsArgs.cs} (80%) rename sdk/dotnet/Inputs/{GetIAMOrgPolicyTimeouts.cs => GetIamOrgPolicyTimeouts.cs} (80%) rename sdk/dotnet/Inputs/{GetIAMOrgPolicyTimeoutsArgs.cs => GetIamOrgPolicyTimeoutsArgs.cs} (79%) rename sdk/dotnet/Inputs/{GetIAMRoleTimeouts.cs => GetIamRoleTimeouts.cs} (81%) rename sdk/dotnet/Inputs/{IAMOrgPolicyTimeoutsGetArgs.cs => GetIamRoleTimeoutsArgs.cs} (80%) rename sdk/dotnet/Inputs/{GetNLBServiceListTimeouts.cs => GetNlbServiceListTimeouts.cs} (79%) rename sdk/dotnet/Inputs/{GetNLBServiceListTimeoutsArgs.cs => GetNlbServiceListTimeoutsArgs.cs} (79%) rename sdk/dotnet/Inputs/{GetSKSClusterOidc.cs => GetSksClusterOidc.cs} (91%) rename sdk/dotnet/Inputs/{GetSKSClusterOidcArgs.cs => GetSksClusterOidcArgs.cs} (90%) rename sdk/dotnet/Inputs/{IAMAPIKeyTimeoutsArgs.cs => IamApiKeyTimeoutsArgs.cs} (81%) rename sdk/dotnet/Inputs/{IAMAPIKeyTimeoutsGetArgs.cs => IamApiKeyTimeoutsGetArgs.cs} (81%) rename sdk/dotnet/Inputs/{IAMOrgPolicyServicesArgs.cs => IamOrgPolicyServicesArgs.cs} (67%) rename sdk/dotnet/Inputs/{IAMOrgPolicyServicesGetArgs.cs => IamOrgPolicyServicesGetArgs.cs} (67%) rename sdk/dotnet/Inputs/{IAMOrgPolicyServicesRuleArgs.cs => IamOrgPolicyServicesRuleArgs.cs} (84%) rename sdk/dotnet/Inputs/{IAMOrgPolicyServicesRuleGetArgs.cs => IamOrgPolicyServicesRuleGetArgs.cs} (83%) rename sdk/dotnet/Inputs/{IAMOrgPolicyTimeoutsArgs.cs => IamOrgPolicyTimeoutsArgs.cs} (81%) rename sdk/dotnet/Inputs/{GetIAMRoleTimeoutsArgs.cs => IamOrgPolicyTimeoutsGetArgs.cs} (80%) rename sdk/dotnet/Inputs/{IAMRolePolicyArgs.cs => IamRolePolicyArgs.cs} (73%) rename sdk/dotnet/Inputs/{IAMRolePolicyGetArgs.cs => IamRolePolicyGetArgs.cs} (73%) rename sdk/dotnet/Inputs/{IAMRolePolicyServicesArgs.cs => IamRolePolicyServicesArgs.cs} (67%) rename sdk/dotnet/Inputs/{IAMRolePolicyServicesGetArgs.cs => IamRolePolicyServicesGetArgs.cs} (67%) rename sdk/dotnet/Inputs/{IAMRolePolicyServicesRuleArgs.cs => IamRolePolicyServicesRuleArgs.cs} (83%) rename sdk/dotnet/Inputs/{IAMRolePolicyServicesRuleGetArgs.cs => IamRolePolicyServicesRuleGetArgs.cs} (83%) rename sdk/dotnet/Inputs/{IAMRoleTimeoutsArgs.cs => IamRoleTimeoutsArgs.cs} (83%) rename sdk/dotnet/Inputs/{IAMRoleTimeoutsGetArgs.cs => IamRoleTimeoutsGetArgs.cs} (81%) rename sdk/dotnet/Inputs/{NLBServiceHealthcheckArgs.cs => NlbServiceHealthcheckArgs.cs} (89%) rename sdk/dotnet/Inputs/{NLBServiceHealthcheckGetArgs.cs => NlbServiceHealthcheckGetArgs.cs} (89%) rename sdk/dotnet/Inputs/{SKSClusterOidcArgs.cs => SksClusterOidcArgs.cs} (92%) rename sdk/dotnet/Inputs/{SKSClusterOidcGetArgs.cs => SksClusterOidcGetArgs.cs} (92%) rename sdk/dotnet/{NLB.cs => Nlb.cs} (78%) rename sdk/dotnet/{NLBService.cs => NlbService.cs} (72%) rename sdk/dotnet/Outputs/{ElasticIPHealthcheck.cs => ElasticIpHealthcheck.cs} (96%) rename sdk/dotnet/Outputs/{GetDatabaseURITimeoutsResult.cs => GetDatabaseUriTimeoutsResult.cs} (88%) rename sdk/dotnet/Outputs/{GetElasticIPHealthcheckResult.cs => GetElasticIpHealthcheckResult.cs} (92%) rename sdk/dotnet/Outputs/{GetIAMAPIKeyTimeoutsResult.cs => GetIamApiKeyTimeoutsResult.cs} (88%) rename sdk/dotnet/Outputs/{GetIAMOrgPolicyServicesResult.cs => GetIamOrgPolicyServicesResult.cs} (77%) rename sdk/dotnet/Outputs/{GetIAMOrgPolicyServicesRuleResult.cs => GetIamOrgPolicyServicesRuleResult.cs} (90%) rename sdk/dotnet/Outputs/{GetIAMOrgPolicyTimeoutsResult.cs => GetIamOrgPolicyTimeoutsResult.cs} (88%) rename sdk/dotnet/Outputs/{GetIAMRolePolicyResult.cs => GetIamRolePolicyResult.cs} (82%) rename sdk/dotnet/Outputs/{GetIAMRolePolicyServicesResult.cs => GetIamRolePolicyServicesResult.cs} (77%) rename sdk/dotnet/Outputs/{GetIAMRolePolicyServicesRuleResult.cs => GetIamRolePolicyServicesRuleResult.cs} (89%) rename sdk/dotnet/Outputs/{GetIAMRoleTimeoutsResult.cs => GetIamRoleTimeoutsResult.cs} (89%) delete mode 100644 sdk/dotnet/Outputs/GetNLBServiceListTimeoutsResult.cs rename sdk/dotnet/Outputs/{GetNLBServiceListServiceHealthcheckResult.cs => GetNlbServiceListServiceHealthcheckResult.cs} (89%) rename sdk/dotnet/Outputs/{GetNLBServiceListServiceResult.cs => GetNlbServiceListServiceResult.cs} (90%) create mode 100644 sdk/dotnet/Outputs/GetNlbServiceListTimeoutsResult.cs rename sdk/dotnet/Outputs/{GetSKSClusterListClusterOidcResult.cs => GetSksClusterListClusterOidcResult.cs} (92%) rename sdk/dotnet/Outputs/{GetSKSClusterListClusterResult.cs => GetSksClusterListClusterResult.cs} (91%) rename sdk/dotnet/Outputs/{GetSKSClusterOidcResult.cs => GetSksClusterOidcResult.cs} (95%) rename sdk/dotnet/Outputs/{GetSKSNodepoolListNodepoolResult.cs => GetSksNodepoolListNodepoolResult.cs} (96%) rename sdk/dotnet/Outputs/{IAMAPIKeyTimeouts.cs => IamApiKeyTimeouts.cs} (90%) rename sdk/dotnet/Outputs/{IAMOrgPolicyServices.cs => IamOrgPolicyServices.cs} (79%) rename sdk/dotnet/Outputs/{IAMOrgPolicyServicesRule.cs => IamOrgPolicyServicesRule.cs} (91%) rename sdk/dotnet/Outputs/{IAMOrgPolicyTimeouts.cs => IamOrgPolicyTimeouts.cs} (90%) rename sdk/dotnet/Outputs/{IAMRolePolicy.cs => IamRolePolicy.cs} (81%) rename sdk/dotnet/Outputs/{IAMRolePolicyServices.cs => IamRolePolicyServices.cs} (78%) rename sdk/dotnet/Outputs/{IAMRolePolicyServicesRule.cs => IamRolePolicyServicesRule.cs} (91%) rename sdk/dotnet/Outputs/{IAMRoleTimeouts.cs => IamRoleTimeouts.cs} (91%) rename sdk/dotnet/Outputs/{NLBServiceHealthcheck.cs => NlbServiceHealthcheck.cs} (95%) rename sdk/dotnet/Outputs/{SKSClusterOidc.cs => SksClusterOidc.cs} (96%) rename sdk/dotnet/{SKSCluster.cs => SksCluster.cs} (86%) rename sdk/dotnet/{SKSKubeconfig.cs => SksKubeconfig.cs} (89%) rename sdk/dotnet/{SKSNodepool.cs => SksNodepool.cs} (87%) rename sdk/dotnet/{SSHKey.cs => SshKey.cs} (77%) delete mode 100644 sdk/go/exoscale/elasticIP.go create mode 100644 sdk/go/exoscale/elasticIp.go delete mode 100644 sdk/go/exoscale/getDatabaseURI.go create mode 100644 sdk/go/exoscale/getDatabaseUri.go delete mode 100644 sdk/go/exoscale/getElasticIP.go create mode 100644 sdk/go/exoscale/getElasticIp.go delete mode 100644 sdk/go/exoscale/getIAMAPIKey.go delete mode 100644 sdk/go/exoscale/getIAMOrgPolicy.go delete mode 100644 sdk/go/exoscale/getIAMRole.go create mode 100644 sdk/go/exoscale/getIamApiKey.go create mode 100644 sdk/go/exoscale/getIamOrgPolicy.go create mode 100644 sdk/go/exoscale/getIamRole.go delete mode 100644 sdk/go/exoscale/getNLB.go delete mode 100644 sdk/go/exoscale/getNLBServiceList.go create mode 100644 sdk/go/exoscale/getNlb.go create mode 100644 sdk/go/exoscale/getNlbServiceList.go rename sdk/go/exoscale/{getSKSCluster.go => getSksCluster.go} (72%) rename sdk/go/exoscale/{getSKSClusterList.go => getSksClusterList.go} (65%) rename sdk/go/exoscale/{getSKSNodepool.go => getSksNodepool.go} (66%) rename sdk/go/exoscale/{getSKSNodepoolList.go => getSksNodepoolList.go} (66%) create mode 100644 sdk/go/exoscale/iamAccessKey.go create mode 100644 sdk/go/exoscale/iamApiKey.go create mode 100644 sdk/go/exoscale/iamOrgPolicy.go create mode 100644 sdk/go/exoscale/iamRole.go delete mode 100644 sdk/go/exoscale/iamaccessKey.go delete mode 100644 sdk/go/exoscale/iamapikey.go delete mode 100644 sdk/go/exoscale/iamorgPolicy.go delete mode 100644 sdk/go/exoscale/iamrole.go create mode 100644 sdk/go/exoscale/nlbService.go delete mode 100644 sdk/go/exoscale/nlbservice.go rename sdk/go/exoscale/{skscluster.go => sksCluster.go} (64%) rename sdk/go/exoscale/{skskubeconfig.go => sksKubeconfig.go} (62%) rename sdk/go/exoscale/{sksnodepool.go => sksNodepool.go} (59%) create mode 100644 sdk/go/exoscale/sshKey.go delete mode 100644 sdk/go/exoscale/sshkey.go rename sdk/nodejs/{elasticIP.ts => elasticIp.ts} (72%) rename sdk/nodejs/{getDatabaseURI.ts => getDatabaseUri.ts} (65%) rename sdk/nodejs/{getElasticIP.ts => getElasticIp.ts} (57%) rename sdk/nodejs/{getIAMAPIKey.ts => getIamApiKey.ts} (60%) rename sdk/nodejs/{getIAMOrgPolicy.ts => getIamOrgPolicy.ts} (54%) rename sdk/nodejs/{getIAMRole.ts => getIamRole.ts} (68%) rename sdk/nodejs/{getNLB.ts => getNlb.ts} (51%) rename sdk/nodejs/{getNLBServiceList.ts => getNlbServiceList.ts} (55%) rename sdk/nodejs/{getSKSCluster.ts => getSksCluster.ts} (92%) rename sdk/nodejs/{getSKSClusterList.ts => getSksClusterList.ts} (86%) rename sdk/nodejs/{getSKSNodepool.ts => getSksNodepool.ts} (88%) rename sdk/nodejs/{getSKSNodepoolList.ts => getSksNodepoolList.ts} (86%) rename sdk/nodejs/{iamaccessKey.ts => iamAccessKey.ts} (72%) rename sdk/nodejs/{iamapikey.ts => iamApiKey.ts} (72%) rename sdk/nodejs/{iamorgPolicy.ts => iamOrgPolicy.ts} (68%) rename sdk/nodejs/{iamrole.ts => iamRole.ts} (74%) rename sdk/nodejs/{nlbservice.ts => nlbService.ts} (76%) rename sdk/nodejs/{skscluster.ts => sksCluster.ts} (87%) rename sdk/nodejs/{skskubeconfig.ts => sksKubeconfig.ts} (87%) rename sdk/nodejs/{sksnodepool.ts => sksNodepool.ts} (85%) rename sdk/nodejs/{sshkey.ts => sshKey.ts} (73%) create mode 100644 sdk/python/pulumiverse_exoscale/get_iam_api_key.py create mode 100644 sdk/python/pulumiverse_exoscale/iam_api_key.py diff --git a/.pulumi-java-gen.version b/.pulumi-java-gen.version new file mode 100644 index 00000000..6f060dcb --- /dev/null +++ b/.pulumi-java-gen.version @@ -0,0 +1 @@ +0.9.9 \ No newline at end of file diff --git a/provider/go.mod b/provider/go.mod index c83e6d46..9f85bb2c 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -1,6 +1,8 @@ module github.com/pulumiverse/pulumi-exoscale/provider -go 1.20 +go 1.21 + +toolchain go1.21.6 replace ( github.com/exoscale/terraform-provider-exoscale/shim => ./shim diff --git a/sdk/dotnet/AntiAffinityGroup.cs b/sdk/dotnet/AntiAffinityGroup.cs index 04fa326d..55555606 100644 --- a/sdk/dotnet/AntiAffinityGroup.cs +++ b/sdk/dotnet/AntiAffinityGroup.cs @@ -11,6 +11,31 @@ namespace Pulumiverse.Exoscale { /// + /// Manage Exoscale [Anti-Affinity Groups](https://community.exoscale.com/documentation/compute/anti-affinity-groups/). + /// + /// Corresponding data source: exoscale_anti_affinity_group. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumiverse.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myAntiAffinityGroup = new Exoscale.AntiAffinityGroup("myAntiAffinityGroup", new() + /// { + /// Description = "Prevent compute instances to run on the same host", + /// }); + /// + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// /// ## Import /// /// An existing anti-affinity group may be imported by `<ID>` diff --git a/sdk/dotnet/ComputeInstance.cs b/sdk/dotnet/ComputeInstance.cs index a662c0da..85b9db0c 100644 --- a/sdk/dotnet/ComputeInstance.cs +++ b/sdk/dotnet/ComputeInstance.cs @@ -11,6 +11,43 @@ namespace Pulumiverse.Exoscale { /// + /// Manage Exoscale [Compute Instances](https://community.exoscale.com/documentation/compute/). + /// + /// Corresponding data sources: exoscale_compute_instance, exoscale_compute_instance_list. + /// + /// After the creation, you can retrieve the password of an instance with [Exoscale CLI](https://github.com/exoscale/cli): `exo compute instance reveal-password NAME`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumi.Exoscale; + /// using Exoscale = Pulumiverse.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myTemplate = Exoscale.GetTemplate.Invoke(new() + /// { + /// Zone = "ch-gva-2", + /// Name = "Linux Ubuntu 22.04 LTS 64-bit", + /// }); + /// + /// var myInstance = new Exoscale.ComputeInstance("myInstance", new() + /// { + /// Zone = "ch-gva-2", + /// TemplateId = myTemplate.Apply(getTemplateResult => getTemplateResult.Id), + /// Type = "standard.medium", + /// DiskSize = 10, + /// }); + /// + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// /// ## Import /// /// An existing compute instance may be imported by `<ID>@<zone>` @@ -45,7 +82,7 @@ public partial class ComputeInstance : global::Pulumi.CustomResource public Output DeployTargetId { get; private set; } = null!; /// - /// The instance disk size (GiB; at least `10`). **WARNING**: updating this attribute stops/restarts the instance. + /// The instance disk size (GiB; at least `10`). Can not be decreased after creation. **WARNING**: updating this attribute stops/restarts the instance. /// [Output("diskSize")] public Output DiskSize { get; private set; } = null!; @@ -218,7 +255,7 @@ public InputList AntiAffinityGroupIds public Input? DeployTargetId { get; set; } /// - /// The instance disk size (GiB; at least `10`). **WARNING**: updating this attribute stops/restarts the instance. + /// The instance disk size (GiB; at least `10`). Can not be decreased after creation. **WARNING**: updating this attribute stops/restarts the instance. /// [Input("diskSize")] public Input? DiskSize { get; set; } @@ -364,7 +401,7 @@ public InputList AntiAffinityGroupIds public Input? DeployTargetId { get; set; } /// - /// The instance disk size (GiB; at least `10`). **WARNING**: updating this attribute stops/restarts the instance. + /// The instance disk size (GiB; at least `10`). Can not be decreased after creation. **WARNING**: updating this attribute stops/restarts the instance. /// [Input("diskSize")] public Input? DiskSize { get; set; } diff --git a/sdk/dotnet/Database.cs b/sdk/dotnet/Database.cs index e0920080..7d8f8708 100644 --- a/sdk/dotnet/Database.cs +++ b/sdk/dotnet/Database.cs @@ -11,6 +11,8 @@ namespace Pulumiverse.Exoscale { /// + /// Manage Exoscale [Database Services (DBaaS)](https://community.exoscale.com/documentation/dbaas/). + /// /// ## Import /// /// An existing database service may be imported by `<name>@<zone>` diff --git a/sdk/dotnet/Domain.cs b/sdk/dotnet/Domain.cs index 5af015ac..7446aee3 100644 --- a/sdk/dotnet/Domain.cs +++ b/sdk/dotnet/Domain.cs @@ -11,6 +11,30 @@ namespace Pulumiverse.Exoscale { /// + /// Manage Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domains. + /// + /// Corresponding data source: exoscale_domain. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumiverse.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myDomain = new Exoscale.Domain("myDomain"); + /// + /// }); + /// ``` + /// + /// Next step is to attach exoscale_domain_record(s) to the domain. + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// /// ## Import /// /// An existing DNS domain may be imported by `ID` diff --git a/sdk/dotnet/DomainRecord.cs b/sdk/dotnet/DomainRecord.cs index 05ca5748..4eeafb3a 100644 --- a/sdk/dotnet/DomainRecord.cs +++ b/sdk/dotnet/DomainRecord.cs @@ -11,6 +11,42 @@ namespace Pulumiverse.Exoscale { /// + /// Manage Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domain Records. + /// + /// Corresponding data source: exoscale_domain_record. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumiverse.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myDomain = new Exoscale.Domain("myDomain"); + /// + /// var myHost = new Exoscale.DomainRecord("myHost", new() + /// { + /// Domain = myDomain.Id, + /// RecordType = "A", + /// Content = "1.2.3.4", + /// }); + /// + /// var myHostAlias = new Exoscale.DomainRecord("myHostAlias", new() + /// { + /// Domain = myDomain.Id, + /// RecordType = "CNAME", + /// Content = myHost.Hostname, + /// }); + /// + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// /// ## Import /// /// An existing DNS domain record may be imported by `<ID>` @@ -32,6 +68,12 @@ public partial class DomainRecord : global::Pulumi.CustomResource [Output("content")] public Output Content { get; private set; } = null!; + /// + /// The normalized value of the record + /// + [Output("contentNormalized")] + public Output ContentNormalized { get; private set; } = null!; + /// /// ❗ The parent exoscale.Domain to attach the record to. /// @@ -165,6 +207,12 @@ public sealed class DomainRecordState : global::Pulumi.ResourceArgs [Input("content")] public Input? Content { get; set; } + /// + /// The normalized value of the record + /// + [Input("contentNormalized")] + public Input? ContentNormalized { get; set; } + /// /// ❗ The parent exoscale.Domain to attach the record to. /// diff --git a/sdk/dotnet/ElasticIP.cs b/sdk/dotnet/ElasticIp.cs similarity index 69% rename from sdk/dotnet/ElasticIP.cs rename to sdk/dotnet/ElasticIp.cs index 02f33794..d588ac27 100644 --- a/sdk/dotnet/ElasticIP.cs +++ b/sdk/dotnet/ElasticIp.cs @@ -11,20 +11,78 @@ namespace Pulumiverse.Exoscale { /// + /// Manage Exoscale [Elastic IPs (EIP)](https://community.exoscale.com/documentation/compute/eip/). + /// + /// Corresponding data source: exoscale_elastic_ip. + /// + /// ## Example Usage + /// + /// *Unmanaged* EIPv4: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumiverse.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myElasticIp = new Exoscale.ElasticIp("myElasticIp", new() + /// { + /// Zone = "ch-gva-2", + /// }); + /// + /// }); + /// ``` + /// + /// *Managed* EIPv6: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumiverse.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myManagedElasticIp = new Exoscale.ElasticIp("myManagedElasticIp", new() + /// { + /// AddressFamily = "inet6", + /// Healthcheck = new Exoscale.Inputs.ElasticIpHealthcheckArgs + /// { + /// Interval = 5, + /// Mode = "https", + /// Port = 443, + /// StrikesFail = 3, + /// StrikesOk = 2, + /// Timeout = 3, + /// TlsSni = "example.net", + /// Uri = "/health", + /// }, + /// ReverseDns = "example.net", + /// Zone = "ch-gva-2", + /// }); + /// + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// /// ## Import /// /// An existing Elastic IP (EIP) may be imported by `<ID>@<zone>` /// /// ```sh - /// $ pulumi import exoscale:index/elasticIP:ElasticIP \ + /// $ pulumi import exoscale:index/elasticIp:ElasticIp \ /// ``` /// /// exoscale_elastic_ip.my_elastic_ip \ /// /// f81d4fae-7dec-11d0-a765-00a0c91e6bf6@ch-gva-2 /// - [ExoscaleResourceType("exoscale:index/elasticIP:ElasticIP")] - public partial class ElasticIP : global::Pulumi.CustomResource + [ExoscaleResourceType("exoscale:index/elasticIp:ElasticIp")] + public partial class ElasticIp : global::Pulumi.CustomResource { /// /// ❗ The Elastic IP (EIP) address family (`inet4` or `inet6`; default: `inet4`). @@ -48,7 +106,7 @@ public partial class ElasticIP : global::Pulumi.CustomResource /// Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. /// [Output("healthcheck")] - public Output Healthcheck { get; private set; } = null!; + public Output Healthcheck { get; private set; } = null!; /// /// The Elastic IP (EIP) IPv4 or IPv6 address. @@ -76,19 +134,19 @@ public partial class ElasticIP : global::Pulumi.CustomResource /// - /// Create a ElasticIP resource with the given unique name, arguments, and options. + /// Create a ElasticIp 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 ElasticIP(string name, ElasticIPArgs args, CustomResourceOptions? options = null) - : base("exoscale:index/elasticIP:ElasticIP", name, args ?? new ElasticIPArgs(), MakeResourceOptions(options, "")) + public ElasticIp(string name, ElasticIpArgs args, CustomResourceOptions? options = null) + : base("exoscale:index/elasticIp:ElasticIp", name, args ?? new ElasticIpArgs(), MakeResourceOptions(options, "")) { } - private ElasticIP(string name, Input id, ElasticIPState? state = null, CustomResourceOptions? options = null) - : base("exoscale:index/elasticIP:ElasticIP", name, state, MakeResourceOptions(options, id)) + private ElasticIp(string name, Input id, ElasticIpState? state = null, CustomResourceOptions? options = null) + : base("exoscale:index/elasticIp:ElasticIp", name, state, MakeResourceOptions(options, id)) { } @@ -105,7 +163,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? return merged; } /// - /// Get an existing ElasticIP resource's state with the given name, ID, and optional extra + /// Get an existing ElasticIp resource's state with the given name, ID, and optional extra /// properties used to qualify the lookup. /// /// @@ -113,13 +171,13 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? /// 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 ElasticIP Get(string name, Input id, ElasticIPState? state = null, CustomResourceOptions? options = null) + public static ElasticIp Get(string name, Input id, ElasticIpState? state = null, CustomResourceOptions? options = null) { - return new ElasticIP(name, id, state, options); + return new ElasticIp(name, id, state, options); } } - public sealed class ElasticIPArgs : global::Pulumi.ResourceArgs + public sealed class ElasticIpArgs : global::Pulumi.ResourceArgs { /// /// ❗ The Elastic IP (EIP) address family (`inet4` or `inet6`; default: `inet4`). @@ -137,7 +195,7 @@ public sealed class ElasticIPArgs : global::Pulumi.ResourceArgs /// Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. /// [Input("healthcheck")] - public Input? Healthcheck { get; set; } + public Input? Healthcheck { get; set; } [Input("labels")] private InputMap? _labels; @@ -163,13 +221,13 @@ public InputMap Labels [Input("zone", required: true)] public Input Zone { get; set; } = null!; - public ElasticIPArgs() + public ElasticIpArgs() { } - public static new ElasticIPArgs Empty => new ElasticIPArgs(); + public static new ElasticIpArgs Empty => new ElasticIpArgs(); } - public sealed class ElasticIPState : global::Pulumi.ResourceArgs + public sealed class ElasticIpState : global::Pulumi.ResourceArgs { /// /// ❗ The Elastic IP (EIP) address family (`inet4` or `inet6`; default: `inet4`). @@ -193,7 +251,7 @@ public sealed class ElasticIPState : global::Pulumi.ResourceArgs /// Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. /// [Input("healthcheck")] - public Input? Healthcheck { get; set; } + public Input? Healthcheck { get; set; } /// /// The Elastic IP (EIP) IPv4 or IPv6 address. @@ -225,9 +283,9 @@ public InputMap Labels [Input("zone")] public Input? Zone { get; set; } - public ElasticIPState() + public ElasticIpState() { } - public static new ElasticIPState Empty => new ElasticIPState(); + public static new ElasticIpState Empty => new ElasticIpState(); } } diff --git a/sdk/dotnet/GetAntiAffinityGroup.cs b/sdk/dotnet/GetAntiAffinityGroup.cs index 3b36645d..7fa6eb1f 100644 --- a/sdk/dotnet/GetAntiAffinityGroup.cs +++ b/sdk/dotnet/GetAntiAffinityGroup.cs @@ -12,9 +12,77 @@ namespace Pulumiverse.Exoscale { public static class GetAntiAffinityGroup { + /// + /// Fetch Exoscale [Anti-Affinity Groups](https://community.exoscale.com/documentation/compute/anti-affinity-groups/) data. + /// + /// Corresponding resource: exoscale_anti_affinity_group. + /// + /// {{% examples %}} + /// ## Example Usage + /// {{% example %}} + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumi.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myAntiAffinityGroup = Exoscale.GetAntiAffinityGroup.Invoke(new() + /// { + /// Name = "my-anti-affinity-group", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["myAntiAffinityGroupId"] = myAntiAffinityGroup.Apply(getAntiAffinityGroupResult => getAntiAffinityGroupResult.Id), + /// }; + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// {{% /example %}} + /// {{% /examples %}} + /// public static Task InvokeAsync(GetAntiAffinityGroupArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getAntiAffinityGroup:getAntiAffinityGroup", args ?? new GetAntiAffinityGroupArgs(), options.WithDefaults()); + /// + /// Fetch Exoscale [Anti-Affinity Groups](https://community.exoscale.com/documentation/compute/anti-affinity-groups/) data. + /// + /// Corresponding resource: exoscale_anti_affinity_group. + /// + /// {{% examples %}} + /// ## Example Usage + /// {{% example %}} + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumi.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myAntiAffinityGroup = Exoscale.GetAntiAffinityGroup.Invoke(new() + /// { + /// Name = "my-anti-affinity-group", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["myAntiAffinityGroupId"] = myAntiAffinityGroup.Apply(getAntiAffinityGroupResult => getAntiAffinityGroupResult.Id), + /// }; + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// {{% /example %}} + /// {{% /examples %}} + /// public static Output Invoke(GetAntiAffinityGroupInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getAntiAffinityGroup:getAntiAffinityGroup", args ?? new GetAntiAffinityGroupInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetComputeInstance.cs b/sdk/dotnet/GetComputeInstance.cs index f62cdde5..d127f4ac 100644 --- a/sdk/dotnet/GetComputeInstance.cs +++ b/sdk/dotnet/GetComputeInstance.cs @@ -12,9 +12,79 @@ namespace Pulumiverse.Exoscale { public static class GetComputeInstance { + /// + /// Fetch Exoscale [Compute Instances](https://community.exoscale.com/documentation/compute/) data. + /// + /// Corresponding resource: exoscale_compute_instance. + /// + /// {{% examples %}} + /// ## Example Usage + /// {{% example %}} + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumi.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myInstance = Exoscale.GetComputeInstance.Invoke(new() + /// { + /// Zone = "ch-gva-2", + /// Name = "my-instance", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["myInstanceId"] = myInstance.Apply(getComputeInstanceResult => getComputeInstanceResult.Id), + /// }; + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// {{% /example %}} + /// {{% /examples %}} + /// public static Task InvokeAsync(GetComputeInstanceArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getComputeInstance:getComputeInstance", args ?? new GetComputeInstanceArgs(), options.WithDefaults()); + /// + /// Fetch Exoscale [Compute Instances](https://community.exoscale.com/documentation/compute/) data. + /// + /// Corresponding resource: exoscale_compute_instance. + /// + /// {{% examples %}} + /// ## Example Usage + /// {{% example %}} + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumi.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myInstance = Exoscale.GetComputeInstance.Invoke(new() + /// { + /// Zone = "ch-gva-2", + /// Name = "my-instance", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["myInstanceId"] = myInstance.Apply(getComputeInstanceResult => getComputeInstanceResult.Id), + /// }; + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// {{% /example %}} + /// {{% /examples %}} + /// public static Output Invoke(GetComputeInstanceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getComputeInstance:getComputeInstance", args ?? new GetComputeInstanceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetComputeInstanceList.cs b/sdk/dotnet/GetComputeInstanceList.cs index bb52705b..bfb9cf46 100644 --- a/sdk/dotnet/GetComputeInstanceList.cs +++ b/sdk/dotnet/GetComputeInstanceList.cs @@ -12,9 +12,19 @@ namespace Pulumiverse.Exoscale { public static class GetComputeInstanceList { + /// + /// List Exoscale [Compute Instances](https://community.exoscale.com/documentation/compute/). + /// + /// Corresponding resource: exoscale_compute_instance. + /// public static Task InvokeAsync(GetComputeInstanceListArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getComputeInstanceList:getComputeInstanceList", args ?? new GetComputeInstanceListArgs(), options.WithDefaults()); + /// + /// List Exoscale [Compute Instances](https://community.exoscale.com/documentation/compute/). + /// + /// Corresponding resource: exoscale_compute_instance. + /// public static Output Invoke(GetComputeInstanceListInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getComputeInstanceList:getComputeInstanceList", args ?? new GetComputeInstanceListInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetDatabaseURI.cs b/sdk/dotnet/GetDatabaseUri.cs similarity index 69% rename from sdk/dotnet/GetDatabaseURI.cs rename to sdk/dotnet/GetDatabaseUri.cs index 36857664..93b23ee1 100644 --- a/sdk/dotnet/GetDatabaseURI.cs +++ b/sdk/dotnet/GetDatabaseUri.cs @@ -10,17 +10,17 @@ namespace Pulumiverse.Exoscale { - public static class GetDatabaseURI + public static class GetDatabaseUri { - public static Task InvokeAsync(GetDatabaseURIArgs args, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getDatabaseURI:getDatabaseURI", args ?? new GetDatabaseURIArgs(), options.WithDefaults()); + public static Task InvokeAsync(GetDatabaseUriArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getDatabaseUri:getDatabaseUri", args ?? new GetDatabaseUriArgs(), options.WithDefaults()); - public static Output Invoke(GetDatabaseURIInvokeArgs args, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getDatabaseURI:getDatabaseURI", args ?? new GetDatabaseURIInvokeArgs(), options.WithDefaults()); + public static Output Invoke(GetDatabaseUriInvokeArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getDatabaseUri:getDatabaseUri", args ?? new GetDatabaseUriInvokeArgs(), options.WithDefaults()); } - public sealed class GetDatabaseURIArgs : global::Pulumi.InvokeArgs + public sealed class GetDatabaseUriArgs : global::Pulumi.InvokeArgs { /// /// The database name to match. @@ -29,7 +29,7 @@ public sealed class GetDatabaseURIArgs : global::Pulumi.InvokeArgs public string Name { get; set; } = null!; [Input("timeouts")] - public Inputs.GetDatabaseURITimeoutsArgs? Timeouts { get; set; } + public Inputs.GetDatabaseUriTimeoutsArgs? Timeouts { get; set; } /// /// The type of the database service (`kafka`, `mysql`, `opensearch`, `pg`, `redis`). @@ -43,13 +43,13 @@ public sealed class GetDatabaseURIArgs : global::Pulumi.InvokeArgs [Input("zone", required: true)] public string Zone { get; set; } = null!; - public GetDatabaseURIArgs() + public GetDatabaseUriArgs() { } - public static new GetDatabaseURIArgs Empty => new GetDatabaseURIArgs(); + public static new GetDatabaseUriArgs Empty => new GetDatabaseUriArgs(); } - public sealed class GetDatabaseURIInvokeArgs : global::Pulumi.InvokeArgs + public sealed class GetDatabaseUriInvokeArgs : global::Pulumi.InvokeArgs { /// /// The database name to match. @@ -58,7 +58,7 @@ public sealed class GetDatabaseURIInvokeArgs : global::Pulumi.InvokeArgs public Input Name { get; set; } = null!; [Input("timeouts")] - public Input? Timeouts { get; set; } + public Input? Timeouts { get; set; } /// /// The type of the database service (`kafka`, `mysql`, `opensearch`, `pg`, `redis`). @@ -72,15 +72,15 @@ public sealed class GetDatabaseURIInvokeArgs : global::Pulumi.InvokeArgs [Input("zone", required: true)] public Input Zone { get; set; } = null!; - public GetDatabaseURIInvokeArgs() + public GetDatabaseUriInvokeArgs() { } - public static new GetDatabaseURIInvokeArgs Empty => new GetDatabaseURIInvokeArgs(); + public static new GetDatabaseUriInvokeArgs Empty => new GetDatabaseUriInvokeArgs(); } [OutputType] - public sealed class GetDatabaseURIResult + public sealed class GetDatabaseUriResult { /// /// The ID of this resource. @@ -90,7 +90,7 @@ public sealed class GetDatabaseURIResult /// The database name to match. /// public readonly string Name; - public readonly Outputs.GetDatabaseURITimeoutsResult? Timeouts; + public readonly Outputs.GetDatabaseUriTimeoutsResult? Timeouts; /// /// The type of the database service (`kafka`, `mysql`, `opensearch`, `pg`, `redis`). /// @@ -105,12 +105,12 @@ public sealed class GetDatabaseURIResult public readonly string Zone; [OutputConstructor] - private GetDatabaseURIResult( + private GetDatabaseUriResult( string id, string name, - Outputs.GetDatabaseURITimeoutsResult? timeouts, + Outputs.GetDatabaseUriTimeoutsResult? timeouts, string type, diff --git a/sdk/dotnet/GetDomain.cs b/sdk/dotnet/GetDomain.cs index 783057b2..a446c9ed 100644 --- a/sdk/dotnet/GetDomain.cs +++ b/sdk/dotnet/GetDomain.cs @@ -12,9 +12,77 @@ namespace Pulumiverse.Exoscale { public static class GetDomain { + /// + /// Fetch Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domains data. + /// + /// Corresponding resource: exoscale_domain. + /// + /// {{% examples %}} + /// ## Example Usage + /// {{% example %}} + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumi.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myDomain = Exoscale.GetDomain.Invoke(new() + /// { + /// Name = "my.domain", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["myDomainId"] = myDomain.Apply(getDomainResult => getDomainResult.Id), + /// }; + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// {{% /example %}} + /// {{% /examples %}} + /// public static Task InvokeAsync(GetDomainArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getDomain:getDomain", args ?? new GetDomainArgs(), options.WithDefaults()); + /// + /// Fetch Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domains data. + /// + /// Corresponding resource: exoscale_domain. + /// + /// {{% examples %}} + /// ## Example Usage + /// {{% example %}} + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumi.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myDomain = Exoscale.GetDomain.Invoke(new() + /// { + /// Name = "my.domain", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["myDomainId"] = myDomain.Apply(getDomainResult => getDomainResult.Id), + /// }; + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// {{% /example %}} + /// {{% /examples %}} + /// public static Output Invoke(GetDomainInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getDomain:getDomain", args ?? new GetDomainInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetDomainRecord.cs b/sdk/dotnet/GetDomainRecord.cs index e776f1ac..165b6b18 100644 --- a/sdk/dotnet/GetDomainRecord.cs +++ b/sdk/dotnet/GetDomainRecord.cs @@ -12,9 +12,19 @@ namespace Pulumiverse.Exoscale { public static class GetDomainRecord { + /// + /// Fetch Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domain Records data. + /// + /// Corresponding resource: exoscale_domain_record. + /// public static Task InvokeAsync(GetDomainRecordArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getDomainRecord:getDomainRecord", args ?? new GetDomainRecordArgs(), options.WithDefaults()); + /// + /// Fetch Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domain Records data. + /// + /// Corresponding resource: exoscale_domain_record. + /// public static Output Invoke(GetDomainRecordInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getDomainRecord:getDomainRecord", args ?? new GetDomainRecordInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetElasticIP.cs b/sdk/dotnet/GetElasticIp.cs similarity index 56% rename from sdk/dotnet/GetElasticIP.cs rename to sdk/dotnet/GetElasticIp.cs index 37855d1b..520c0c08 100644 --- a/sdk/dotnet/GetElasticIP.cs +++ b/sdk/dotnet/GetElasticIp.cs @@ -10,17 +10,87 @@ namespace Pulumiverse.Exoscale { - public static class GetElasticIP + public static class GetElasticIp { - public static Task InvokeAsync(GetElasticIPArgs args, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getElasticIP:getElasticIP", args ?? new GetElasticIPArgs(), options.WithDefaults()); - - public static Output Invoke(GetElasticIPInvokeArgs args, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getElasticIP:getElasticIP", args ?? new GetElasticIPInvokeArgs(), options.WithDefaults()); + /// + /// Fetch Exoscale [Elastic IPs (EIP)](https://community.exoscale.com/documentation/compute/eip/) data. + /// + /// Corresponding resource: exoscale_elastic_ip. + /// + /// {{% examples %}} + /// ## Example Usage + /// {{% example %}} + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumi.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myElasticIp = Exoscale.GetElasticIp.Invoke(new() + /// { + /// Zone = "ch-gva-2", + /// IpAddress = "1.2.3.4", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["myElasticIpId"] = myElasticIp.Apply(getElasticIpResult => getElasticIpResult.Id), + /// }; + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// {{% /example %}} + /// {{% /examples %}} + /// + public static Task InvokeAsync(GetElasticIpArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getElasticIp:getElasticIp", args ?? new GetElasticIpArgs(), options.WithDefaults()); + + /// + /// Fetch Exoscale [Elastic IPs (EIP)](https://community.exoscale.com/documentation/compute/eip/) data. + /// + /// Corresponding resource: exoscale_elastic_ip. + /// + /// {{% examples %}} + /// ## Example Usage + /// {{% example %}} + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumi.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myElasticIp = Exoscale.GetElasticIp.Invoke(new() + /// { + /// Zone = "ch-gva-2", + /// IpAddress = "1.2.3.4", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["myElasticIpId"] = myElasticIp.Apply(getElasticIpResult => getElasticIpResult.Id), + /// }; + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// {{% /example %}} + /// {{% /examples %}} + /// + public static Output Invoke(GetElasticIpInvokeArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getElasticIp:getElasticIp", args ?? new GetElasticIpInvokeArgs(), options.WithDefaults()); } - public sealed class GetElasticIPArgs : global::Pulumi.InvokeArgs + public sealed class GetElasticIpArgs : global::Pulumi.InvokeArgs { /// /// The Elastic IP (EIP) ID to match (conflicts with `ip_address` and `labels`). @@ -52,13 +122,13 @@ public Dictionary Labels [Input("zone", required: true)] public string Zone { get; set; } = null!; - public GetElasticIPArgs() + public GetElasticIpArgs() { } - public static new GetElasticIPArgs Empty => new GetElasticIPArgs(); + public static new GetElasticIpArgs Empty => new GetElasticIpArgs(); } - public sealed class GetElasticIPInvokeArgs : global::Pulumi.InvokeArgs + public sealed class GetElasticIpInvokeArgs : global::Pulumi.InvokeArgs { /// /// The Elastic IP (EIP) ID to match (conflicts with `ip_address` and `labels`). @@ -90,15 +160,15 @@ public InputMap Labels [Input("zone", required: true)] public Input Zone { get; set; } = null!; - public GetElasticIPInvokeArgs() + public GetElasticIpInvokeArgs() { } - public static new GetElasticIPInvokeArgs Empty => new GetElasticIPInvokeArgs(); + public static new GetElasticIpInvokeArgs Empty => new GetElasticIpInvokeArgs(); } [OutputType] - public sealed class GetElasticIPResult + public sealed class GetElasticIpResult { /// /// The Elastic IP (EIP) address family (`inet4` or `inet6`). @@ -115,7 +185,7 @@ public sealed class GetElasticIPResult /// /// The *managed* EIP healthcheck configuration. /// - public readonly ImmutableArray Healthchecks; + public readonly ImmutableArray Healthchecks; /// /// The Elastic IP (EIP) ID to match (conflicts with `ip_address` and `labels`). /// @@ -138,14 +208,14 @@ public sealed class GetElasticIPResult public readonly string Zone; [OutputConstructor] - private GetElasticIPResult( + private GetElasticIpResult( string addressFamily, string cidr, string description, - ImmutableArray healthchecks, + ImmutableArray healthchecks, string? id, diff --git a/sdk/dotnet/GetIAMAPIKey.cs b/sdk/dotnet/GetIamApiKey.cs similarity index 63% rename from sdk/dotnet/GetIAMAPIKey.cs rename to sdk/dotnet/GetIamApiKey.cs index cdc51a65..59aea5e5 100644 --- a/sdk/dotnet/GetIAMAPIKey.cs +++ b/sdk/dotnet/GetIamApiKey.cs @@ -10,27 +10,27 @@ namespace Pulumiverse.Exoscale { - public static class GetIAMAPIKey + public static class GetIamApiKey { /// /// Fetch Exoscale [IAM](https://community.exoscale.com/documentation/iam/) API Key. /// /// Corresponding resource: exoscale_iam_role. /// - public static Task InvokeAsync(GetIAMAPIKeyArgs args, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getIAMAPIKey:getIAMAPIKey", args ?? new GetIAMAPIKeyArgs(), options.WithDefaults()); + public static Task InvokeAsync(GetIamApiKeyArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getIamApiKey:getIamApiKey", args ?? new GetIamApiKeyArgs(), options.WithDefaults()); /// /// Fetch Exoscale [IAM](https://community.exoscale.com/documentation/iam/) API Key. /// /// Corresponding resource: exoscale_iam_role. /// - public static Output Invoke(GetIAMAPIKeyInvokeArgs args, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getIAMAPIKey:getIAMAPIKey", args ?? new GetIAMAPIKeyInvokeArgs(), options.WithDefaults()); + public static Output Invoke(GetIamApiKeyInvokeArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getIamApiKey:getIamApiKey", args ?? new GetIamApiKeyInvokeArgs(), options.WithDefaults()); } - public sealed class GetIAMAPIKeyArgs : global::Pulumi.InvokeArgs + public sealed class GetIamApiKeyArgs : global::Pulumi.InvokeArgs { /// /// The IAM API Key to match. @@ -39,15 +39,15 @@ public sealed class GetIAMAPIKeyArgs : global::Pulumi.InvokeArgs public string Key { get; set; } = null!; [Input("timeouts")] - public Inputs.GetIAMAPIKeyTimeoutsArgs? Timeouts { get; set; } + public Inputs.GetIamApiKeyTimeoutsArgs? Timeouts { get; set; } - public GetIAMAPIKeyArgs() + public GetIamApiKeyArgs() { } - public static new GetIAMAPIKeyArgs Empty => new GetIAMAPIKeyArgs(); + public static new GetIamApiKeyArgs Empty => new GetIamApiKeyArgs(); } - public sealed class GetIAMAPIKeyInvokeArgs : global::Pulumi.InvokeArgs + public sealed class GetIamApiKeyInvokeArgs : global::Pulumi.InvokeArgs { /// /// The IAM API Key to match. @@ -56,17 +56,17 @@ public sealed class GetIAMAPIKeyInvokeArgs : global::Pulumi.InvokeArgs public Input Key { get; set; } = null!; [Input("timeouts")] - public Input? Timeouts { get; set; } + public Input? Timeouts { get; set; } - public GetIAMAPIKeyInvokeArgs() + public GetIamApiKeyInvokeArgs() { } - public static new GetIAMAPIKeyInvokeArgs Empty => new GetIAMAPIKeyInvokeArgs(); + public static new GetIamApiKeyInvokeArgs Empty => new GetIamApiKeyInvokeArgs(); } [OutputType] - public sealed class GetIAMAPIKeyResult + public sealed class GetIamApiKeyResult { /// /// The ID of this resource. @@ -84,10 +84,10 @@ public sealed class GetIAMAPIKeyResult /// IAM API Key role ID. /// public readonly string RoleId; - public readonly Outputs.GetIAMAPIKeyTimeoutsResult? Timeouts; + public readonly Outputs.GetIamApiKeyTimeoutsResult? Timeouts; [OutputConstructor] - private GetIAMAPIKeyResult( + private GetIamApiKeyResult( string id, string key, @@ -96,7 +96,7 @@ private GetIAMAPIKeyResult( string roleId, - Outputs.GetIAMAPIKeyTimeoutsResult? timeouts) + Outputs.GetIamApiKeyTimeoutsResult? timeouts) { Id = id; Key = key; diff --git a/sdk/dotnet/GetIAMOrgPolicy.cs b/sdk/dotnet/GetIamOrgPolicy.cs similarity index 55% rename from sdk/dotnet/GetIAMOrgPolicy.cs rename to sdk/dotnet/GetIamOrgPolicy.cs index d084c840..67cedbae 100644 --- a/sdk/dotnet/GetIAMOrgPolicy.cs +++ b/sdk/dotnet/GetIamOrgPolicy.cs @@ -10,51 +10,51 @@ namespace Pulumiverse.Exoscale { - public static class GetIAMOrgPolicy + public static class GetIamOrgPolicy { /// /// Fetch Exoscale [IAM](https://community.exoscale.com/documentation/iam/) Organization Policy. /// /// Corresponding resource: exoscale_iam_org_policy. /// - public static Task InvokeAsync(GetIAMOrgPolicyArgs? args = null, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getIAMOrgPolicy:getIAMOrgPolicy", args ?? new GetIAMOrgPolicyArgs(), options.WithDefaults()); + public static Task InvokeAsync(GetIamOrgPolicyArgs? args = null, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getIamOrgPolicy:getIamOrgPolicy", args ?? new GetIamOrgPolicyArgs(), options.WithDefaults()); /// /// Fetch Exoscale [IAM](https://community.exoscale.com/documentation/iam/) Organization Policy. /// /// Corresponding resource: exoscale_iam_org_policy. /// - public static Output Invoke(GetIAMOrgPolicyInvokeArgs? args = null, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getIAMOrgPolicy:getIAMOrgPolicy", args ?? new GetIAMOrgPolicyInvokeArgs(), options.WithDefaults()); + public static Output Invoke(GetIamOrgPolicyInvokeArgs? args = null, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getIamOrgPolicy:getIamOrgPolicy", args ?? new GetIamOrgPolicyInvokeArgs(), options.WithDefaults()); } - public sealed class GetIAMOrgPolicyArgs : global::Pulumi.InvokeArgs + public sealed class GetIamOrgPolicyArgs : global::Pulumi.InvokeArgs { [Input("timeouts")] - public Inputs.GetIAMOrgPolicyTimeoutsArgs? Timeouts { get; set; } + public Inputs.GetIamOrgPolicyTimeoutsArgs? Timeouts { get; set; } - public GetIAMOrgPolicyArgs() + public GetIamOrgPolicyArgs() { } - public static new GetIAMOrgPolicyArgs Empty => new GetIAMOrgPolicyArgs(); + public static new GetIamOrgPolicyArgs Empty => new GetIamOrgPolicyArgs(); } - public sealed class GetIAMOrgPolicyInvokeArgs : global::Pulumi.InvokeArgs + public sealed class GetIamOrgPolicyInvokeArgs : global::Pulumi.InvokeArgs { [Input("timeouts")] - public Input? Timeouts { get; set; } + public Input? Timeouts { get; set; } - public GetIAMOrgPolicyInvokeArgs() + public GetIamOrgPolicyInvokeArgs() { } - public static new GetIAMOrgPolicyInvokeArgs Empty => new GetIAMOrgPolicyInvokeArgs(); + public static new GetIamOrgPolicyInvokeArgs Empty => new GetIamOrgPolicyInvokeArgs(); } [OutputType] - public sealed class GetIAMOrgPolicyResult + public sealed class GetIamOrgPolicyResult { /// /// Default service strategy (`allow` or `deny`). @@ -67,18 +67,18 @@ public sealed class GetIAMOrgPolicyResult /// /// IAM policy services. /// - public readonly ImmutableDictionary Services; - public readonly Outputs.GetIAMOrgPolicyTimeoutsResult? Timeouts; + public readonly ImmutableDictionary Services; + public readonly Outputs.GetIamOrgPolicyTimeoutsResult? Timeouts; [OutputConstructor] - private GetIAMOrgPolicyResult( + private GetIamOrgPolicyResult( string defaultServiceStrategy, string id, - ImmutableDictionary services, + ImmutableDictionary services, - Outputs.GetIAMOrgPolicyTimeoutsResult? timeouts) + Outputs.GetIamOrgPolicyTimeoutsResult? timeouts) { DefaultServiceStrategy = defaultServiceStrategy; Id = id; diff --git a/sdk/dotnet/GetIAMRole.cs b/sdk/dotnet/GetIamRole.cs similarity index 72% rename from sdk/dotnet/GetIAMRole.cs rename to sdk/dotnet/GetIamRole.cs index 9bf89241..1a1e2350 100644 --- a/sdk/dotnet/GetIAMRole.cs +++ b/sdk/dotnet/GetIamRole.cs @@ -10,27 +10,27 @@ namespace Pulumiverse.Exoscale { - public static class GetIAMRole + public static class GetIamRole { /// /// Fetch Exoscale [IAM](https://community.exoscale.com/documentation/iam/) Role. /// /// Corresponding resource: exoscale_iam_role. /// - public static Task InvokeAsync(GetIAMRoleArgs? args = null, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getIAMRole:getIAMRole", args ?? new GetIAMRoleArgs(), options.WithDefaults()); + public static Task InvokeAsync(GetIamRoleArgs? args = null, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getIamRole:getIamRole", args ?? new GetIamRoleArgs(), options.WithDefaults()); /// /// Fetch Exoscale [IAM](https://community.exoscale.com/documentation/iam/) Role. /// /// Corresponding resource: exoscale_iam_role. /// - public static Output Invoke(GetIAMRoleInvokeArgs? args = null, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getIAMRole:getIAMRole", args ?? new GetIAMRoleInvokeArgs(), options.WithDefaults()); + public static Output Invoke(GetIamRoleInvokeArgs? args = null, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getIamRole:getIamRole", args ?? new GetIamRoleInvokeArgs(), options.WithDefaults()); } - public sealed class GetIAMRoleArgs : global::Pulumi.InvokeArgs + public sealed class GetIamRoleArgs : global::Pulumi.InvokeArgs { /// /// The role ID to match (conflicts with `name`). @@ -45,15 +45,15 @@ public sealed class GetIAMRoleArgs : global::Pulumi.InvokeArgs public string? Name { get; set; } [Input("timeouts")] - public Inputs.GetIAMRoleTimeoutsArgs? Timeouts { get; set; } + public Inputs.GetIamRoleTimeoutsArgs? Timeouts { get; set; } - public GetIAMRoleArgs() + public GetIamRoleArgs() { } - public static new GetIAMRoleArgs Empty => new GetIAMRoleArgs(); + public static new GetIamRoleArgs Empty => new GetIamRoleArgs(); } - public sealed class GetIAMRoleInvokeArgs : global::Pulumi.InvokeArgs + public sealed class GetIamRoleInvokeArgs : global::Pulumi.InvokeArgs { /// /// The role ID to match (conflicts with `name`). @@ -68,17 +68,17 @@ public sealed class GetIAMRoleInvokeArgs : global::Pulumi.InvokeArgs public Input? Name { get; set; } [Input("timeouts")] - public Input? Timeouts { get; set; } + public Input? Timeouts { get; set; } - public GetIAMRoleInvokeArgs() + public GetIamRoleInvokeArgs() { } - public static new GetIAMRoleInvokeArgs Empty => new GetIAMRoleInvokeArgs(); + public static new GetIamRoleInvokeArgs Empty => new GetIamRoleInvokeArgs(); } [OutputType] - public sealed class GetIAMRoleResult + public sealed class GetIamRoleResult { /// /// A free-form text describing the IAM Role @@ -107,11 +107,11 @@ public sealed class GetIAMRoleResult /// /// IAM Policy. /// - public readonly Outputs.GetIAMRolePolicyResult Policy; - public readonly Outputs.GetIAMRoleTimeoutsResult? Timeouts; + public readonly Outputs.GetIamRolePolicyResult Policy; + public readonly Outputs.GetIamRoleTimeoutsResult? Timeouts; [OutputConstructor] - private GetIAMRoleResult( + private GetIamRoleResult( string description, bool editable, @@ -124,9 +124,9 @@ private GetIAMRoleResult( ImmutableArray permissions, - Outputs.GetIAMRolePolicyResult policy, + Outputs.GetIamRolePolicyResult policy, - Outputs.GetIAMRoleTimeoutsResult? timeouts) + Outputs.GetIamRoleTimeoutsResult? timeouts) { Description = description; Editable = editable; diff --git a/sdk/dotnet/GetInstancePool.cs b/sdk/dotnet/GetInstancePool.cs index a8e7eb8c..a04c9076 100644 --- a/sdk/dotnet/GetInstancePool.cs +++ b/sdk/dotnet/GetInstancePool.cs @@ -12,9 +12,79 @@ namespace Pulumiverse.Exoscale { public static class GetInstancePool { + /// + /// Fetch Exoscale [Instance Pools](https://community.exoscale.com/documentation/compute/instance-pools/) data. + /// + /// Corresponding resource: exoscale_instance_pool. + /// + /// {{% examples %}} + /// ## Example Usage + /// {{% example %}} + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumi.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myInstancePool = Exoscale.GetInstancePool.Invoke(new() + /// { + /// Zone = "ch-gva-2", + /// Name = "my-instance-pool", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["myInstancePoolId"] = myInstancePool.Apply(getInstancePoolResult => getInstancePoolResult.Id), + /// }; + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// {{% /example %}} + /// {{% /examples %}} + /// public static Task InvokeAsync(GetInstancePoolArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getInstancePool:getInstancePool", args ?? new GetInstancePoolArgs(), options.WithDefaults()); + /// + /// Fetch Exoscale [Instance Pools](https://community.exoscale.com/documentation/compute/instance-pools/) data. + /// + /// Corresponding resource: exoscale_instance_pool. + /// + /// {{% examples %}} + /// ## Example Usage + /// {{% example %}} + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumi.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myInstancePool = Exoscale.GetInstancePool.Invoke(new() + /// { + /// Zone = "ch-gva-2", + /// Name = "my-instance-pool", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["myInstancePoolId"] = myInstancePool.Apply(getInstancePoolResult => getInstancePoolResult.Id), + /// }; + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// {{% /example %}} + /// {{% /examples %}} + /// public static Output Invoke(GetInstancePoolInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getInstancePool:getInstancePool", args ?? new GetInstancePoolInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetInstancePoolList.cs b/sdk/dotnet/GetInstancePoolList.cs index bb563d5b..5832d9ea 100644 --- a/sdk/dotnet/GetInstancePoolList.cs +++ b/sdk/dotnet/GetInstancePoolList.cs @@ -12,9 +12,19 @@ namespace Pulumiverse.Exoscale { public static class GetInstancePoolList { + /// + /// List Exoscale [Instance Pools](https://community.exoscale.com/documentation/compute/instance-pools/). + /// + /// Corresponding resource: exoscale_instance_pool. + /// public static Task InvokeAsync(GetInstancePoolListArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getInstancePoolList:getInstancePoolList", args ?? new GetInstancePoolListArgs(), options.WithDefaults()); + /// + /// List Exoscale [Instance Pools](https://community.exoscale.com/documentation/compute/instance-pools/). + /// + /// Corresponding resource: exoscale_instance_pool. + /// public static Output Invoke(GetInstancePoolListInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getInstancePoolList:getInstancePoolList", args ?? new GetInstancePoolListInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetNLB.cs b/sdk/dotnet/GetNlb.cs similarity index 51% rename from sdk/dotnet/GetNLB.cs rename to sdk/dotnet/GetNlb.cs index b6d3d6aa..b09a160b 100644 --- a/sdk/dotnet/GetNLB.cs +++ b/sdk/dotnet/GetNlb.cs @@ -10,17 +10,87 @@ namespace Pulumiverse.Exoscale { - public static class GetNLB + public static class GetNlb { - public static Task InvokeAsync(GetNLBArgs args, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getNLB:getNLB", args ?? new GetNLBArgs(), options.WithDefaults()); + /// + /// Fetch Exoscale [Network Load Balancers (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/) data. + /// + /// Corresponding resource: exoscale_nlb. + /// + /// {{% examples %}} + /// ## Example Usage + /// {{% example %}} + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumi.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myNlb = Exoscale.GetNlb.Invoke(new() + /// { + /// Zone = "ch-gva-2", + /// Name = "my-nlb", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["myNlbId"] = myNlb.Apply(getNlbResult => getNlbResult.Id), + /// }; + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// {{% /example %}} + /// {{% /examples %}} + /// + public static Task InvokeAsync(GetNlbArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getNlb:getNlb", args ?? new GetNlbArgs(), options.WithDefaults()); - public static Output Invoke(GetNLBInvokeArgs args, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getNLB:getNLB", args ?? new GetNLBInvokeArgs(), options.WithDefaults()); + /// + /// Fetch Exoscale [Network Load Balancers (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/) data. + /// + /// Corresponding resource: exoscale_nlb. + /// + /// {{% examples %}} + /// ## Example Usage + /// {{% example %}} + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumi.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myNlb = Exoscale.GetNlb.Invoke(new() + /// { + /// Zone = "ch-gva-2", + /// Name = "my-nlb", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["myNlbId"] = myNlb.Apply(getNlbResult => getNlbResult.Id), + /// }; + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// {{% /example %}} + /// {{% /examples %}} + /// + public static Output Invoke(GetNlbInvokeArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getNlb:getNlb", args ?? new GetNlbInvokeArgs(), options.WithDefaults()); } - public sealed class GetNLBArgs : global::Pulumi.InvokeArgs + public sealed class GetNlbArgs : global::Pulumi.InvokeArgs { /// /// The Network Load Balancers (NLB) ID to match (conflicts with `name`). @@ -40,13 +110,13 @@ public sealed class GetNLBArgs : global::Pulumi.InvokeArgs [Input("zone", required: true)] public string Zone { get; set; } = null!; - public GetNLBArgs() + public GetNlbArgs() { } - public static new GetNLBArgs Empty => new GetNLBArgs(); + public static new GetNlbArgs Empty => new GetNlbArgs(); } - public sealed class GetNLBInvokeArgs : global::Pulumi.InvokeArgs + public sealed class GetNlbInvokeArgs : global::Pulumi.InvokeArgs { /// /// The Network Load Balancers (NLB) ID to match (conflicts with `name`). @@ -66,15 +136,15 @@ public sealed class GetNLBInvokeArgs : global::Pulumi.InvokeArgs [Input("zone", required: true)] public Input Zone { get; set; } = null!; - public GetNLBInvokeArgs() + public GetNlbInvokeArgs() { } - public static new GetNLBInvokeArgs Empty => new GetNLBInvokeArgs(); + public static new GetNlbInvokeArgs Empty => new GetNlbInvokeArgs(); } [OutputType] - public sealed class GetNLBResult + public sealed class GetNlbResult { /// /// The NLB creation date. @@ -106,7 +176,7 @@ public sealed class GetNLBResult public readonly string Zone; [OutputConstructor] - private GetNLBResult( + private GetNlbResult( string createdAt, string description, diff --git a/sdk/dotnet/GetNLBServiceList.cs b/sdk/dotnet/GetNlbServiceList.cs similarity index 58% rename from sdk/dotnet/GetNLBServiceList.cs rename to sdk/dotnet/GetNlbServiceList.cs index 31d3cd67..0e15f4df 100644 --- a/sdk/dotnet/GetNLBServiceList.cs +++ b/sdk/dotnet/GetNlbServiceList.cs @@ -10,17 +10,27 @@ namespace Pulumiverse.Exoscale { - public static class GetNLBServiceList + public static class GetNlbServiceList { - public static Task InvokeAsync(GetNLBServiceListArgs args, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getNLBServiceList:getNLBServiceList", args ?? new GetNLBServiceListArgs(), options.WithDefaults()); + /// + /// Fetch Exoscale [Network Load Balancers (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/) Services. + /// + /// Corresponding resource: exoscale_nlb. + /// + public static Task InvokeAsync(GetNlbServiceListArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getNlbServiceList:getNlbServiceList", args ?? new GetNlbServiceListArgs(), options.WithDefaults()); - public static Output Invoke(GetNLBServiceListInvokeArgs args, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getNLBServiceList:getNLBServiceList", args ?? new GetNLBServiceListInvokeArgs(), options.WithDefaults()); + /// + /// Fetch Exoscale [Network Load Balancers (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/) Services. + /// + /// Corresponding resource: exoscale_nlb. + /// + public static Output Invoke(GetNlbServiceListInvokeArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getNlbServiceList:getNlbServiceList", args ?? new GetNlbServiceListInvokeArgs(), options.WithDefaults()); } - public sealed class GetNLBServiceListArgs : global::Pulumi.InvokeArgs + public sealed class GetNlbServiceListArgs : global::Pulumi.InvokeArgs { /// /// The NLB ID to match (conflicts with `name`). @@ -35,7 +45,7 @@ public sealed class GetNLBServiceListArgs : global::Pulumi.InvokeArgs public string? NlbName { get; set; } [Input("timeouts")] - public Inputs.GetNLBServiceListTimeoutsArgs? Timeouts { get; set; } + public Inputs.GetNlbServiceListTimeoutsArgs? Timeouts { get; set; } /// /// The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. @@ -43,13 +53,13 @@ public sealed class GetNLBServiceListArgs : global::Pulumi.InvokeArgs [Input("zone", required: true)] public string Zone { get; set; } = null!; - public GetNLBServiceListArgs() + public GetNlbServiceListArgs() { } - public static new GetNLBServiceListArgs Empty => new GetNLBServiceListArgs(); + public static new GetNlbServiceListArgs Empty => new GetNlbServiceListArgs(); } - public sealed class GetNLBServiceListInvokeArgs : global::Pulumi.InvokeArgs + public sealed class GetNlbServiceListInvokeArgs : global::Pulumi.InvokeArgs { /// /// The NLB ID to match (conflicts with `name`). @@ -64,7 +74,7 @@ public sealed class GetNLBServiceListInvokeArgs : global::Pulumi.InvokeArgs public Input? NlbName { get; set; } [Input("timeouts")] - public Input? Timeouts { get; set; } + public Input? Timeouts { get; set; } /// /// The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. @@ -72,15 +82,15 @@ public sealed class GetNLBServiceListInvokeArgs : global::Pulumi.InvokeArgs [Input("zone", required: true)] public Input Zone { get; set; } = null!; - public GetNLBServiceListInvokeArgs() + public GetNlbServiceListInvokeArgs() { } - public static new GetNLBServiceListInvokeArgs Empty => new GetNLBServiceListInvokeArgs(); + public static new GetNlbServiceListInvokeArgs Empty => new GetNlbServiceListInvokeArgs(); } [OutputType] - public sealed class GetNLBServiceListResult + public sealed class GetNlbServiceListResult { /// /// The ID of this resource. @@ -97,24 +107,24 @@ public sealed class GetNLBServiceListResult /// /// The list of exoscale*nlb*service. /// - public readonly ImmutableArray Services; - public readonly Outputs.GetNLBServiceListTimeoutsResult? Timeouts; + public readonly ImmutableArray Services; + public readonly Outputs.GetNlbServiceListTimeoutsResult? Timeouts; /// /// The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. /// public readonly string Zone; [OutputConstructor] - private GetNLBServiceListResult( + private GetNlbServiceListResult( string id, string? nlbId, string? nlbName, - ImmutableArray services, + ImmutableArray services, - Outputs.GetNLBServiceListTimeoutsResult? timeouts, + Outputs.GetNlbServiceListTimeoutsResult? timeouts, string zone) { diff --git a/sdk/dotnet/GetPrivateNetwork.cs b/sdk/dotnet/GetPrivateNetwork.cs index e5f8a267..e3bf34e4 100644 --- a/sdk/dotnet/GetPrivateNetwork.cs +++ b/sdk/dotnet/GetPrivateNetwork.cs @@ -12,9 +12,79 @@ namespace Pulumiverse.Exoscale { public static class GetPrivateNetwork { + /// + /// Fetch Exoscale [Private Networks](https://community.exoscale.com/documentation/compute/private-networks/) data. + /// + /// Corresponding resource: exoscale_private_network. + /// + /// {{% examples %}} + /// ## Example Usage + /// {{% example %}} + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumi.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myPrivateNetwork = Exoscale.GetPrivateNetwork.Invoke(new() + /// { + /// Zone = "ch-gva-2", + /// Name = "my-private-network", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["myPrivateNetworkId"] = myPrivateNetwork.Apply(getPrivateNetworkResult => getPrivateNetworkResult.Id), + /// }; + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// {{% /example %}} + /// {{% /examples %}} + /// public static Task InvokeAsync(GetPrivateNetworkArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getPrivateNetwork:getPrivateNetwork", args ?? new GetPrivateNetworkArgs(), options.WithDefaults()); + /// + /// Fetch Exoscale [Private Networks](https://community.exoscale.com/documentation/compute/private-networks/) data. + /// + /// Corresponding resource: exoscale_private_network. + /// + /// {{% examples %}} + /// ## Example Usage + /// {{% example %}} + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumi.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myPrivateNetwork = Exoscale.GetPrivateNetwork.Invoke(new() + /// { + /// Zone = "ch-gva-2", + /// Name = "my-private-network", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["myPrivateNetworkId"] = myPrivateNetwork.Apply(getPrivateNetworkResult => getPrivateNetworkResult.Id), + /// }; + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// {{% /example %}} + /// {{% /examples %}} + /// public static Output Invoke(GetPrivateNetworkInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getPrivateNetwork:getPrivateNetwork", args ?? new GetPrivateNetworkInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetSecurityGroup.cs b/sdk/dotnet/GetSecurityGroup.cs index f06f4384..61f5801a 100644 --- a/sdk/dotnet/GetSecurityGroup.cs +++ b/sdk/dotnet/GetSecurityGroup.cs @@ -12,9 +12,77 @@ namespace Pulumiverse.Exoscale { public static class GetSecurityGroup { + /// + /// Fetch Exoscale [Security Groups](https://community.exoscale.com/documentation/compute/security-groups/) data. + /// + /// Corresponding resource: exoscale_security_group. + /// + /// {{% examples %}} + /// ## Example Usage + /// {{% example %}} + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumi.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var mySecurityGroup = Exoscale.GetSecurityGroup.Invoke(new() + /// { + /// Name = "my-security-group", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["mySecurityGroupId"] = mySecurityGroup.Apply(getSecurityGroupResult => getSecurityGroupResult.Id), + /// }; + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// {{% /example %}} + /// {{% /examples %}} + /// public static Task InvokeAsync(GetSecurityGroupArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getSecurityGroup:getSecurityGroup", args ?? new GetSecurityGroupArgs(), options.WithDefaults()); + /// + /// Fetch Exoscale [Security Groups](https://community.exoscale.com/documentation/compute/security-groups/) data. + /// + /// Corresponding resource: exoscale_security_group. + /// + /// {{% examples %}} + /// ## Example Usage + /// {{% example %}} + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumi.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var mySecurityGroup = Exoscale.GetSecurityGroup.Invoke(new() + /// { + /// Name = "my-security-group", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["mySecurityGroupId"] = mySecurityGroup.Apply(getSecurityGroupResult => getSecurityGroupResult.Id), + /// }; + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// {{% /example %}} + /// {{% /examples %}} + /// public static Output Invoke(GetSecurityGroupInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getSecurityGroup:getSecurityGroup", args ?? new GetSecurityGroupInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetSKSCluster.cs b/sdk/dotnet/GetSksCluster.cs similarity index 92% rename from sdk/dotnet/GetSKSCluster.cs rename to sdk/dotnet/GetSksCluster.cs index bc084a75..cd95d21d 100644 --- a/sdk/dotnet/GetSKSCluster.cs +++ b/sdk/dotnet/GetSksCluster.cs @@ -10,17 +10,17 @@ namespace Pulumiverse.Exoscale { - public static class GetSKSCluster + public static class GetSksCluster { - public static Task InvokeAsync(GetSKSClusterArgs args, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getSKSCluster:getSKSCluster", args ?? new GetSKSClusterArgs(), options.WithDefaults()); + public static Task InvokeAsync(GetSksClusterArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getSksCluster:getSksCluster", args ?? new GetSksClusterArgs(), options.WithDefaults()); - public static Output Invoke(GetSKSClusterInvokeArgs args, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getSKSCluster:getSKSCluster", args ?? new GetSKSClusterInvokeArgs(), options.WithDefaults()); + public static Output Invoke(GetSksClusterInvokeArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getSksCluster:getSksCluster", args ?? new GetSksClusterInvokeArgs(), options.WithDefaults()); } - public sealed class GetSKSClusterArgs : global::Pulumi.InvokeArgs + public sealed class GetSksClusterArgs : global::Pulumi.InvokeArgs { [Input("addons")] private List? _addons; @@ -128,7 +128,7 @@ public List Nodepools /// An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. /// [Input("oidc")] - public Inputs.GetSKSClusterOidcArgs? Oidc { get; set; } + public Inputs.GetSksClusterOidcArgs? Oidc { get; set; } /// /// The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). @@ -151,13 +151,13 @@ public List Nodepools [Input("zone", required: true)] public string Zone { get; set; } = null!; - public GetSKSClusterArgs() + public GetSksClusterArgs() { } - public static new GetSKSClusterArgs Empty => new GetSKSClusterArgs(); + public static new GetSksClusterArgs Empty => new GetSksClusterArgs(); } - public sealed class GetSKSClusterInvokeArgs : global::Pulumi.InvokeArgs + public sealed class GetSksClusterInvokeArgs : global::Pulumi.InvokeArgs { [Input("addons")] private InputList? _addons; @@ -265,7 +265,7 @@ public InputList Nodepools /// An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. /// [Input("oidc")] - public Input? Oidc { get; set; } + public Input? Oidc { get; set; } /// /// The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). @@ -288,15 +288,15 @@ public InputList Nodepools [Input("zone", required: true)] public Input Zone { get; set; } = null!; - public GetSKSClusterInvokeArgs() + public GetSksClusterInvokeArgs() { } - public static new GetSKSClusterInvokeArgs Empty => new GetSKSClusterInvokeArgs(); + public static new GetSksClusterInvokeArgs Empty => new GetSksClusterInvokeArgs(); } [OutputType] - public sealed class GetSKSClusterResult + public sealed class GetSksClusterResult { public readonly ImmutableArray Addons; /// @@ -355,7 +355,7 @@ public sealed class GetSKSClusterResult /// /// An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. /// - public readonly Outputs.GetSKSClusterOidcResult Oidc; + public readonly Outputs.GetSksClusterOidcResult Oidc; /// /// The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). /// @@ -371,7 +371,7 @@ public sealed class GetSKSClusterResult public readonly string Zone; [OutputConstructor] - private GetSKSClusterResult( + private GetSksClusterResult( ImmutableArray addons, string aggregationCa, @@ -402,7 +402,7 @@ private GetSKSClusterResult( ImmutableArray nodepools, - Outputs.GetSKSClusterOidcResult oidc, + Outputs.GetSksClusterOidcResult oidc, string? serviceLevel, diff --git a/sdk/dotnet/GetSKSClusterList.cs b/sdk/dotnet/GetSksClusterList.cs similarity index 87% rename from sdk/dotnet/GetSKSClusterList.cs rename to sdk/dotnet/GetSksClusterList.cs index 034ffe0f..77eff7a5 100644 --- a/sdk/dotnet/GetSKSClusterList.cs +++ b/sdk/dotnet/GetSksClusterList.cs @@ -10,17 +10,17 @@ namespace Pulumiverse.Exoscale { - public static class GetSKSClusterList + public static class GetSksClusterList { - public static Task InvokeAsync(GetSKSClusterListArgs args, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getSKSClusterList:getSKSClusterList", args ?? new GetSKSClusterListArgs(), options.WithDefaults()); + public static Task InvokeAsync(GetSksClusterListArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getSksClusterList:getSksClusterList", args ?? new GetSksClusterListArgs(), options.WithDefaults()); - public static Output Invoke(GetSKSClusterListInvokeArgs args, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getSKSClusterList:getSKSClusterList", args ?? new GetSKSClusterListInvokeArgs(), options.WithDefaults()); + public static Output Invoke(GetSksClusterListInvokeArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getSksClusterList:getSksClusterList", args ?? new GetSksClusterListInvokeArgs(), options.WithDefaults()); } - public sealed class GetSKSClusterListArgs : global::Pulumi.InvokeArgs + public sealed class GetSksClusterListArgs : global::Pulumi.InvokeArgs { [Input("aggregationCa")] public string? AggregationCa { get; set; } @@ -78,13 +78,13 @@ public Dictionary Labels [Input("zone", required: true)] public string Zone { get; set; } = null!; - public GetSKSClusterListArgs() + public GetSksClusterListArgs() { } - public static new GetSKSClusterListArgs Empty => new GetSKSClusterListArgs(); + public static new GetSksClusterListArgs Empty => new GetSksClusterListArgs(); } - public sealed class GetSKSClusterListInvokeArgs : global::Pulumi.InvokeArgs + public sealed class GetSksClusterListInvokeArgs : global::Pulumi.InvokeArgs { [Input("aggregationCa")] public Input? AggregationCa { get; set; } @@ -142,15 +142,15 @@ public InputMap Labels [Input("zone", required: true)] public Input Zone { get; set; } = null!; - public GetSKSClusterListInvokeArgs() + public GetSksClusterListInvokeArgs() { } - public static new GetSKSClusterListInvokeArgs Empty => new GetSKSClusterListInvokeArgs(); + public static new GetSksClusterListInvokeArgs Empty => new GetSksClusterListInvokeArgs(); } [OutputType] - public sealed class GetSKSClusterListResult + public sealed class GetSksClusterListResult { /// /// Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. @@ -160,7 +160,7 @@ public sealed class GetSKSClusterListResult /// Match against this bool /// public readonly bool? AutoUpgrade; - public readonly ImmutableArray Clusters; + public readonly ImmutableArray Clusters; /// /// Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. /// @@ -223,12 +223,12 @@ public sealed class GetSKSClusterListResult public readonly string Zone; [OutputConstructor] - private GetSKSClusterListResult( + private GetSksClusterListResult( string? aggregationCa, bool? autoUpgrade, - ImmutableArray clusters, + ImmutableArray clusters, string? cni, diff --git a/sdk/dotnet/GetSKSNodepool.cs b/sdk/dotnet/GetSksNodepool.cs similarity index 93% rename from sdk/dotnet/GetSKSNodepool.cs rename to sdk/dotnet/GetSksNodepool.cs index 7dcc4591..0949ad7c 100644 --- a/sdk/dotnet/GetSKSNodepool.cs +++ b/sdk/dotnet/GetSksNodepool.cs @@ -10,17 +10,17 @@ namespace Pulumiverse.Exoscale { - public static class GetSKSNodepool + public static class GetSksNodepool { - public static Task InvokeAsync(GetSKSNodepoolArgs args, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getSKSNodepool:getSKSNodepool", args ?? new GetSKSNodepoolArgs(), options.WithDefaults()); + public static Task InvokeAsync(GetSksNodepoolArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getSksNodepool:getSksNodepool", args ?? new GetSksNodepoolArgs(), options.WithDefaults()); - public static Output Invoke(GetSKSNodepoolInvokeArgs args, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getSKSNodepool:getSKSNodepool", args ?? new GetSKSNodepoolInvokeArgs(), options.WithDefaults()); + public static Output Invoke(GetSksNodepoolInvokeArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getSksNodepool:getSksNodepool", args ?? new GetSksNodepoolInvokeArgs(), options.WithDefaults()); } - public sealed class GetSKSNodepoolArgs : global::Pulumi.InvokeArgs + public sealed class GetSksNodepoolArgs : global::Pulumi.InvokeArgs { [Input("antiAffinityGroupIds")] private List? _antiAffinityGroupIds; @@ -143,7 +143,7 @@ public List SecurityGroupIds private Dictionary? _taints; /// - /// A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`<value>:<effect>`). + /// A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }'). /// public Dictionary Taints { @@ -166,13 +166,13 @@ public Dictionary Taints [Input("zone", required: true)] public string Zone { get; set; } = null!; - public GetSKSNodepoolArgs() + public GetSksNodepoolArgs() { } - public static new GetSKSNodepoolArgs Empty => new GetSKSNodepoolArgs(); + public static new GetSksNodepoolArgs Empty => new GetSksNodepoolArgs(); } - public sealed class GetSKSNodepoolInvokeArgs : global::Pulumi.InvokeArgs + public sealed class GetSksNodepoolInvokeArgs : global::Pulumi.InvokeArgs { [Input("antiAffinityGroupIds")] private InputList? _antiAffinityGroupIds; @@ -295,7 +295,7 @@ public InputList SecurityGroupIds private InputMap? _taints; /// - /// A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`<value>:<effect>`). + /// A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }'). /// public InputMap Taints { @@ -318,15 +318,15 @@ public InputMap Taints [Input("zone", required: true)] public Input Zone { get; set; } = null!; - public GetSKSNodepoolInvokeArgs() + public GetSksNodepoolInvokeArgs() { } - public static new GetSKSNodepoolInvokeArgs Empty => new GetSKSNodepoolInvokeArgs(); + public static new GetSksNodepoolInvokeArgs Empty => new GetSksNodepoolInvokeArgs(); } [OutputType] - public sealed class GetSKSNodepoolResult + public sealed class GetSksNodepoolResult { /// /// A list of exoscale*anti*affinity_group (IDs) to be attached to the managed instances. @@ -388,7 +388,7 @@ public sealed class GetSKSNodepoolResult /// public readonly bool? StorageLvm; /// - /// A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`<value>:<effect>`). + /// A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }'). /// public readonly ImmutableDictionary? Taints; /// @@ -402,7 +402,7 @@ public sealed class GetSKSNodepoolResult public readonly string Zone; [OutputConstructor] - private GetSKSNodepoolResult( + private GetSksNodepoolResult( ImmutableArray antiAffinityGroupIds, string clusterId, diff --git a/sdk/dotnet/GetSKSNodepoolList.cs b/sdk/dotnet/GetSksNodepoolList.cs similarity index 88% rename from sdk/dotnet/GetSKSNodepoolList.cs rename to sdk/dotnet/GetSksNodepoolList.cs index 6bdc56c9..31aacb3f 100644 --- a/sdk/dotnet/GetSKSNodepoolList.cs +++ b/sdk/dotnet/GetSksNodepoolList.cs @@ -10,17 +10,17 @@ namespace Pulumiverse.Exoscale { - public static class GetSKSNodepoolList + public static class GetSksNodepoolList { - public static Task InvokeAsync(GetSKSNodepoolListArgs args, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getSKSNodepoolList:getSKSNodepoolList", args ?? new GetSKSNodepoolListArgs(), options.WithDefaults()); + public static Task InvokeAsync(GetSksNodepoolListArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getSksNodepoolList:getSksNodepoolList", args ?? new GetSksNodepoolListArgs(), options.WithDefaults()); - public static Output Invoke(GetSKSNodepoolListInvokeArgs args, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getSKSNodepoolList:getSKSNodepoolList", args ?? new GetSKSNodepoolListInvokeArgs(), options.WithDefaults()); + public static Output Invoke(GetSksNodepoolListInvokeArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getSksNodepoolList:getSksNodepoolList", args ?? new GetSksNodepoolListInvokeArgs(), options.WithDefaults()); } - public sealed class GetSKSNodepoolListArgs : global::Pulumi.InvokeArgs + public sealed class GetSksNodepoolListArgs : global::Pulumi.InvokeArgs { [Input("clusterId")] public string? ClusterId { get; set; } @@ -86,13 +86,13 @@ public Dictionary Taints [Input("zone", required: true)] public string Zone { get; set; } = null!; - public GetSKSNodepoolListArgs() + public GetSksNodepoolListArgs() { } - public static new GetSKSNodepoolListArgs Empty => new GetSKSNodepoolListArgs(); + public static new GetSksNodepoolListArgs Empty => new GetSksNodepoolListArgs(); } - public sealed class GetSKSNodepoolListInvokeArgs : global::Pulumi.InvokeArgs + public sealed class GetSksNodepoolListInvokeArgs : global::Pulumi.InvokeArgs { [Input("clusterId")] public Input? ClusterId { get; set; } @@ -158,15 +158,15 @@ public InputMap Taints [Input("zone", required: true)] public Input Zone { get; set; } = null!; - public GetSKSNodepoolListInvokeArgs() + public GetSksNodepoolListInvokeArgs() { } - public static new GetSKSNodepoolListInvokeArgs Empty => new GetSKSNodepoolListInvokeArgs(); + public static new GetSksNodepoolListInvokeArgs Empty => new GetSksNodepoolListInvokeArgs(); } [OutputType] - public sealed class GetSKSNodepoolListResult + public sealed class GetSksNodepoolListResult { /// /// Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. @@ -212,7 +212,7 @@ public sealed class GetSKSNodepoolListResult /// Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. /// public readonly string? Name; - public readonly ImmutableArray Nodepools; + public readonly ImmutableArray Nodepools; /// /// Match against this int /// @@ -243,7 +243,7 @@ public sealed class GetSKSNodepoolListResult public readonly string Zone; [OutputConstructor] - private GetSKSNodepoolListResult( + private GetSksNodepoolListResult( string? clusterId, string? createdAt, @@ -266,7 +266,7 @@ private GetSKSNodepoolListResult( string? name, - ImmutableArray nodepools, + ImmutableArray nodepools, int? size, diff --git a/sdk/dotnet/GetTemplate.cs b/sdk/dotnet/GetTemplate.cs index 9abd4e6f..1d55be10 100644 --- a/sdk/dotnet/GetTemplate.cs +++ b/sdk/dotnet/GetTemplate.cs @@ -12,9 +12,75 @@ namespace Pulumiverse.Exoscale { public static class GetTemplate { + /// + /// Fetch Exoscale [Compute Instance Templates](https://community.exoscale.com/documentation/compute/custom-templates/) data. + /// + /// {{% examples %}} + /// ## Example Usage + /// {{% example %}} + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumi.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myTemplate = Exoscale.GetTemplate.Invoke(new() + /// { + /// Zone = "ch-gva-2", + /// Name = "Linux Ubuntu 22.04 LTS 64-bit", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["myTemplateId"] = myTemplate.Apply(getTemplateResult => getTemplateResult.Id), + /// }; + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// {{% /example %}} + /// {{% /examples %}} + /// public static Task InvokeAsync(GetTemplateArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getTemplate:getTemplate", args ?? new GetTemplateArgs(), options.WithDefaults()); + /// + /// Fetch Exoscale [Compute Instance Templates](https://community.exoscale.com/documentation/compute/custom-templates/) data. + /// + /// {{% examples %}} + /// ## Example Usage + /// {{% example %}} + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumi.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myTemplate = Exoscale.GetTemplate.Invoke(new() + /// { + /// Zone = "ch-gva-2", + /// Name = "Linux Ubuntu 22.04 LTS 64-bit", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["myTemplateId"] = myTemplate.Apply(getTemplateResult => getTemplateResult.Id), + /// }; + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// {{% /example %}} + /// {{% /examples %}} + /// public static Output Invoke(GetTemplateInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getTemplate:getTemplate", args ?? new GetTemplateInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetZones.cs b/sdk/dotnet/GetZones.cs index 6b0feace..c5f78fa9 100644 --- a/sdk/dotnet/GetZones.cs +++ b/sdk/dotnet/GetZones.cs @@ -12,9 +12,67 @@ namespace Pulumiverse.Exoscale { public static class GetZones { + /// + /// Lists all zones. + /// + /// {{% examples %}} + /// ## Example Usage + /// {{% example %}} + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumi.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var exampleZones = Exoscale.GetZones.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["zonesOutput"] = exampleZones.Apply(getZonesResult => getZonesResult.Zones), + /// }; + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// {{% /example %}} + /// {{% /examples %}} + /// public static Task InvokeAsync(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("exoscale:index/getZones:getZones", InvokeArgs.Empty, options.WithDefaults()); + /// + /// Lists all zones. + /// + /// {{% examples %}} + /// ## Example Usage + /// {{% example %}} + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumi.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var exampleZones = Exoscale.GetZones.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["zonesOutput"] = exampleZones.Apply(getZonesResult => getZonesResult.Zones), + /// }; + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// {{% /example %}} + /// {{% /examples %}} + /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("exoscale:index/getZones:getZones", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/IAMAccessKey.cs b/sdk/dotnet/IamAccessKey.cs similarity index 76% rename from sdk/dotnet/IAMAccessKey.cs rename to sdk/dotnet/IamAccessKey.cs index 334f4f5c..6fb4ae40 100644 --- a/sdk/dotnet/IAMAccessKey.cs +++ b/sdk/dotnet/IamAccessKey.cs @@ -10,8 +10,48 @@ namespace Pulumiverse.Exoscale { - [ExoscaleResourceType("exoscale:index/iAMAccessKey:IAMAccessKey")] - public partial class IAMAccessKey : global::Pulumi.CustomResource + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumiverse.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var mySosAccessKey = new Exoscale.IamAccessKey("mySosAccessKey", new() + /// { + /// Operations = new[] + /// { + /// "get-sos-object", + /// "list-sos-bucket", + /// }, + /// Resources = new[] + /// { + /// "sos/bucket:my-bucket", + /// }, + /// }); + /// + /// var mySksAccessKey = new Exoscale.IamAccessKey("mySksAccessKey", new() + /// { + /// Tags = new[] + /// { + /// "sks", + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// + /// > **NOTE:** You can retrieve the list of available operations and tags using the [Exoscale CLI](https://github.com/exoscale/cli/): `exo iam access-key list-operations`. + /// + [ExoscaleResourceType("exoscale:index/iamAccessKey:IamAccessKey")] + public partial class IamAccessKey : global::Pulumi.CustomResource { /// /// The IAM access key (identifier). @@ -54,19 +94,19 @@ public partial class IAMAccessKey : global::Pulumi.CustomResource /// - /// Create a IAMAccessKey resource with the given unique name, arguments, and options. + /// Create a IamAccessKey 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 IAMAccessKey(string name, IAMAccessKeyArgs? args = null, CustomResourceOptions? options = null) - : base("exoscale:index/iAMAccessKey:IAMAccessKey", name, args ?? new IAMAccessKeyArgs(), MakeResourceOptions(options, "")) + public IamAccessKey(string name, IamAccessKeyArgs? args = null, CustomResourceOptions? options = null) + : base("exoscale:index/iamAccessKey:IamAccessKey", name, args ?? new IamAccessKeyArgs(), MakeResourceOptions(options, "")) { } - private IAMAccessKey(string name, Input id, IAMAccessKeyState? state = null, CustomResourceOptions? options = null) - : base("exoscale:index/iAMAccessKey:IAMAccessKey", name, state, MakeResourceOptions(options, id)) + private IamAccessKey(string name, Input id, IamAccessKeyState? state = null, CustomResourceOptions? options = null) + : base("exoscale:index/iamAccessKey:IamAccessKey", name, state, MakeResourceOptions(options, id)) { } @@ -88,7 +128,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? return merged; } /// - /// Get an existing IAMAccessKey resource's state with the given name, ID, and optional extra + /// Get an existing IamAccessKey resource's state with the given name, ID, and optional extra /// properties used to qualify the lookup. /// /// @@ -96,13 +136,13 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? /// 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 IAMAccessKey Get(string name, Input id, IAMAccessKeyState? state = null, CustomResourceOptions? options = null) + public static IamAccessKey Get(string name, Input id, IamAccessKeyState? state = null, CustomResourceOptions? options = null) { - return new IAMAccessKey(name, id, state, options); + return new IamAccessKey(name, id, state, options); } } - public sealed class IAMAccessKeyArgs : global::Pulumi.ResourceArgs + public sealed class IamAccessKeyArgs : global::Pulumi.ResourceArgs { /// /// ❗ The IAM access key name. @@ -146,13 +186,13 @@ public InputList Tags set => _tags = value; } - public IAMAccessKeyArgs() + public IamAccessKeyArgs() { } - public static new IAMAccessKeyArgs Empty => new IAMAccessKeyArgs(); + public static new IamAccessKeyArgs Empty => new IamAccessKeyArgs(); } - public sealed class IAMAccessKeyState : global::Pulumi.ResourceArgs + public sealed class IamAccessKeyState : global::Pulumi.ResourceArgs { [Input("key")] private Input? _key; @@ -236,9 +276,9 @@ public InputList TagsOperations set => _tagsOperations = value; } - public IAMAccessKeyState() + public IamAccessKeyState() { } - public static new IAMAccessKeyState Empty => new IAMAccessKeyState(); + public static new IamAccessKeyState Empty => new IamAccessKeyState(); } } diff --git a/sdk/dotnet/IAMAPIKey.cs b/sdk/dotnet/IamApiKey.cs similarity index 77% rename from sdk/dotnet/IAMAPIKey.cs rename to sdk/dotnet/IamApiKey.cs index 021e88dd..7db265a7 100644 --- a/sdk/dotnet/IAMAPIKey.cs +++ b/sdk/dotnet/IamApiKey.cs @@ -10,8 +10,8 @@ namespace Pulumiverse.Exoscale { - [ExoscaleResourceType("exoscale:index/iAMAPIKey:IAMAPIKey")] - public partial class IAMAPIKey : global::Pulumi.CustomResource + [ExoscaleResourceType("exoscale:index/iamApiKey:IamApiKey")] + public partial class IamApiKey : global::Pulumi.CustomResource { /// /// The IAM API Key to match. @@ -38,23 +38,23 @@ public partial class IAMAPIKey : global::Pulumi.CustomResource public Output Secret { get; private set; } = null!; [Output("timeouts")] - public Output Timeouts { get; private set; } = null!; + public Output Timeouts { get; private set; } = null!; /// - /// Create a IAMAPIKey resource with the given unique name, arguments, and options. + /// Create a IamApiKey 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 IAMAPIKey(string name, IAMAPIKeyArgs args, CustomResourceOptions? options = null) - : base("exoscale:index/iAMAPIKey:IAMAPIKey", name, args ?? new IAMAPIKeyArgs(), MakeResourceOptions(options, "")) + public IamApiKey(string name, IamApiKeyArgs args, CustomResourceOptions? options = null) + : base("exoscale:index/iamApiKey:IamApiKey", name, args ?? new IamApiKeyArgs(), MakeResourceOptions(options, "")) { } - private IAMAPIKey(string name, Input id, IAMAPIKeyState? state = null, CustomResourceOptions? options = null) - : base("exoscale:index/iAMAPIKey:IAMAPIKey", name, state, MakeResourceOptions(options, id)) + private IamApiKey(string name, Input id, IamApiKeyState? state = null, CustomResourceOptions? options = null) + : base("exoscale:index/iamApiKey:IamApiKey", name, state, MakeResourceOptions(options, id)) { } @@ -75,7 +75,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? return merged; } /// - /// Get an existing IAMAPIKey resource's state with the given name, ID, and optional extra + /// Get an existing IamApiKey resource's state with the given name, ID, and optional extra /// properties used to qualify the lookup. /// /// @@ -83,13 +83,13 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? /// 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 IAMAPIKey Get(string name, Input id, IAMAPIKeyState? state = null, CustomResourceOptions? options = null) + public static IamApiKey Get(string name, Input id, IamApiKeyState? state = null, CustomResourceOptions? options = null) { - return new IAMAPIKey(name, id, state, options); + return new IamApiKey(name, id, state, options); } } - public sealed class IAMAPIKeyArgs : global::Pulumi.ResourceArgs + public sealed class IamApiKeyArgs : global::Pulumi.ResourceArgs { /// /// ❗ IAM API Key name. @@ -104,15 +104,15 @@ public sealed class IAMAPIKeyArgs : global::Pulumi.ResourceArgs public Input RoleId { get; set; } = null!; [Input("timeouts")] - public Input? Timeouts { get; set; } + public Input? Timeouts { get; set; } - public IAMAPIKeyArgs() + public IamApiKeyArgs() { } - public static new IAMAPIKeyArgs Empty => new IAMAPIKeyArgs(); + public static new IamApiKeyArgs Empty => new IamApiKeyArgs(); } - public sealed class IAMAPIKeyState : global::Pulumi.ResourceArgs + public sealed class IamApiKeyState : global::Pulumi.ResourceArgs { /// /// The IAM API Key to match. @@ -149,11 +149,11 @@ public Input? Secret } [Input("timeouts")] - public Input? Timeouts { get; set; } + public Input? Timeouts { get; set; } - public IAMAPIKeyState() + public IamApiKeyState() { } - public static new IAMAPIKeyState Empty => new IAMAPIKeyState(); + public static new IamApiKeyState Empty => new IamApiKeyState(); } } diff --git a/sdk/dotnet/IAMOrgPolicy.cs b/sdk/dotnet/IamOrgPolicy.cs similarity index 68% rename from sdk/dotnet/IAMOrgPolicy.cs rename to sdk/dotnet/IamOrgPolicy.cs index bdeb1ac9..34e6de99 100644 --- a/sdk/dotnet/IAMOrgPolicy.cs +++ b/sdk/dotnet/IamOrgPolicy.cs @@ -10,8 +10,8 @@ namespace Pulumiverse.Exoscale { - [ExoscaleResourceType("exoscale:index/iAMOrgPolicy:IAMOrgPolicy")] - public partial class IAMOrgPolicy : global::Pulumi.CustomResource + [ExoscaleResourceType("exoscale:index/iamOrgPolicy:IamOrgPolicy")] + public partial class IamOrgPolicy : global::Pulumi.CustomResource { /// /// Default service strategy (`allow` or `deny`). @@ -23,26 +23,26 @@ public partial class IAMOrgPolicy : global::Pulumi.CustomResource /// IAM policy services. /// [Output("services")] - public Output> Services { get; private set; } = null!; + public Output> Services { get; private set; } = null!; [Output("timeouts")] - public Output Timeouts { get; private set; } = null!; + public Output Timeouts { get; private set; } = null!; /// - /// Create a IAMOrgPolicy resource with the given unique name, arguments, and options. + /// Create a IamOrgPolicy 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 IAMOrgPolicy(string name, IAMOrgPolicyArgs args, CustomResourceOptions? options = null) - : base("exoscale:index/iAMOrgPolicy:IAMOrgPolicy", name, args ?? new IAMOrgPolicyArgs(), MakeResourceOptions(options, "")) + public IamOrgPolicy(string name, IamOrgPolicyArgs args, CustomResourceOptions? options = null) + : base("exoscale:index/iamOrgPolicy:IamOrgPolicy", name, args ?? new IamOrgPolicyArgs(), MakeResourceOptions(options, "")) { } - private IAMOrgPolicy(string name, Input id, IAMOrgPolicyState? state = null, CustomResourceOptions? options = null) - : base("exoscale:index/iAMOrgPolicy:IAMOrgPolicy", name, state, MakeResourceOptions(options, id)) + private IamOrgPolicy(string name, Input id, IamOrgPolicyState? state = null, CustomResourceOptions? options = null) + : base("exoscale:index/iamOrgPolicy:IamOrgPolicy", name, state, MakeResourceOptions(options, id)) { } @@ -59,7 +59,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? return merged; } /// - /// Get an existing IAMOrgPolicy resource's state with the given name, ID, and optional extra + /// Get an existing IamOrgPolicy resource's state with the given name, ID, and optional extra /// properties used to qualify the lookup. /// /// @@ -67,13 +67,13 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? /// 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 IAMOrgPolicy Get(string name, Input id, IAMOrgPolicyState? state = null, CustomResourceOptions? options = null) + public static IamOrgPolicy Get(string name, Input id, IamOrgPolicyState? state = null, CustomResourceOptions? options = null) { - return new IAMOrgPolicy(name, id, state, options); + return new IamOrgPolicy(name, id, state, options); } } - public sealed class IAMOrgPolicyArgs : global::Pulumi.ResourceArgs + public sealed class IamOrgPolicyArgs : global::Pulumi.ResourceArgs { /// /// Default service strategy (`allow` or `deny`). @@ -82,27 +82,27 @@ public sealed class IAMOrgPolicyArgs : global::Pulumi.ResourceArgs public Input DefaultServiceStrategy { get; set; } = null!; [Input("services", required: true)] - private InputMap? _services; + private InputMap? _services; /// /// IAM policy services. /// - public InputMap Services + public InputMap Services { - get => _services ?? (_services = new InputMap()); + get => _services ?? (_services = new InputMap()); set => _services = value; } [Input("timeouts")] - public Input? Timeouts { get; set; } + public Input? Timeouts { get; set; } - public IAMOrgPolicyArgs() + public IamOrgPolicyArgs() { } - public static new IAMOrgPolicyArgs Empty => new IAMOrgPolicyArgs(); + public static new IamOrgPolicyArgs Empty => new IamOrgPolicyArgs(); } - public sealed class IAMOrgPolicyState : global::Pulumi.ResourceArgs + public sealed class IamOrgPolicyState : global::Pulumi.ResourceArgs { /// /// Default service strategy (`allow` or `deny`). @@ -111,23 +111,23 @@ public sealed class IAMOrgPolicyState : global::Pulumi.ResourceArgs public Input? DefaultServiceStrategy { get; set; } [Input("services")] - private InputMap? _services; + private InputMap? _services; /// /// IAM policy services. /// - public InputMap Services + public InputMap Services { - get => _services ?? (_services = new InputMap()); + get => _services ?? (_services = new InputMap()); set => _services = value; } [Input("timeouts")] - public Input? Timeouts { get; set; } + public Input? Timeouts { get; set; } - public IAMOrgPolicyState() + public IamOrgPolicyState() { } - public static new IAMOrgPolicyState Empty => new IAMOrgPolicyState(); + public static new IamOrgPolicyState Empty => new IamOrgPolicyState(); } } diff --git a/sdk/dotnet/IAMRole.cs b/sdk/dotnet/IamRole.cs similarity index 79% rename from sdk/dotnet/IAMRole.cs rename to sdk/dotnet/IamRole.cs index a35b64bf..4d863e46 100644 --- a/sdk/dotnet/IAMRole.cs +++ b/sdk/dotnet/IamRole.cs @@ -13,8 +13,8 @@ namespace Pulumiverse.Exoscale /// /// Manage Exoscale [IAM](https://community.exoscale.com/documentation/iam/) Role. /// - [ExoscaleResourceType("exoscale:index/iAMRole:IAMRole")] - public partial class IAMRole : global::Pulumi.CustomResource + [ExoscaleResourceType("exoscale:index/iamRole:IamRole")] + public partial class IamRole : global::Pulumi.CustomResource { /// /// A free-form text describing the IAM Role @@ -35,7 +35,7 @@ public partial class IAMRole : global::Pulumi.CustomResource public Output> Labels { get; private set; } = null!; /// - /// Name of IAM Role. + /// ❗Name of IAM Role. /// [Output("name")] public Output Name { get; private set; } = null!; @@ -50,26 +50,26 @@ public partial class IAMRole : global::Pulumi.CustomResource /// IAM Policy. /// [Output("policy")] - public Output Policy { get; private set; } = null!; + public Output Policy { get; private set; } = null!; [Output("timeouts")] - public Output Timeouts { get; private set; } = null!; + public Output Timeouts { get; private set; } = null!; /// - /// Create a IAMRole resource with the given unique name, arguments, and options. + /// Create a IamRole 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 IAMRole(string name, IAMRoleArgs? args = null, CustomResourceOptions? options = null) - : base("exoscale:index/iAMRole:IAMRole", name, args ?? new IAMRoleArgs(), MakeResourceOptions(options, "")) + public IamRole(string name, IamRoleArgs? args = null, CustomResourceOptions? options = null) + : base("exoscale:index/iamRole:IamRole", name, args ?? new IamRoleArgs(), MakeResourceOptions(options, "")) { } - private IAMRole(string name, Input id, IAMRoleState? state = null, CustomResourceOptions? options = null) - : base("exoscale:index/iAMRole:IAMRole", name, state, MakeResourceOptions(options, id)) + private IamRole(string name, Input id, IamRoleState? state = null, CustomResourceOptions? options = null) + : base("exoscale:index/iamRole:IamRole", name, state, MakeResourceOptions(options, id)) { } @@ -86,7 +86,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? return merged; } /// - /// Get an existing IAMRole resource's state with the given name, ID, and optional extra + /// Get an existing IamRole resource's state with the given name, ID, and optional extra /// properties used to qualify the lookup. /// /// @@ -94,13 +94,13 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? /// 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 IAMRole Get(string name, Input id, IAMRoleState? state = null, CustomResourceOptions? options = null) + public static IamRole Get(string name, Input id, IamRoleState? state = null, CustomResourceOptions? options = null) { - return new IAMRole(name, id, state, options); + return new IamRole(name, id, state, options); } } - public sealed class IAMRoleArgs : global::Pulumi.ResourceArgs + public sealed class IamRoleArgs : global::Pulumi.ResourceArgs { /// /// A free-form text describing the IAM Role @@ -127,7 +127,7 @@ public InputMap Labels } /// - /// Name of IAM Role. + /// ❗Name of IAM Role. /// [Input("name")] public Input? Name { get; set; } @@ -148,18 +148,18 @@ public InputList Permissions /// IAM Policy. /// [Input("policy")] - public Input? Policy { get; set; } + public Input? Policy { get; set; } [Input("timeouts")] - public Input? Timeouts { get; set; } + public Input? Timeouts { get; set; } - public IAMRoleArgs() + public IamRoleArgs() { } - public static new IAMRoleArgs Empty => new IAMRoleArgs(); + public static new IamRoleArgs Empty => new IamRoleArgs(); } - public sealed class IAMRoleState : global::Pulumi.ResourceArgs + public sealed class IamRoleState : global::Pulumi.ResourceArgs { /// /// A free-form text describing the IAM Role @@ -186,7 +186,7 @@ public InputMap Labels } /// - /// Name of IAM Role. + /// ❗Name of IAM Role. /// [Input("name")] public Input? Name { get; set; } @@ -207,14 +207,14 @@ public InputList Permissions /// IAM Policy. /// [Input("policy")] - public Input? Policy { get; set; } + public Input? Policy { get; set; } [Input("timeouts")] - public Input? Timeouts { get; set; } + public Input? Timeouts { get; set; } - public IAMRoleState() + public IamRoleState() { } - public static new IAMRoleState Empty => new IAMRoleState(); + public static new IamRoleState Empty => new IamRoleState(); } } diff --git a/sdk/dotnet/Inputs/ElasticIPHealthcheckArgs.cs b/sdk/dotnet/Inputs/ElasticIpHealthcheckArgs.cs similarity index 92% rename from sdk/dotnet/Inputs/ElasticIPHealthcheckArgs.cs rename to sdk/dotnet/Inputs/ElasticIpHealthcheckArgs.cs index 33bb3da3..63a36891 100644 --- a/sdk/dotnet/Inputs/ElasticIPHealthcheckArgs.cs +++ b/sdk/dotnet/Inputs/ElasticIpHealthcheckArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class ElasticIPHealthcheckArgs : global::Pulumi.ResourceArgs + public sealed class ElasticIpHealthcheckArgs : global::Pulumi.ResourceArgs { /// /// The healthcheck interval (seconds; must be between `5` and `300`; default: `10`). @@ -67,9 +67,9 @@ public sealed class ElasticIPHealthcheckArgs : global::Pulumi.ResourceArgs [Input("uri")] public Input? Uri { get; set; } - public ElasticIPHealthcheckArgs() + public ElasticIpHealthcheckArgs() { } - public static new ElasticIPHealthcheckArgs Empty => new ElasticIPHealthcheckArgs(); + public static new ElasticIpHealthcheckArgs Empty => new ElasticIpHealthcheckArgs(); } } diff --git a/sdk/dotnet/Inputs/ElasticIPHealthcheckGetArgs.cs b/sdk/dotnet/Inputs/ElasticIpHealthcheckGetArgs.cs similarity index 92% rename from sdk/dotnet/Inputs/ElasticIPHealthcheckGetArgs.cs rename to sdk/dotnet/Inputs/ElasticIpHealthcheckGetArgs.cs index 98d24498..bc85229b 100644 --- a/sdk/dotnet/Inputs/ElasticIPHealthcheckGetArgs.cs +++ b/sdk/dotnet/Inputs/ElasticIpHealthcheckGetArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class ElasticIPHealthcheckGetArgs : global::Pulumi.ResourceArgs + public sealed class ElasticIpHealthcheckGetArgs : global::Pulumi.ResourceArgs { /// /// The healthcheck interval (seconds; must be between `5` and `300`; default: `10`). @@ -67,9 +67,9 @@ public sealed class ElasticIPHealthcheckGetArgs : global::Pulumi.ResourceArgs [Input("uri")] public Input? Uri { get; set; } - public ElasticIPHealthcheckGetArgs() + public ElasticIpHealthcheckGetArgs() { } - public static new ElasticIPHealthcheckGetArgs Empty => new ElasticIPHealthcheckGetArgs(); + public static new ElasticIpHealthcheckGetArgs Empty => new ElasticIpHealthcheckGetArgs(); } } diff --git a/sdk/dotnet/Inputs/GetDatabaseURITimeouts.cs b/sdk/dotnet/Inputs/GetDatabaseUriTimeouts.cs similarity index 80% rename from sdk/dotnet/Inputs/GetDatabaseURITimeouts.cs rename to sdk/dotnet/Inputs/GetDatabaseUriTimeouts.cs index 1d995e93..073549db 100644 --- a/sdk/dotnet/Inputs/GetDatabaseURITimeouts.cs +++ b/sdk/dotnet/Inputs/GetDatabaseUriTimeouts.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class GetDatabaseURITimeoutsArgs : global::Pulumi.InvokeArgs + public sealed class GetDatabaseUriTimeoutsArgs : global::Pulumi.InvokeArgs { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -19,9 +19,9 @@ public sealed class GetDatabaseURITimeoutsArgs : global::Pulumi.InvokeArgs [Input("read")] public string? Read { get; set; } - public GetDatabaseURITimeoutsArgs() + public GetDatabaseUriTimeoutsArgs() { } - public static new GetDatabaseURITimeoutsArgs Empty => new GetDatabaseURITimeoutsArgs(); + public static new GetDatabaseUriTimeoutsArgs Empty => new GetDatabaseUriTimeoutsArgs(); } } diff --git a/sdk/dotnet/Inputs/GetDatabaseURITimeoutsArgs.cs b/sdk/dotnet/Inputs/GetDatabaseUriTimeoutsArgs.cs similarity index 79% rename from sdk/dotnet/Inputs/GetDatabaseURITimeoutsArgs.cs rename to sdk/dotnet/Inputs/GetDatabaseUriTimeoutsArgs.cs index 23c7dbcc..a53aa708 100644 --- a/sdk/dotnet/Inputs/GetDatabaseURITimeoutsArgs.cs +++ b/sdk/dotnet/Inputs/GetDatabaseUriTimeoutsArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class GetDatabaseURITimeoutsInputArgs : global::Pulumi.ResourceArgs + public sealed class GetDatabaseUriTimeoutsInputArgs : global::Pulumi.ResourceArgs { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -19,9 +19,9 @@ public sealed class GetDatabaseURITimeoutsInputArgs : global::Pulumi.ResourceArg [Input("read")] public Input? Read { get; set; } - public GetDatabaseURITimeoutsInputArgs() + public GetDatabaseUriTimeoutsInputArgs() { } - public static new GetDatabaseURITimeoutsInputArgs Empty => new GetDatabaseURITimeoutsInputArgs(); + public static new GetDatabaseUriTimeoutsInputArgs Empty => new GetDatabaseUriTimeoutsInputArgs(); } } diff --git a/sdk/dotnet/Inputs/GetIAMAPIKeyTimeouts.cs b/sdk/dotnet/Inputs/GetIamApiKeyTimeouts.cs similarity index 80% rename from sdk/dotnet/Inputs/GetIAMAPIKeyTimeouts.cs rename to sdk/dotnet/Inputs/GetIamApiKeyTimeouts.cs index 48a7eefc..7615ea0b 100644 --- a/sdk/dotnet/Inputs/GetIAMAPIKeyTimeouts.cs +++ b/sdk/dotnet/Inputs/GetIamApiKeyTimeouts.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class GetIAMAPIKeyTimeoutsArgs : global::Pulumi.InvokeArgs + public sealed class GetIamApiKeyTimeoutsArgs : global::Pulumi.InvokeArgs { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -19,9 +19,9 @@ public sealed class GetIAMAPIKeyTimeoutsArgs : global::Pulumi.InvokeArgs [Input("read")] public string? Read { get; set; } - public GetIAMAPIKeyTimeoutsArgs() + public GetIamApiKeyTimeoutsArgs() { } - public static new GetIAMAPIKeyTimeoutsArgs Empty => new GetIAMAPIKeyTimeoutsArgs(); + public static new GetIamApiKeyTimeoutsArgs Empty => new GetIamApiKeyTimeoutsArgs(); } } diff --git a/sdk/dotnet/Inputs/GetIAMAPIKeyTimeoutsArgs.cs b/sdk/dotnet/Inputs/GetIamApiKeyTimeoutsArgs.cs similarity index 80% rename from sdk/dotnet/Inputs/GetIAMAPIKeyTimeoutsArgs.cs rename to sdk/dotnet/Inputs/GetIamApiKeyTimeoutsArgs.cs index 99b9eadc..fe97f388 100644 --- a/sdk/dotnet/Inputs/GetIAMAPIKeyTimeoutsArgs.cs +++ b/sdk/dotnet/Inputs/GetIamApiKeyTimeoutsArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class GetIAMAPIKeyTimeoutsInputArgs : global::Pulumi.ResourceArgs + public sealed class GetIamApiKeyTimeoutsInputArgs : global::Pulumi.ResourceArgs { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -19,9 +19,9 @@ public sealed class GetIAMAPIKeyTimeoutsInputArgs : global::Pulumi.ResourceArgs [Input("read")] public Input? Read { get; set; } - public GetIAMAPIKeyTimeoutsInputArgs() + public GetIamApiKeyTimeoutsInputArgs() { } - public static new GetIAMAPIKeyTimeoutsInputArgs Empty => new GetIAMAPIKeyTimeoutsInputArgs(); + public static new GetIamApiKeyTimeoutsInputArgs Empty => new GetIamApiKeyTimeoutsInputArgs(); } } diff --git a/sdk/dotnet/Inputs/GetIAMOrgPolicyTimeouts.cs b/sdk/dotnet/Inputs/GetIamOrgPolicyTimeouts.cs similarity index 80% rename from sdk/dotnet/Inputs/GetIAMOrgPolicyTimeouts.cs rename to sdk/dotnet/Inputs/GetIamOrgPolicyTimeouts.cs index 5da8346a..342b3d01 100644 --- a/sdk/dotnet/Inputs/GetIAMOrgPolicyTimeouts.cs +++ b/sdk/dotnet/Inputs/GetIamOrgPolicyTimeouts.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class GetIAMOrgPolicyTimeoutsArgs : global::Pulumi.InvokeArgs + public sealed class GetIamOrgPolicyTimeoutsArgs : global::Pulumi.InvokeArgs { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -19,9 +19,9 @@ public sealed class GetIAMOrgPolicyTimeoutsArgs : global::Pulumi.InvokeArgs [Input("read")] public string? Read { get; set; } - public GetIAMOrgPolicyTimeoutsArgs() + public GetIamOrgPolicyTimeoutsArgs() { } - public static new GetIAMOrgPolicyTimeoutsArgs Empty => new GetIAMOrgPolicyTimeoutsArgs(); + public static new GetIamOrgPolicyTimeoutsArgs Empty => new GetIamOrgPolicyTimeoutsArgs(); } } diff --git a/sdk/dotnet/Inputs/GetIAMOrgPolicyTimeoutsArgs.cs b/sdk/dotnet/Inputs/GetIamOrgPolicyTimeoutsArgs.cs similarity index 79% rename from sdk/dotnet/Inputs/GetIAMOrgPolicyTimeoutsArgs.cs rename to sdk/dotnet/Inputs/GetIamOrgPolicyTimeoutsArgs.cs index 053b3719..9b0ace85 100644 --- a/sdk/dotnet/Inputs/GetIAMOrgPolicyTimeoutsArgs.cs +++ b/sdk/dotnet/Inputs/GetIamOrgPolicyTimeoutsArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class GetIAMOrgPolicyTimeoutsInputArgs : global::Pulumi.ResourceArgs + public sealed class GetIamOrgPolicyTimeoutsInputArgs : global::Pulumi.ResourceArgs { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -19,9 +19,9 @@ public sealed class GetIAMOrgPolicyTimeoutsInputArgs : global::Pulumi.ResourceAr [Input("read")] public Input? Read { get; set; } - public GetIAMOrgPolicyTimeoutsInputArgs() + public GetIamOrgPolicyTimeoutsInputArgs() { } - public static new GetIAMOrgPolicyTimeoutsInputArgs Empty => new GetIAMOrgPolicyTimeoutsInputArgs(); + public static new GetIamOrgPolicyTimeoutsInputArgs Empty => new GetIamOrgPolicyTimeoutsInputArgs(); } } diff --git a/sdk/dotnet/Inputs/GetIAMRoleTimeouts.cs b/sdk/dotnet/Inputs/GetIamRoleTimeouts.cs similarity index 81% rename from sdk/dotnet/Inputs/GetIAMRoleTimeouts.cs rename to sdk/dotnet/Inputs/GetIamRoleTimeouts.cs index 3c5a430c..3dd58d87 100644 --- a/sdk/dotnet/Inputs/GetIAMRoleTimeouts.cs +++ b/sdk/dotnet/Inputs/GetIamRoleTimeouts.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class GetIAMRoleTimeoutsArgs : global::Pulumi.InvokeArgs + public sealed class GetIamRoleTimeoutsArgs : global::Pulumi.InvokeArgs { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -19,9 +19,9 @@ public sealed class GetIAMRoleTimeoutsArgs : global::Pulumi.InvokeArgs [Input("read")] public string? Read { get; set; } - public GetIAMRoleTimeoutsArgs() + public GetIamRoleTimeoutsArgs() { } - public static new GetIAMRoleTimeoutsArgs Empty => new GetIAMRoleTimeoutsArgs(); + public static new GetIamRoleTimeoutsArgs Empty => new GetIamRoleTimeoutsArgs(); } } diff --git a/sdk/dotnet/Inputs/IAMOrgPolicyTimeoutsGetArgs.cs b/sdk/dotnet/Inputs/GetIamRoleTimeoutsArgs.cs similarity index 80% rename from sdk/dotnet/Inputs/IAMOrgPolicyTimeoutsGetArgs.cs rename to sdk/dotnet/Inputs/GetIamRoleTimeoutsArgs.cs index 5d7e1473..5b49b327 100644 --- a/sdk/dotnet/Inputs/IAMOrgPolicyTimeoutsGetArgs.cs +++ b/sdk/dotnet/Inputs/GetIamRoleTimeoutsArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class IAMOrgPolicyTimeoutsGetArgs : global::Pulumi.ResourceArgs + public sealed class GetIamRoleTimeoutsInputArgs : global::Pulumi.ResourceArgs { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -19,9 +19,9 @@ public sealed class IAMOrgPolicyTimeoutsGetArgs : global::Pulumi.ResourceArgs [Input("read")] public Input? Read { get; set; } - public IAMOrgPolicyTimeoutsGetArgs() + public GetIamRoleTimeoutsInputArgs() { } - public static new IAMOrgPolicyTimeoutsGetArgs Empty => new IAMOrgPolicyTimeoutsGetArgs(); + public static new GetIamRoleTimeoutsInputArgs Empty => new GetIamRoleTimeoutsInputArgs(); } } diff --git a/sdk/dotnet/Inputs/GetNLBServiceListTimeouts.cs b/sdk/dotnet/Inputs/GetNlbServiceListTimeouts.cs similarity index 79% rename from sdk/dotnet/Inputs/GetNLBServiceListTimeouts.cs rename to sdk/dotnet/Inputs/GetNlbServiceListTimeouts.cs index bb449cb5..fa4a1b20 100644 --- a/sdk/dotnet/Inputs/GetNLBServiceListTimeouts.cs +++ b/sdk/dotnet/Inputs/GetNlbServiceListTimeouts.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class GetNLBServiceListTimeoutsArgs : global::Pulumi.InvokeArgs + public sealed class GetNlbServiceListTimeoutsArgs : global::Pulumi.InvokeArgs { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -19,9 +19,9 @@ public sealed class GetNLBServiceListTimeoutsArgs : global::Pulumi.InvokeArgs [Input("read")] public string? Read { get; set; } - public GetNLBServiceListTimeoutsArgs() + public GetNlbServiceListTimeoutsArgs() { } - public static new GetNLBServiceListTimeoutsArgs Empty => new GetNLBServiceListTimeoutsArgs(); + public static new GetNlbServiceListTimeoutsArgs Empty => new GetNlbServiceListTimeoutsArgs(); } } diff --git a/sdk/dotnet/Inputs/GetNLBServiceListTimeoutsArgs.cs b/sdk/dotnet/Inputs/GetNlbServiceListTimeoutsArgs.cs similarity index 79% rename from sdk/dotnet/Inputs/GetNLBServiceListTimeoutsArgs.cs rename to sdk/dotnet/Inputs/GetNlbServiceListTimeoutsArgs.cs index b2f4203c..627adce6 100644 --- a/sdk/dotnet/Inputs/GetNLBServiceListTimeoutsArgs.cs +++ b/sdk/dotnet/Inputs/GetNlbServiceListTimeoutsArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class GetNLBServiceListTimeoutsInputArgs : global::Pulumi.ResourceArgs + public sealed class GetNlbServiceListTimeoutsInputArgs : global::Pulumi.ResourceArgs { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -19,9 +19,9 @@ public sealed class GetNLBServiceListTimeoutsInputArgs : global::Pulumi.Resource [Input("read")] public Input? Read { get; set; } - public GetNLBServiceListTimeoutsInputArgs() + public GetNlbServiceListTimeoutsInputArgs() { } - public static new GetNLBServiceListTimeoutsInputArgs Empty => new GetNLBServiceListTimeoutsInputArgs(); + public static new GetNlbServiceListTimeoutsInputArgs Empty => new GetNlbServiceListTimeoutsInputArgs(); } } diff --git a/sdk/dotnet/Inputs/GetSKSClusterOidc.cs b/sdk/dotnet/Inputs/GetSksClusterOidc.cs similarity index 91% rename from sdk/dotnet/Inputs/GetSKSClusterOidc.cs rename to sdk/dotnet/Inputs/GetSksClusterOidc.cs index 9f8a1a0b..7274cbc6 100644 --- a/sdk/dotnet/Inputs/GetSKSClusterOidc.cs +++ b/sdk/dotnet/Inputs/GetSksClusterOidc.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class GetSKSClusterOidcArgs : global::Pulumi.InvokeArgs + public sealed class GetSksClusterOidcArgs : global::Pulumi.InvokeArgs { /// /// The OpenID client ID. @@ -61,9 +61,9 @@ public Dictionary RequiredClaim [Input("usernamePrefix")] public string? UsernamePrefix { get; set; } - public GetSKSClusterOidcArgs() + public GetSksClusterOidcArgs() { } - public static new GetSKSClusterOidcArgs Empty => new GetSKSClusterOidcArgs(); + public static new GetSksClusterOidcArgs Empty => new GetSksClusterOidcArgs(); } } diff --git a/sdk/dotnet/Inputs/GetSKSClusterOidcArgs.cs b/sdk/dotnet/Inputs/GetSksClusterOidcArgs.cs similarity index 90% rename from sdk/dotnet/Inputs/GetSKSClusterOidcArgs.cs rename to sdk/dotnet/Inputs/GetSksClusterOidcArgs.cs index f21b172d..a0ac6c26 100644 --- a/sdk/dotnet/Inputs/GetSKSClusterOidcArgs.cs +++ b/sdk/dotnet/Inputs/GetSksClusterOidcArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class GetSKSClusterOidcInputArgs : global::Pulumi.ResourceArgs + public sealed class GetSksClusterOidcInputArgs : global::Pulumi.ResourceArgs { /// /// The OpenID client ID. @@ -61,9 +61,9 @@ public InputMap RequiredClaim [Input("usernamePrefix")] public Input? UsernamePrefix { get; set; } - public GetSKSClusterOidcInputArgs() + public GetSksClusterOidcInputArgs() { } - public static new GetSKSClusterOidcInputArgs Empty => new GetSKSClusterOidcInputArgs(); + public static new GetSksClusterOidcInputArgs Empty => new GetSksClusterOidcInputArgs(); } } diff --git a/sdk/dotnet/Inputs/IAMAPIKeyTimeoutsArgs.cs b/sdk/dotnet/Inputs/IamApiKeyTimeoutsArgs.cs similarity index 81% rename from sdk/dotnet/Inputs/IAMAPIKeyTimeoutsArgs.cs rename to sdk/dotnet/Inputs/IamApiKeyTimeoutsArgs.cs index e759a895..27329338 100644 --- a/sdk/dotnet/Inputs/IAMAPIKeyTimeoutsArgs.cs +++ b/sdk/dotnet/Inputs/IamApiKeyTimeoutsArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class IAMAPIKeyTimeoutsArgs : global::Pulumi.ResourceArgs + public sealed class IamApiKeyTimeoutsArgs : global::Pulumi.ResourceArgs { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -19,9 +19,9 @@ public sealed class IAMAPIKeyTimeoutsArgs : global::Pulumi.ResourceArgs [Input("read")] public Input? Read { get; set; } - public IAMAPIKeyTimeoutsArgs() + public IamApiKeyTimeoutsArgs() { } - public static new IAMAPIKeyTimeoutsArgs Empty => new IAMAPIKeyTimeoutsArgs(); + public static new IamApiKeyTimeoutsArgs Empty => new IamApiKeyTimeoutsArgs(); } } diff --git a/sdk/dotnet/Inputs/IAMAPIKeyTimeoutsGetArgs.cs b/sdk/dotnet/Inputs/IamApiKeyTimeoutsGetArgs.cs similarity index 81% rename from sdk/dotnet/Inputs/IAMAPIKeyTimeoutsGetArgs.cs rename to sdk/dotnet/Inputs/IamApiKeyTimeoutsGetArgs.cs index 712d142f..a5ff7cdb 100644 --- a/sdk/dotnet/Inputs/IAMAPIKeyTimeoutsGetArgs.cs +++ b/sdk/dotnet/Inputs/IamApiKeyTimeoutsGetArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class IAMAPIKeyTimeoutsGetArgs : global::Pulumi.ResourceArgs + public sealed class IamApiKeyTimeoutsGetArgs : global::Pulumi.ResourceArgs { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -19,9 +19,9 @@ public sealed class IAMAPIKeyTimeoutsGetArgs : global::Pulumi.ResourceArgs [Input("read")] public Input? Read { get; set; } - public IAMAPIKeyTimeoutsGetArgs() + public IamApiKeyTimeoutsGetArgs() { } - public static new IAMAPIKeyTimeoutsGetArgs Empty => new IAMAPIKeyTimeoutsGetArgs(); + public static new IamApiKeyTimeoutsGetArgs Empty => new IamApiKeyTimeoutsGetArgs(); } } diff --git a/sdk/dotnet/Inputs/IAMOrgPolicyServicesArgs.cs b/sdk/dotnet/Inputs/IamOrgPolicyServicesArgs.cs similarity index 67% rename from sdk/dotnet/Inputs/IAMOrgPolicyServicesArgs.cs rename to sdk/dotnet/Inputs/IamOrgPolicyServicesArgs.cs index 90c5be44..0622627f 100644 --- a/sdk/dotnet/Inputs/IAMOrgPolicyServicesArgs.cs +++ b/sdk/dotnet/Inputs/IamOrgPolicyServicesArgs.cs @@ -11,17 +11,17 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class IAMOrgPolicyServicesArgs : global::Pulumi.ResourceArgs + public sealed class IamOrgPolicyServicesArgs : global::Pulumi.ResourceArgs { [Input("rules")] - private InputList? _rules; + private InputList? _rules; /// /// List of IAM service rules (if type is `rules`). /// - public InputList Rules + public InputList Rules { - get => _rules ?? (_rules = new InputList()); + get => _rules ?? (_rules = new InputList()); set => _rules = value; } @@ -31,9 +31,9 @@ public InputList Rules [Input("type")] public Input? Type { get; set; } - public IAMOrgPolicyServicesArgs() + public IamOrgPolicyServicesArgs() { } - public static new IAMOrgPolicyServicesArgs Empty => new IAMOrgPolicyServicesArgs(); + public static new IamOrgPolicyServicesArgs Empty => new IamOrgPolicyServicesArgs(); } } diff --git a/sdk/dotnet/Inputs/IAMOrgPolicyServicesGetArgs.cs b/sdk/dotnet/Inputs/IamOrgPolicyServicesGetArgs.cs similarity index 67% rename from sdk/dotnet/Inputs/IAMOrgPolicyServicesGetArgs.cs rename to sdk/dotnet/Inputs/IamOrgPolicyServicesGetArgs.cs index 1661aa7c..f224f493 100644 --- a/sdk/dotnet/Inputs/IAMOrgPolicyServicesGetArgs.cs +++ b/sdk/dotnet/Inputs/IamOrgPolicyServicesGetArgs.cs @@ -11,17 +11,17 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class IAMOrgPolicyServicesGetArgs : global::Pulumi.ResourceArgs + public sealed class IamOrgPolicyServicesGetArgs : global::Pulumi.ResourceArgs { [Input("rules")] - private InputList? _rules; + private InputList? _rules; /// /// List of IAM service rules (if type is `rules`). /// - public InputList Rules + public InputList Rules { - get => _rules ?? (_rules = new InputList()); + get => _rules ?? (_rules = new InputList()); set => _rules = value; } @@ -31,9 +31,9 @@ public InputList Rules [Input("type")] public Input? Type { get; set; } - public IAMOrgPolicyServicesGetArgs() + public IamOrgPolicyServicesGetArgs() { } - public static new IAMOrgPolicyServicesGetArgs Empty => new IAMOrgPolicyServicesGetArgs(); + public static new IamOrgPolicyServicesGetArgs Empty => new IamOrgPolicyServicesGetArgs(); } } diff --git a/sdk/dotnet/Inputs/IAMOrgPolicyServicesRuleArgs.cs b/sdk/dotnet/Inputs/IamOrgPolicyServicesRuleArgs.cs similarity index 84% rename from sdk/dotnet/Inputs/IAMOrgPolicyServicesRuleArgs.cs rename to sdk/dotnet/Inputs/IamOrgPolicyServicesRuleArgs.cs index 8a1b9ea6..15583ef1 100644 --- a/sdk/dotnet/Inputs/IAMOrgPolicyServicesRuleArgs.cs +++ b/sdk/dotnet/Inputs/IamOrgPolicyServicesRuleArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class IAMOrgPolicyServicesRuleArgs : global::Pulumi.ResourceArgs + public sealed class IamOrgPolicyServicesRuleArgs : global::Pulumi.ResourceArgs { /// /// IAM policy rule action (`allow` or `deny`). @@ -34,9 +34,9 @@ public InputList Resources set => _resources = value; } - public IAMOrgPolicyServicesRuleArgs() + public IamOrgPolicyServicesRuleArgs() { } - public static new IAMOrgPolicyServicesRuleArgs Empty => new IAMOrgPolicyServicesRuleArgs(); + public static new IamOrgPolicyServicesRuleArgs Empty => new IamOrgPolicyServicesRuleArgs(); } } diff --git a/sdk/dotnet/Inputs/IAMOrgPolicyServicesRuleGetArgs.cs b/sdk/dotnet/Inputs/IamOrgPolicyServicesRuleGetArgs.cs similarity index 83% rename from sdk/dotnet/Inputs/IAMOrgPolicyServicesRuleGetArgs.cs rename to sdk/dotnet/Inputs/IamOrgPolicyServicesRuleGetArgs.cs index ddbc4e81..d98d8118 100644 --- a/sdk/dotnet/Inputs/IAMOrgPolicyServicesRuleGetArgs.cs +++ b/sdk/dotnet/Inputs/IamOrgPolicyServicesRuleGetArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class IAMOrgPolicyServicesRuleGetArgs : global::Pulumi.ResourceArgs + public sealed class IamOrgPolicyServicesRuleGetArgs : global::Pulumi.ResourceArgs { /// /// IAM policy rule action (`allow` or `deny`). @@ -34,9 +34,9 @@ public InputList Resources set => _resources = value; } - public IAMOrgPolicyServicesRuleGetArgs() + public IamOrgPolicyServicesRuleGetArgs() { } - public static new IAMOrgPolicyServicesRuleGetArgs Empty => new IAMOrgPolicyServicesRuleGetArgs(); + public static new IamOrgPolicyServicesRuleGetArgs Empty => new IamOrgPolicyServicesRuleGetArgs(); } } diff --git a/sdk/dotnet/Inputs/IAMOrgPolicyTimeoutsArgs.cs b/sdk/dotnet/Inputs/IamOrgPolicyTimeoutsArgs.cs similarity index 81% rename from sdk/dotnet/Inputs/IAMOrgPolicyTimeoutsArgs.cs rename to sdk/dotnet/Inputs/IamOrgPolicyTimeoutsArgs.cs index 2c6502d5..91f66957 100644 --- a/sdk/dotnet/Inputs/IAMOrgPolicyTimeoutsArgs.cs +++ b/sdk/dotnet/Inputs/IamOrgPolicyTimeoutsArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class IAMOrgPolicyTimeoutsArgs : global::Pulumi.ResourceArgs + public sealed class IamOrgPolicyTimeoutsArgs : global::Pulumi.ResourceArgs { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -19,9 +19,9 @@ public sealed class IAMOrgPolicyTimeoutsArgs : global::Pulumi.ResourceArgs [Input("read")] public Input? Read { get; set; } - public IAMOrgPolicyTimeoutsArgs() + public IamOrgPolicyTimeoutsArgs() { } - public static new IAMOrgPolicyTimeoutsArgs Empty => new IAMOrgPolicyTimeoutsArgs(); + public static new IamOrgPolicyTimeoutsArgs Empty => new IamOrgPolicyTimeoutsArgs(); } } diff --git a/sdk/dotnet/Inputs/GetIAMRoleTimeoutsArgs.cs b/sdk/dotnet/Inputs/IamOrgPolicyTimeoutsGetArgs.cs similarity index 80% rename from sdk/dotnet/Inputs/GetIAMRoleTimeoutsArgs.cs rename to sdk/dotnet/Inputs/IamOrgPolicyTimeoutsGetArgs.cs index 072d71ca..32cf37d5 100644 --- a/sdk/dotnet/Inputs/GetIAMRoleTimeoutsArgs.cs +++ b/sdk/dotnet/Inputs/IamOrgPolicyTimeoutsGetArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class GetIAMRoleTimeoutsInputArgs : global::Pulumi.ResourceArgs + public sealed class IamOrgPolicyTimeoutsGetArgs : global::Pulumi.ResourceArgs { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -19,9 +19,9 @@ public sealed class GetIAMRoleTimeoutsInputArgs : global::Pulumi.ResourceArgs [Input("read")] public Input? Read { get; set; } - public GetIAMRoleTimeoutsInputArgs() + public IamOrgPolicyTimeoutsGetArgs() { } - public static new GetIAMRoleTimeoutsInputArgs Empty => new GetIAMRoleTimeoutsInputArgs(); + public static new IamOrgPolicyTimeoutsGetArgs Empty => new IamOrgPolicyTimeoutsGetArgs(); } } diff --git a/sdk/dotnet/Inputs/IAMRolePolicyArgs.cs b/sdk/dotnet/Inputs/IamRolePolicyArgs.cs similarity index 73% rename from sdk/dotnet/Inputs/IAMRolePolicyArgs.cs rename to sdk/dotnet/Inputs/IamRolePolicyArgs.cs index 6bb90962..ba8c06ee 100644 --- a/sdk/dotnet/Inputs/IAMRolePolicyArgs.cs +++ b/sdk/dotnet/Inputs/IamRolePolicyArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class IAMRolePolicyArgs : global::Pulumi.ResourceArgs + public sealed class IamRolePolicyArgs : global::Pulumi.ResourceArgs { /// /// Default service strategy (`allow` or `deny`). @@ -20,20 +20,20 @@ public sealed class IAMRolePolicyArgs : global::Pulumi.ResourceArgs public Input? DefaultServiceStrategy { get; set; } [Input("services")] - private InputMap? _services; + private InputMap? _services; /// /// IAM policy services. /// - public InputMap Services + public InputMap Services { - get => _services ?? (_services = new InputMap()); + get => _services ?? (_services = new InputMap()); set => _services = value; } - public IAMRolePolicyArgs() + public IamRolePolicyArgs() { } - public static new IAMRolePolicyArgs Empty => new IAMRolePolicyArgs(); + public static new IamRolePolicyArgs Empty => new IamRolePolicyArgs(); } } diff --git a/sdk/dotnet/Inputs/IAMRolePolicyGetArgs.cs b/sdk/dotnet/Inputs/IamRolePolicyGetArgs.cs similarity index 73% rename from sdk/dotnet/Inputs/IAMRolePolicyGetArgs.cs rename to sdk/dotnet/Inputs/IamRolePolicyGetArgs.cs index 68693fbc..50d1f7ea 100644 --- a/sdk/dotnet/Inputs/IAMRolePolicyGetArgs.cs +++ b/sdk/dotnet/Inputs/IamRolePolicyGetArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class IAMRolePolicyGetArgs : global::Pulumi.ResourceArgs + public sealed class IamRolePolicyGetArgs : global::Pulumi.ResourceArgs { /// /// Default service strategy (`allow` or `deny`). @@ -20,20 +20,20 @@ public sealed class IAMRolePolicyGetArgs : global::Pulumi.ResourceArgs public Input? DefaultServiceStrategy { get; set; } [Input("services")] - private InputMap? _services; + private InputMap? _services; /// /// IAM policy services. /// - public InputMap Services + public InputMap Services { - get => _services ?? (_services = new InputMap()); + get => _services ?? (_services = new InputMap()); set => _services = value; } - public IAMRolePolicyGetArgs() + public IamRolePolicyGetArgs() { } - public static new IAMRolePolicyGetArgs Empty => new IAMRolePolicyGetArgs(); + public static new IamRolePolicyGetArgs Empty => new IamRolePolicyGetArgs(); } } diff --git a/sdk/dotnet/Inputs/IAMRolePolicyServicesArgs.cs b/sdk/dotnet/Inputs/IamRolePolicyServicesArgs.cs similarity index 67% rename from sdk/dotnet/Inputs/IAMRolePolicyServicesArgs.cs rename to sdk/dotnet/Inputs/IamRolePolicyServicesArgs.cs index 7e9d3ad8..134aeb64 100644 --- a/sdk/dotnet/Inputs/IAMRolePolicyServicesArgs.cs +++ b/sdk/dotnet/Inputs/IamRolePolicyServicesArgs.cs @@ -11,17 +11,17 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class IAMRolePolicyServicesArgs : global::Pulumi.ResourceArgs + public sealed class IamRolePolicyServicesArgs : global::Pulumi.ResourceArgs { [Input("rules")] - private InputList? _rules; + private InputList? _rules; /// /// List of IAM service rules (if type is `rules`). /// - public InputList Rules + public InputList Rules { - get => _rules ?? (_rules = new InputList()); + get => _rules ?? (_rules = new InputList()); set => _rules = value; } @@ -31,9 +31,9 @@ public InputList Rules [Input("type")] public Input? Type { get; set; } - public IAMRolePolicyServicesArgs() + public IamRolePolicyServicesArgs() { } - public static new IAMRolePolicyServicesArgs Empty => new IAMRolePolicyServicesArgs(); + public static new IamRolePolicyServicesArgs Empty => new IamRolePolicyServicesArgs(); } } diff --git a/sdk/dotnet/Inputs/IAMRolePolicyServicesGetArgs.cs b/sdk/dotnet/Inputs/IamRolePolicyServicesGetArgs.cs similarity index 67% rename from sdk/dotnet/Inputs/IAMRolePolicyServicesGetArgs.cs rename to sdk/dotnet/Inputs/IamRolePolicyServicesGetArgs.cs index 3c4c6d7a..54e47413 100644 --- a/sdk/dotnet/Inputs/IAMRolePolicyServicesGetArgs.cs +++ b/sdk/dotnet/Inputs/IamRolePolicyServicesGetArgs.cs @@ -11,17 +11,17 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class IAMRolePolicyServicesGetArgs : global::Pulumi.ResourceArgs + public sealed class IamRolePolicyServicesGetArgs : global::Pulumi.ResourceArgs { [Input("rules")] - private InputList? _rules; + private InputList? _rules; /// /// List of IAM service rules (if type is `rules`). /// - public InputList Rules + public InputList Rules { - get => _rules ?? (_rules = new InputList()); + get => _rules ?? (_rules = new InputList()); set => _rules = value; } @@ -31,9 +31,9 @@ public InputList Rules [Input("type")] public Input? Type { get; set; } - public IAMRolePolicyServicesGetArgs() + public IamRolePolicyServicesGetArgs() { } - public static new IAMRolePolicyServicesGetArgs Empty => new IAMRolePolicyServicesGetArgs(); + public static new IamRolePolicyServicesGetArgs Empty => new IamRolePolicyServicesGetArgs(); } } diff --git a/sdk/dotnet/Inputs/IAMRolePolicyServicesRuleArgs.cs b/sdk/dotnet/Inputs/IamRolePolicyServicesRuleArgs.cs similarity index 83% rename from sdk/dotnet/Inputs/IAMRolePolicyServicesRuleArgs.cs rename to sdk/dotnet/Inputs/IamRolePolicyServicesRuleArgs.cs index 15fb5647..64156e33 100644 --- a/sdk/dotnet/Inputs/IAMRolePolicyServicesRuleArgs.cs +++ b/sdk/dotnet/Inputs/IamRolePolicyServicesRuleArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class IAMRolePolicyServicesRuleArgs : global::Pulumi.ResourceArgs + public sealed class IamRolePolicyServicesRuleArgs : global::Pulumi.ResourceArgs { /// /// IAM policy rule action (`allow` or `deny`). @@ -34,9 +34,9 @@ public InputList Resources set => _resources = value; } - public IAMRolePolicyServicesRuleArgs() + public IamRolePolicyServicesRuleArgs() { } - public static new IAMRolePolicyServicesRuleArgs Empty => new IAMRolePolicyServicesRuleArgs(); + public static new IamRolePolicyServicesRuleArgs Empty => new IamRolePolicyServicesRuleArgs(); } } diff --git a/sdk/dotnet/Inputs/IAMRolePolicyServicesRuleGetArgs.cs b/sdk/dotnet/Inputs/IamRolePolicyServicesRuleGetArgs.cs similarity index 83% rename from sdk/dotnet/Inputs/IAMRolePolicyServicesRuleGetArgs.cs rename to sdk/dotnet/Inputs/IamRolePolicyServicesRuleGetArgs.cs index 95333b2b..66cfea96 100644 --- a/sdk/dotnet/Inputs/IAMRolePolicyServicesRuleGetArgs.cs +++ b/sdk/dotnet/Inputs/IamRolePolicyServicesRuleGetArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class IAMRolePolicyServicesRuleGetArgs : global::Pulumi.ResourceArgs + public sealed class IamRolePolicyServicesRuleGetArgs : global::Pulumi.ResourceArgs { /// /// IAM policy rule action (`allow` or `deny`). @@ -34,9 +34,9 @@ public InputList Resources set => _resources = value; } - public IAMRolePolicyServicesRuleGetArgs() + public IamRolePolicyServicesRuleGetArgs() { } - public static new IAMRolePolicyServicesRuleGetArgs Empty => new IAMRolePolicyServicesRuleGetArgs(); + public static new IamRolePolicyServicesRuleGetArgs Empty => new IamRolePolicyServicesRuleGetArgs(); } } diff --git a/sdk/dotnet/Inputs/IAMRoleTimeoutsArgs.cs b/sdk/dotnet/Inputs/IamRoleTimeoutsArgs.cs similarity index 83% rename from sdk/dotnet/Inputs/IAMRoleTimeoutsArgs.cs rename to sdk/dotnet/Inputs/IamRoleTimeoutsArgs.cs index ed4682e6..3576aa27 100644 --- a/sdk/dotnet/Inputs/IAMRoleTimeoutsArgs.cs +++ b/sdk/dotnet/Inputs/IamRoleTimeoutsArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class IAMRoleTimeoutsArgs : global::Pulumi.ResourceArgs + public sealed class IamRoleTimeoutsArgs : global::Pulumi.ResourceArgs { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -19,9 +19,9 @@ public sealed class IAMRoleTimeoutsArgs : global::Pulumi.ResourceArgs [Input("read")] public Input? Read { get; set; } - public IAMRoleTimeoutsArgs() + public IamRoleTimeoutsArgs() { } - public static new IAMRoleTimeoutsArgs Empty => new IAMRoleTimeoutsArgs(); + public static new IamRoleTimeoutsArgs Empty => new IamRoleTimeoutsArgs(); } } diff --git a/sdk/dotnet/Inputs/IAMRoleTimeoutsGetArgs.cs b/sdk/dotnet/Inputs/IamRoleTimeoutsGetArgs.cs similarity index 81% rename from sdk/dotnet/Inputs/IAMRoleTimeoutsGetArgs.cs rename to sdk/dotnet/Inputs/IamRoleTimeoutsGetArgs.cs index 5f8f43c5..82be6e57 100644 --- a/sdk/dotnet/Inputs/IAMRoleTimeoutsGetArgs.cs +++ b/sdk/dotnet/Inputs/IamRoleTimeoutsGetArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class IAMRoleTimeoutsGetArgs : global::Pulumi.ResourceArgs + public sealed class IamRoleTimeoutsGetArgs : global::Pulumi.ResourceArgs { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -19,9 +19,9 @@ public sealed class IAMRoleTimeoutsGetArgs : global::Pulumi.ResourceArgs [Input("read")] public Input? Read { get; set; } - public IAMRoleTimeoutsGetArgs() + public IamRoleTimeoutsGetArgs() { } - public static new IAMRoleTimeoutsGetArgs Empty => new IAMRoleTimeoutsGetArgs(); + public static new IamRoleTimeoutsGetArgs Empty => new IamRoleTimeoutsGetArgs(); } } diff --git a/sdk/dotnet/Inputs/NLBServiceHealthcheckArgs.cs b/sdk/dotnet/Inputs/NlbServiceHealthcheckArgs.cs similarity index 89% rename from sdk/dotnet/Inputs/NLBServiceHealthcheckArgs.cs rename to sdk/dotnet/Inputs/NlbServiceHealthcheckArgs.cs index 1f60a112..b7984d55 100644 --- a/sdk/dotnet/Inputs/NLBServiceHealthcheckArgs.cs +++ b/sdk/dotnet/Inputs/NlbServiceHealthcheckArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class NLBServiceHealthcheckArgs : global::Pulumi.ResourceArgs + public sealed class NlbServiceHealthcheckArgs : global::Pulumi.ResourceArgs { /// /// The healthcheck interval in seconds (default: `10`). @@ -55,9 +55,9 @@ public sealed class NLBServiceHealthcheckArgs : global::Pulumi.ResourceArgs [Input("uri")] public Input? Uri { get; set; } - public NLBServiceHealthcheckArgs() + public NlbServiceHealthcheckArgs() { } - public static new NLBServiceHealthcheckArgs Empty => new NLBServiceHealthcheckArgs(); + public static new NlbServiceHealthcheckArgs Empty => new NlbServiceHealthcheckArgs(); } } diff --git a/sdk/dotnet/Inputs/NLBServiceHealthcheckGetArgs.cs b/sdk/dotnet/Inputs/NlbServiceHealthcheckGetArgs.cs similarity index 89% rename from sdk/dotnet/Inputs/NLBServiceHealthcheckGetArgs.cs rename to sdk/dotnet/Inputs/NlbServiceHealthcheckGetArgs.cs index 0b4b40ce..1f21bf87 100644 --- a/sdk/dotnet/Inputs/NLBServiceHealthcheckGetArgs.cs +++ b/sdk/dotnet/Inputs/NlbServiceHealthcheckGetArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class NLBServiceHealthcheckGetArgs : global::Pulumi.ResourceArgs + public sealed class NlbServiceHealthcheckGetArgs : global::Pulumi.ResourceArgs { /// /// The healthcheck interval in seconds (default: `10`). @@ -55,9 +55,9 @@ public sealed class NLBServiceHealthcheckGetArgs : global::Pulumi.ResourceArgs [Input("uri")] public Input? Uri { get; set; } - public NLBServiceHealthcheckGetArgs() + public NlbServiceHealthcheckGetArgs() { } - public static new NLBServiceHealthcheckGetArgs Empty => new NLBServiceHealthcheckGetArgs(); + public static new NlbServiceHealthcheckGetArgs Empty => new NlbServiceHealthcheckGetArgs(); } } diff --git a/sdk/dotnet/Inputs/SKSClusterOidcArgs.cs b/sdk/dotnet/Inputs/SksClusterOidcArgs.cs similarity index 92% rename from sdk/dotnet/Inputs/SKSClusterOidcArgs.cs rename to sdk/dotnet/Inputs/SksClusterOidcArgs.cs index d44bf4e4..3f6a27c4 100644 --- a/sdk/dotnet/Inputs/SKSClusterOidcArgs.cs +++ b/sdk/dotnet/Inputs/SksClusterOidcArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class SKSClusterOidcArgs : global::Pulumi.ResourceArgs + public sealed class SksClusterOidcArgs : global::Pulumi.ResourceArgs { /// /// The OpenID client ID. @@ -61,9 +61,9 @@ public InputMap RequiredClaim [Input("usernamePrefix")] public Input? UsernamePrefix { get; set; } - public SKSClusterOidcArgs() + public SksClusterOidcArgs() { } - public static new SKSClusterOidcArgs Empty => new SKSClusterOidcArgs(); + public static new SksClusterOidcArgs Empty => new SksClusterOidcArgs(); } } diff --git a/sdk/dotnet/Inputs/SKSClusterOidcGetArgs.cs b/sdk/dotnet/Inputs/SksClusterOidcGetArgs.cs similarity index 92% rename from sdk/dotnet/Inputs/SKSClusterOidcGetArgs.cs rename to sdk/dotnet/Inputs/SksClusterOidcGetArgs.cs index ed2f932d..01f1842a 100644 --- a/sdk/dotnet/Inputs/SKSClusterOidcGetArgs.cs +++ b/sdk/dotnet/Inputs/SksClusterOidcGetArgs.cs @@ -11,7 +11,7 @@ namespace Pulumiverse.Exoscale.Inputs { - public sealed class SKSClusterOidcGetArgs : global::Pulumi.ResourceArgs + public sealed class SksClusterOidcGetArgs : global::Pulumi.ResourceArgs { /// /// The OpenID client ID. @@ -61,9 +61,9 @@ public InputMap RequiredClaim [Input("usernamePrefix")] public Input? UsernamePrefix { get; set; } - public SKSClusterOidcGetArgs() + public SksClusterOidcGetArgs() { } - public static new SKSClusterOidcGetArgs Empty => new SKSClusterOidcGetArgs(); + public static new SksClusterOidcGetArgs Empty => new SksClusterOidcGetArgs(); } } diff --git a/sdk/dotnet/InstancePool.cs b/sdk/dotnet/InstancePool.cs index 97a0f002..39d08bc8 100644 --- a/sdk/dotnet/InstancePool.cs +++ b/sdk/dotnet/InstancePool.cs @@ -11,6 +11,42 @@ namespace Pulumiverse.Exoscale { /// + /// Manage Exoscale [Instance Pools](https://community.exoscale.com/documentation/compute/instance-pools/). + /// + /// Corresponding data sources: exoscale_instance_pool, exoscale_instance_pool_list. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumi.Exoscale; + /// using Exoscale = Pulumiverse.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myTemplate = Exoscale.GetTemplate.Invoke(new() + /// { + /// Zone = "ch-gva-2", + /// Name = "Linux Ubuntu 22.04 LTS 64-bit", + /// }); + /// + /// var myInstancePool = new Exoscale.InstancePool("myInstancePool", new() + /// { + /// Zone = "ch-gva-2", + /// TemplateId = myTemplate.Apply(getTemplateResult => getTemplateResult.Id), + /// InstanceType = "standard.medium", + /// DiskSize = 10, + /// Size = 3, + /// }); + /// + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// /// ## Import /// /// An existing instance pool may be imported by `<ID>@<zone>` diff --git a/sdk/dotnet/NLB.cs b/sdk/dotnet/Nlb.cs similarity index 78% rename from sdk/dotnet/NLB.cs rename to sdk/dotnet/Nlb.cs index bd3d4c48..47c70820 100644 --- a/sdk/dotnet/NLB.cs +++ b/sdk/dotnet/Nlb.cs @@ -11,20 +11,47 @@ namespace Pulumiverse.Exoscale { /// + /// Manage Exoscale [Network Load Balancers (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/). + /// + /// Corresponding data source: exoscale_nlb. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumiverse.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myNlb = new Exoscale.Nlb("myNlb", new() + /// { + /// Zone = "ch-gva-2", + /// }); + /// + /// }); + /// ``` + /// + /// Next step is to attach exoscale_nlb_service(s) to the NLB. + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// /// ## Import /// /// An existing network load balancer (NLB) may be imported by `<ID>@<zone>`console /// /// ```sh - /// $ pulumi import exoscale:index/nLB:NLB \ + /// $ pulumi import exoscale:index/nlb:Nlb \ /// ``` /// /// exoscale_nlb.my_nlb \ /// /// f81d4fae-7dec-11d0-a765-00a0c91e6bf6@ch-gva-2 /// - [ExoscaleResourceType("exoscale:index/nLB:NLB")] - public partial class NLB : global::Pulumi.CustomResource + [ExoscaleResourceType("exoscale:index/nlb:Nlb")] + public partial class Nlb : global::Pulumi.CustomResource { /// /// The NLB creation date. @@ -76,19 +103,19 @@ public partial class NLB : global::Pulumi.CustomResource /// - /// Create a NLB resource with the given unique name, arguments, and options. + /// Create a Nlb 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 NLB(string name, NLBArgs args, CustomResourceOptions? options = null) - : base("exoscale:index/nLB:NLB", name, args ?? new NLBArgs(), MakeResourceOptions(options, "")) + public Nlb(string name, NlbArgs args, CustomResourceOptions? options = null) + : base("exoscale:index/nlb:Nlb", name, args ?? new NlbArgs(), MakeResourceOptions(options, "")) { } - private NLB(string name, Input id, NLBState? state = null, CustomResourceOptions? options = null) - : base("exoscale:index/nLB:NLB", name, state, MakeResourceOptions(options, id)) + private Nlb(string name, Input id, NlbState? state = null, CustomResourceOptions? options = null) + : base("exoscale:index/nlb:Nlb", name, state, MakeResourceOptions(options, id)) { } @@ -105,7 +132,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? return merged; } /// - /// Get an existing NLB resource's state with the given name, ID, and optional extra + /// Get an existing Nlb resource's state with the given name, ID, and optional extra /// properties used to qualify the lookup. /// /// @@ -113,13 +140,13 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? /// 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 NLB Get(string name, Input id, NLBState? state = null, CustomResourceOptions? options = null) + public static Nlb Get(string name, Input id, NlbState? state = null, CustomResourceOptions? options = null) { - return new NLB(name, id, state, options); + return new Nlb(name, id, state, options); } } - public sealed class NLBArgs : global::Pulumi.ResourceArgs + public sealed class NlbArgs : global::Pulumi.ResourceArgs { /// /// A free-form text describing the NLB. @@ -151,13 +178,13 @@ public InputMap Labels [Input("zone", required: true)] public Input Zone { get; set; } = null!; - public NLBArgs() + public NlbArgs() { } - public static new NLBArgs Empty => new NLBArgs(); + public static new NlbArgs Empty => new NlbArgs(); } - public sealed class NLBState : global::Pulumi.ResourceArgs + public sealed class NlbState : global::Pulumi.ResourceArgs { /// /// The NLB creation date. @@ -219,9 +246,9 @@ public InputList Services [Input("zone")] public Input? Zone { get; set; } - public NLBState() + public NlbState() { } - public static new NLBState Empty => new NLBState(); + public static new NlbState Empty => new NlbState(); } } diff --git a/sdk/dotnet/NLBService.cs b/sdk/dotnet/NlbService.cs similarity index 72% rename from sdk/dotnet/NLBService.cs rename to sdk/dotnet/NlbService.cs index 1b823c51..49f04309 100644 --- a/sdk/dotnet/NLBService.cs +++ b/sdk/dotnet/NlbService.cs @@ -11,20 +11,67 @@ namespace Pulumiverse.Exoscale { /// + /// Manage Exoscale [Network Load Balancer (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/) Services. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumiverse.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myNlb = new Exoscale.Nlb("myNlb", new() + /// { + /// Zone = "ch-gva-2", + /// }); + /// + /// var myNlbService = new Exoscale.NlbService("myNlbService", new() + /// { + /// NlbId = myNlb.Id, + /// Zone = myNlb.Zone, + /// InstancePoolId = exoscale_instance_pool.My_instance_pool.Id, + /// Protocol = "tcp", + /// Port = 443, + /// TargetPort = 8443, + /// Strategy = "round-robin", + /// Healthchecks = new[] + /// { + /// new Exoscale.Inputs.NlbServiceHealthcheckArgs + /// { + /// Mode = "https", + /// Port = 8443, + /// Uri = "/healthz", + /// TlsSni = "example.net", + /// Interval = 5, + /// Timeout = 3, + /// Retries = 1, + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// /// ## Import /// /// An existing NLB service may be imported by `<nlb-ID>/<service-ID>@<zone>` /// /// ```sh - /// $ pulumi import exoscale:index/nLBService:NLBService \ + /// $ pulumi import exoscale:index/nlbService:NlbService \ /// ``` /// /// exoscale_nlb_service.my_nlb_service \ /// /// f81d4fae-7dec-11d0-a765-00a0c91e6bf6/9ecc6b8b-73d4-4211-8ced-f7f29bb79524@ch-gva-2 /// - [ExoscaleResourceType("exoscale:index/nLBService:NLBService")] - public partial class NLBService : global::Pulumi.CustomResource + [ExoscaleResourceType("exoscale:index/nlbService:NlbService")] + public partial class NlbService : global::Pulumi.CustomResource { /// /// A free-form text describing the NLB service. @@ -36,7 +83,7 @@ public partial class NLBService : global::Pulumi.CustomResource /// The service health checking configuration. /// [Output("healthchecks")] - public Output> Healthchecks { get; private set; } = null!; + public Output> Healthchecks { get; private set; } = null!; /// /// ❗ The exoscale*instance*pool (ID) to forward traffic to. @@ -51,7 +98,7 @@ public partial class NLBService : global::Pulumi.CustomResource public Output Name { get; private set; } = null!; /// - /// ❗ The parent exoscale.NLB ID. + /// ❗ The parent exoscale.Nlb ID. /// [Output("nlbId")] public Output NlbId { get; private set; } = null!; @@ -91,19 +138,19 @@ public partial class NLBService : global::Pulumi.CustomResource /// - /// Create a NLBService resource with the given unique name, arguments, and options. + /// Create a NlbService 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 NLBService(string name, NLBServiceArgs args, CustomResourceOptions? options = null) - : base("exoscale:index/nLBService:NLBService", name, args ?? new NLBServiceArgs(), MakeResourceOptions(options, "")) + public NlbService(string name, NlbServiceArgs args, CustomResourceOptions? options = null) + : base("exoscale:index/nlbService:NlbService", name, args ?? new NlbServiceArgs(), MakeResourceOptions(options, "")) { } - private NLBService(string name, Input id, NLBServiceState? state = null, CustomResourceOptions? options = null) - : base("exoscale:index/nLBService:NLBService", name, state, MakeResourceOptions(options, id)) + private NlbService(string name, Input id, NlbServiceState? state = null, CustomResourceOptions? options = null) + : base("exoscale:index/nlbService:NlbService", name, state, MakeResourceOptions(options, id)) { } @@ -120,7 +167,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? return merged; } /// - /// Get an existing NLBService resource's state with the given name, ID, and optional extra + /// Get an existing NlbService resource's state with the given name, ID, and optional extra /// properties used to qualify the lookup. /// /// @@ -128,13 +175,13 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? /// 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 NLBService Get(string name, Input id, NLBServiceState? state = null, CustomResourceOptions? options = null) + public static NlbService Get(string name, Input id, NlbServiceState? state = null, CustomResourceOptions? options = null) { - return new NLBService(name, id, state, options); + return new NlbService(name, id, state, options); } } - public sealed class NLBServiceArgs : global::Pulumi.ResourceArgs + public sealed class NlbServiceArgs : global::Pulumi.ResourceArgs { /// /// A free-form text describing the NLB service. @@ -143,14 +190,14 @@ public sealed class NLBServiceArgs : global::Pulumi.ResourceArgs public Input? Description { get; set; } [Input("healthchecks", required: true)] - private InputList? _healthchecks; + private InputList? _healthchecks; /// /// The service health checking configuration. /// - public InputList Healthchecks + public InputList Healthchecks { - get => _healthchecks ?? (_healthchecks = new InputList()); + get => _healthchecks ?? (_healthchecks = new InputList()); set => _healthchecks = value; } @@ -167,7 +214,7 @@ public InputList Healthchecks public Input? Name { get; set; } /// - /// ❗ The parent exoscale.NLB ID. + /// ❗ The parent exoscale.Nlb ID. /// [Input("nlbId", required: true)] public Input NlbId { get; set; } = null!; @@ -202,13 +249,13 @@ public InputList Healthchecks [Input("zone", required: true)] public Input Zone { get; set; } = null!; - public NLBServiceArgs() + public NlbServiceArgs() { } - public static new NLBServiceArgs Empty => new NLBServiceArgs(); + public static new NlbServiceArgs Empty => new NlbServiceArgs(); } - public sealed class NLBServiceState : global::Pulumi.ResourceArgs + public sealed class NlbServiceState : global::Pulumi.ResourceArgs { /// /// A free-form text describing the NLB service. @@ -217,14 +264,14 @@ public sealed class NLBServiceState : global::Pulumi.ResourceArgs public Input? Description { get; set; } [Input("healthchecks")] - private InputList? _healthchecks; + private InputList? _healthchecks; /// /// The service health checking configuration. /// - public InputList Healthchecks + public InputList Healthchecks { - get => _healthchecks ?? (_healthchecks = new InputList()); + get => _healthchecks ?? (_healthchecks = new InputList()); set => _healthchecks = value; } @@ -241,7 +288,7 @@ public InputList Healthchecks public Input? Name { get; set; } /// - /// ❗ The parent exoscale.NLB ID. + /// ❗ The parent exoscale.Nlb ID. /// [Input("nlbId")] public Input? NlbId { get; set; } @@ -279,9 +326,9 @@ public InputList Healthchecks [Input("zone")] public Input? Zone { get; set; } - public NLBServiceState() + public NlbServiceState() { } - public static new NLBServiceState Empty => new NLBServiceState(); + public static new NlbServiceState Empty => new NlbServiceState(); } } diff --git a/sdk/dotnet/Outputs/ElasticIPHealthcheck.cs b/sdk/dotnet/Outputs/ElasticIpHealthcheck.cs similarity index 96% rename from sdk/dotnet/Outputs/ElasticIPHealthcheck.cs rename to sdk/dotnet/Outputs/ElasticIpHealthcheck.cs index 0572d4c5..07779d3e 100644 --- a/sdk/dotnet/Outputs/ElasticIPHealthcheck.cs +++ b/sdk/dotnet/Outputs/ElasticIpHealthcheck.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class ElasticIPHealthcheck + public sealed class ElasticIpHealthcheck { /// /// The healthcheck interval (seconds; must be between `5` and `300`; default: `10`). @@ -52,7 +52,7 @@ public sealed class ElasticIPHealthcheck public readonly string? Uri; [OutputConstructor] - private ElasticIPHealthcheck( + private ElasticIpHealthcheck( int? interval, string mode, diff --git a/sdk/dotnet/Outputs/GetDatabaseURITimeoutsResult.cs b/sdk/dotnet/Outputs/GetDatabaseUriTimeoutsResult.cs similarity index 88% rename from sdk/dotnet/Outputs/GetDatabaseURITimeoutsResult.cs rename to sdk/dotnet/Outputs/GetDatabaseUriTimeoutsResult.cs index a6624cdc..078abd62 100644 --- a/sdk/dotnet/Outputs/GetDatabaseURITimeoutsResult.cs +++ b/sdk/dotnet/Outputs/GetDatabaseUriTimeoutsResult.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class GetDatabaseURITimeoutsResult + public sealed class GetDatabaseUriTimeoutsResult { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -20,7 +20,7 @@ public sealed class GetDatabaseURITimeoutsResult public readonly string? Read; [OutputConstructor] - private GetDatabaseURITimeoutsResult(string? read) + private GetDatabaseUriTimeoutsResult(string? read) { Read = read; } diff --git a/sdk/dotnet/Outputs/GetElasticIPHealthcheckResult.cs b/sdk/dotnet/Outputs/GetElasticIpHealthcheckResult.cs similarity index 92% rename from sdk/dotnet/Outputs/GetElasticIPHealthcheckResult.cs rename to sdk/dotnet/Outputs/GetElasticIpHealthcheckResult.cs index b5073d8d..c9dbbaf7 100644 --- a/sdk/dotnet/Outputs/GetElasticIPHealthcheckResult.cs +++ b/sdk/dotnet/Outputs/GetElasticIpHealthcheckResult.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class GetElasticIPHealthcheckResult + public sealed class GetElasticIpHealthcheckResult { public readonly int Interval; public readonly string Mode; @@ -25,7 +25,7 @@ public sealed class GetElasticIPHealthcheckResult public readonly string Uri; [OutputConstructor] - private GetElasticIPHealthcheckResult( + private GetElasticIpHealthcheckResult( int interval, string mode, diff --git a/sdk/dotnet/Outputs/GetIAMAPIKeyTimeoutsResult.cs b/sdk/dotnet/Outputs/GetIamApiKeyTimeoutsResult.cs similarity index 88% rename from sdk/dotnet/Outputs/GetIAMAPIKeyTimeoutsResult.cs rename to sdk/dotnet/Outputs/GetIamApiKeyTimeoutsResult.cs index 6d10517a..7b5a9502 100644 --- a/sdk/dotnet/Outputs/GetIAMAPIKeyTimeoutsResult.cs +++ b/sdk/dotnet/Outputs/GetIamApiKeyTimeoutsResult.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class GetIAMAPIKeyTimeoutsResult + public sealed class GetIamApiKeyTimeoutsResult { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -20,7 +20,7 @@ public sealed class GetIAMAPIKeyTimeoutsResult public readonly string? Read; [OutputConstructor] - private GetIAMAPIKeyTimeoutsResult(string? read) + private GetIamApiKeyTimeoutsResult(string? read) { Read = read; } diff --git a/sdk/dotnet/Outputs/GetIAMOrgPolicyServicesResult.cs b/sdk/dotnet/Outputs/GetIamOrgPolicyServicesResult.cs similarity index 77% rename from sdk/dotnet/Outputs/GetIAMOrgPolicyServicesResult.cs rename to sdk/dotnet/Outputs/GetIamOrgPolicyServicesResult.cs index 65976c1b..65ed02c9 100644 --- a/sdk/dotnet/Outputs/GetIAMOrgPolicyServicesResult.cs +++ b/sdk/dotnet/Outputs/GetIamOrgPolicyServicesResult.cs @@ -12,20 +12,20 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class GetIAMOrgPolicyServicesResult + public sealed class GetIamOrgPolicyServicesResult { /// /// List of IAM service rules (if type is `rules`). /// - public readonly ImmutableArray Rules; + public readonly ImmutableArray Rules; /// /// Service type (`rules`, `allow`, or `deny`). /// public readonly string Type; [OutputConstructor] - private GetIAMOrgPolicyServicesResult( - ImmutableArray rules, + private GetIamOrgPolicyServicesResult( + ImmutableArray rules, string type) { diff --git a/sdk/dotnet/Outputs/GetIAMOrgPolicyServicesRuleResult.cs b/sdk/dotnet/Outputs/GetIamOrgPolicyServicesRuleResult.cs similarity index 90% rename from sdk/dotnet/Outputs/GetIAMOrgPolicyServicesRuleResult.cs rename to sdk/dotnet/Outputs/GetIamOrgPolicyServicesRuleResult.cs index 10296a75..cd33d1d9 100644 --- a/sdk/dotnet/Outputs/GetIAMOrgPolicyServicesRuleResult.cs +++ b/sdk/dotnet/Outputs/GetIamOrgPolicyServicesRuleResult.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class GetIAMOrgPolicyServicesRuleResult + public sealed class GetIamOrgPolicyServicesRuleResult { /// /// IAM policy rule action (`allow` or `deny`). @@ -25,7 +25,7 @@ public sealed class GetIAMOrgPolicyServicesRuleResult public readonly ImmutableArray Resources; [OutputConstructor] - private GetIAMOrgPolicyServicesRuleResult( + private GetIamOrgPolicyServicesRuleResult( string action, string expression, diff --git a/sdk/dotnet/Outputs/GetIAMOrgPolicyTimeoutsResult.cs b/sdk/dotnet/Outputs/GetIamOrgPolicyTimeoutsResult.cs similarity index 88% rename from sdk/dotnet/Outputs/GetIAMOrgPolicyTimeoutsResult.cs rename to sdk/dotnet/Outputs/GetIamOrgPolicyTimeoutsResult.cs index b9960074..8f5184ad 100644 --- a/sdk/dotnet/Outputs/GetIAMOrgPolicyTimeoutsResult.cs +++ b/sdk/dotnet/Outputs/GetIamOrgPolicyTimeoutsResult.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class GetIAMOrgPolicyTimeoutsResult + public sealed class GetIamOrgPolicyTimeoutsResult { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -20,7 +20,7 @@ public sealed class GetIAMOrgPolicyTimeoutsResult public readonly string? Read; [OutputConstructor] - private GetIAMOrgPolicyTimeoutsResult(string? read) + private GetIamOrgPolicyTimeoutsResult(string? read) { Read = read; } diff --git a/sdk/dotnet/Outputs/GetIAMRolePolicyResult.cs b/sdk/dotnet/Outputs/GetIamRolePolicyResult.cs similarity index 82% rename from sdk/dotnet/Outputs/GetIAMRolePolicyResult.cs rename to sdk/dotnet/Outputs/GetIamRolePolicyResult.cs index e4594b76..2541171e 100644 --- a/sdk/dotnet/Outputs/GetIAMRolePolicyResult.cs +++ b/sdk/dotnet/Outputs/GetIamRolePolicyResult.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class GetIAMRolePolicyResult + public sealed class GetIamRolePolicyResult { /// /// Default service strategy (`allow` or `deny`). @@ -21,13 +21,13 @@ public sealed class GetIAMRolePolicyResult /// /// IAM policy services. /// - public readonly ImmutableDictionary Services; + public readonly ImmutableDictionary Services; [OutputConstructor] - private GetIAMRolePolicyResult( + private GetIamRolePolicyResult( string defaultServiceStrategy, - ImmutableDictionary services) + ImmutableDictionary services) { DefaultServiceStrategy = defaultServiceStrategy; Services = services; diff --git a/sdk/dotnet/Outputs/GetIAMRolePolicyServicesResult.cs b/sdk/dotnet/Outputs/GetIamRolePolicyServicesResult.cs similarity index 77% rename from sdk/dotnet/Outputs/GetIAMRolePolicyServicesResult.cs rename to sdk/dotnet/Outputs/GetIamRolePolicyServicesResult.cs index 69e75535..3ceb7fa2 100644 --- a/sdk/dotnet/Outputs/GetIAMRolePolicyServicesResult.cs +++ b/sdk/dotnet/Outputs/GetIamRolePolicyServicesResult.cs @@ -12,20 +12,20 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class GetIAMRolePolicyServicesResult + public sealed class GetIamRolePolicyServicesResult { /// /// List of IAM service rules (if type is `rules`). /// - public readonly ImmutableArray Rules; + public readonly ImmutableArray Rules; /// /// Service type (`rules`, `allow`, or `deny`). /// public readonly string Type; [OutputConstructor] - private GetIAMRolePolicyServicesResult( - ImmutableArray rules, + private GetIamRolePolicyServicesResult( + ImmutableArray rules, string type) { diff --git a/sdk/dotnet/Outputs/GetIAMRolePolicyServicesRuleResult.cs b/sdk/dotnet/Outputs/GetIamRolePolicyServicesRuleResult.cs similarity index 89% rename from sdk/dotnet/Outputs/GetIAMRolePolicyServicesRuleResult.cs rename to sdk/dotnet/Outputs/GetIamRolePolicyServicesRuleResult.cs index 61f626fe..f0a9d775 100644 --- a/sdk/dotnet/Outputs/GetIAMRolePolicyServicesRuleResult.cs +++ b/sdk/dotnet/Outputs/GetIamRolePolicyServicesRuleResult.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class GetIAMRolePolicyServicesRuleResult + public sealed class GetIamRolePolicyServicesRuleResult { /// /// IAM policy rule action (`allow` or `deny`). @@ -25,7 +25,7 @@ public sealed class GetIAMRolePolicyServicesRuleResult public readonly ImmutableArray Resources; [OutputConstructor] - private GetIAMRolePolicyServicesRuleResult( + private GetIamRolePolicyServicesRuleResult( string action, string expression, diff --git a/sdk/dotnet/Outputs/GetIAMRoleTimeoutsResult.cs b/sdk/dotnet/Outputs/GetIamRoleTimeoutsResult.cs similarity index 89% rename from sdk/dotnet/Outputs/GetIAMRoleTimeoutsResult.cs rename to sdk/dotnet/Outputs/GetIamRoleTimeoutsResult.cs index 7555b5ac..25a550d8 100644 --- a/sdk/dotnet/Outputs/GetIAMRoleTimeoutsResult.cs +++ b/sdk/dotnet/Outputs/GetIamRoleTimeoutsResult.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class GetIAMRoleTimeoutsResult + public sealed class GetIamRoleTimeoutsResult { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -20,7 +20,7 @@ public sealed class GetIAMRoleTimeoutsResult public readonly string? Read; [OutputConstructor] - private GetIAMRoleTimeoutsResult(string? read) + private GetIamRoleTimeoutsResult(string? read) { Read = read; } diff --git a/sdk/dotnet/Outputs/GetNLBServiceListTimeoutsResult.cs b/sdk/dotnet/Outputs/GetNLBServiceListTimeoutsResult.cs deleted file mode 100644 index a08a3c07..00000000 --- a/sdk/dotnet/Outputs/GetNLBServiceListTimeoutsResult.cs +++ /dev/null @@ -1,28 +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; -using Pulumi; - -namespace Pulumiverse.Exoscale.Outputs -{ - - [OutputType] - public sealed class GetNLBServiceListTimeoutsResult - { - /// - /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. - /// - public readonly string? Read; - - [OutputConstructor] - private GetNLBServiceListTimeoutsResult(string? read) - { - Read = read; - } - } -} diff --git a/sdk/dotnet/Outputs/GetNLBServiceListServiceHealthcheckResult.cs b/sdk/dotnet/Outputs/GetNlbServiceListServiceHealthcheckResult.cs similarity index 89% rename from sdk/dotnet/Outputs/GetNLBServiceListServiceHealthcheckResult.cs rename to sdk/dotnet/Outputs/GetNlbServiceListServiceHealthcheckResult.cs index 9781f26a..a92cfd58 100644 --- a/sdk/dotnet/Outputs/GetNLBServiceListServiceHealthcheckResult.cs +++ b/sdk/dotnet/Outputs/GetNlbServiceListServiceHealthcheckResult.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class GetNLBServiceListServiceHealthcheckResult + public sealed class GetNlbServiceListServiceHealthcheckResult { public readonly int Interval; public readonly string Mode; @@ -23,7 +23,7 @@ public sealed class GetNLBServiceListServiceHealthcheckResult public readonly string Uri; [OutputConstructor] - private GetNLBServiceListServiceHealthcheckResult( + private GetNlbServiceListServiceHealthcheckResult( int interval, string mode, diff --git a/sdk/dotnet/Outputs/GetNLBServiceListServiceResult.cs b/sdk/dotnet/Outputs/GetNlbServiceListServiceResult.cs similarity index 90% rename from sdk/dotnet/Outputs/GetNLBServiceListServiceResult.cs rename to sdk/dotnet/Outputs/GetNlbServiceListServiceResult.cs index 8b9ffdf5..b82209fe 100644 --- a/sdk/dotnet/Outputs/GetNLBServiceListServiceResult.cs +++ b/sdk/dotnet/Outputs/GetNlbServiceListServiceResult.cs @@ -12,13 +12,13 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class GetNLBServiceListServiceResult + public sealed class GetNlbServiceListServiceResult { /// /// NLB service description. /// public readonly string Description; - public readonly Outputs.GetNLBServiceListServiceHealthcheckResult Healthcheck; + public readonly Outputs.GetNlbServiceListServiceHealthcheckResult Healthcheck; /// /// NLB service ID. /// @@ -53,10 +53,10 @@ public sealed class GetNLBServiceListServiceResult public readonly int TargetPort; [OutputConstructor] - private GetNLBServiceListServiceResult( + private GetNlbServiceListServiceResult( string description, - Outputs.GetNLBServiceListServiceHealthcheckResult healthcheck, + Outputs.GetNlbServiceListServiceHealthcheckResult healthcheck, string id, diff --git a/sdk/dotnet/Outputs/GetNlbServiceListTimeoutsResult.cs b/sdk/dotnet/Outputs/GetNlbServiceListTimeoutsResult.cs new file mode 100644 index 00000000..225bf722 --- /dev/null +++ b/sdk/dotnet/Outputs/GetNlbServiceListTimeoutsResult.cs @@ -0,0 +1,28 @@ +// *** 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; +using Pulumi; + +namespace Pulumiverse.Exoscale.Outputs +{ + + [OutputType] + public sealed class GetNlbServiceListTimeoutsResult + { + /// + /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. + /// + public readonly string? Read; + + [OutputConstructor] + private GetNlbServiceListTimeoutsResult(string? read) + { + Read = read; + } + } +} diff --git a/sdk/dotnet/Outputs/GetSKSClusterListClusterOidcResult.cs b/sdk/dotnet/Outputs/GetSksClusterListClusterOidcResult.cs similarity index 92% rename from sdk/dotnet/Outputs/GetSKSClusterListClusterOidcResult.cs rename to sdk/dotnet/Outputs/GetSksClusterListClusterOidcResult.cs index 058431c2..1c96ec19 100644 --- a/sdk/dotnet/Outputs/GetSKSClusterListClusterOidcResult.cs +++ b/sdk/dotnet/Outputs/GetSksClusterListClusterOidcResult.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class GetSKSClusterListClusterOidcResult + public sealed class GetSksClusterListClusterOidcResult { public readonly string ClientId; public readonly string? GroupsClaim; @@ -23,7 +23,7 @@ public sealed class GetSKSClusterListClusterOidcResult public readonly string? UsernamePrefix; [OutputConstructor] - private GetSKSClusterListClusterOidcResult( + private GetSksClusterListClusterOidcResult( string clientId, string? groupsClaim, diff --git a/sdk/dotnet/Outputs/GetSKSClusterListClusterResult.cs b/sdk/dotnet/Outputs/GetSksClusterListClusterResult.cs similarity index 91% rename from sdk/dotnet/Outputs/GetSKSClusterListClusterResult.cs rename to sdk/dotnet/Outputs/GetSksClusterListClusterResult.cs index 019e4223..306b6490 100644 --- a/sdk/dotnet/Outputs/GetSKSClusterListClusterResult.cs +++ b/sdk/dotnet/Outputs/GetSksClusterListClusterResult.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class GetSKSClusterListClusterResult + public sealed class GetSksClusterListClusterResult { public readonly ImmutableArray Addons; public readonly string AggregationCa; @@ -29,14 +29,14 @@ public sealed class GetSKSClusterListClusterResult public readonly bool? MetricsServer; public readonly string? Name; public readonly ImmutableArray Nodepools; - public readonly Outputs.GetSKSClusterListClusterOidcResult Oidc; + public readonly Outputs.GetSksClusterListClusterOidcResult Oidc; public readonly string? ServiceLevel; public readonly string State; public readonly string Version; public readonly string Zone; [OutputConstructor] - private GetSKSClusterListClusterResult( + private GetSksClusterListClusterResult( ImmutableArray addons, string aggregationCa, @@ -67,7 +67,7 @@ private GetSKSClusterListClusterResult( ImmutableArray nodepools, - Outputs.GetSKSClusterListClusterOidcResult oidc, + Outputs.GetSksClusterListClusterOidcResult oidc, string? serviceLevel, diff --git a/sdk/dotnet/Outputs/GetSKSClusterOidcResult.cs b/sdk/dotnet/Outputs/GetSksClusterOidcResult.cs similarity index 95% rename from sdk/dotnet/Outputs/GetSKSClusterOidcResult.cs rename to sdk/dotnet/Outputs/GetSksClusterOidcResult.cs index a81033a7..2f21b852 100644 --- a/sdk/dotnet/Outputs/GetSKSClusterOidcResult.cs +++ b/sdk/dotnet/Outputs/GetSksClusterOidcResult.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class GetSKSClusterOidcResult + public sealed class GetSksClusterOidcResult { /// /// The OpenID client ID. @@ -44,7 +44,7 @@ public sealed class GetSKSClusterOidcResult public readonly string? UsernamePrefix; [OutputConstructor] - private GetSKSClusterOidcResult( + private GetSksClusterOidcResult( string clientId, string? groupsClaim, diff --git a/sdk/dotnet/Outputs/GetSKSNodepoolListNodepoolResult.cs b/sdk/dotnet/Outputs/GetSksNodepoolListNodepoolResult.cs similarity index 96% rename from sdk/dotnet/Outputs/GetSKSNodepoolListNodepoolResult.cs rename to sdk/dotnet/Outputs/GetSksNodepoolListNodepoolResult.cs index 1f3c07c7..10a3566c 100644 --- a/sdk/dotnet/Outputs/GetSKSNodepoolListNodepoolResult.cs +++ b/sdk/dotnet/Outputs/GetSksNodepoolListNodepoolResult.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class GetSKSNodepoolListNodepoolResult + public sealed class GetSksNodepoolListNodepoolResult { public readonly ImmutableArray AntiAffinityGroupIds; public readonly string ClusterId; @@ -37,7 +37,7 @@ public sealed class GetSKSNodepoolListNodepoolResult public readonly string Zone; [OutputConstructor] - private GetSKSNodepoolListNodepoolResult( + private GetSksNodepoolListNodepoolResult( ImmutableArray antiAffinityGroupIds, string clusterId, diff --git a/sdk/dotnet/Outputs/IAMAPIKeyTimeouts.cs b/sdk/dotnet/Outputs/IamApiKeyTimeouts.cs similarity index 90% rename from sdk/dotnet/Outputs/IAMAPIKeyTimeouts.cs rename to sdk/dotnet/Outputs/IamApiKeyTimeouts.cs index fe839c57..0bbffbd0 100644 --- a/sdk/dotnet/Outputs/IAMAPIKeyTimeouts.cs +++ b/sdk/dotnet/Outputs/IamApiKeyTimeouts.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class IAMAPIKeyTimeouts + public sealed class IamApiKeyTimeouts { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -20,7 +20,7 @@ public sealed class IAMAPIKeyTimeouts public readonly string? Read; [OutputConstructor] - private IAMAPIKeyTimeouts(string? read) + private IamApiKeyTimeouts(string? read) { Read = read; } diff --git a/sdk/dotnet/Outputs/IAMOrgPolicyServices.cs b/sdk/dotnet/Outputs/IamOrgPolicyServices.cs similarity index 79% rename from sdk/dotnet/Outputs/IAMOrgPolicyServices.cs rename to sdk/dotnet/Outputs/IamOrgPolicyServices.cs index d951d038..87c1aab4 100644 --- a/sdk/dotnet/Outputs/IAMOrgPolicyServices.cs +++ b/sdk/dotnet/Outputs/IamOrgPolicyServices.cs @@ -12,20 +12,20 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class IAMOrgPolicyServices + public sealed class IamOrgPolicyServices { /// /// List of IAM service rules (if type is `rules`). /// - public readonly ImmutableArray Rules; + public readonly ImmutableArray Rules; /// /// Service type (`rules`, `allow`, or `deny`). /// public readonly string? Type; [OutputConstructor] - private IAMOrgPolicyServices( - ImmutableArray rules, + private IamOrgPolicyServices( + ImmutableArray rules, string? type) { diff --git a/sdk/dotnet/Outputs/IAMOrgPolicyServicesRule.cs b/sdk/dotnet/Outputs/IamOrgPolicyServicesRule.cs similarity index 91% rename from sdk/dotnet/Outputs/IAMOrgPolicyServicesRule.cs rename to sdk/dotnet/Outputs/IamOrgPolicyServicesRule.cs index 9c94eeca..29232e82 100644 --- a/sdk/dotnet/Outputs/IAMOrgPolicyServicesRule.cs +++ b/sdk/dotnet/Outputs/IamOrgPolicyServicesRule.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class IAMOrgPolicyServicesRule + public sealed class IamOrgPolicyServicesRule { /// /// IAM policy rule action (`allow` or `deny`). @@ -25,7 +25,7 @@ public sealed class IAMOrgPolicyServicesRule public readonly ImmutableArray Resources; [OutputConstructor] - private IAMOrgPolicyServicesRule( + private IamOrgPolicyServicesRule( string? action, string? expression, diff --git a/sdk/dotnet/Outputs/IAMOrgPolicyTimeouts.cs b/sdk/dotnet/Outputs/IamOrgPolicyTimeouts.cs similarity index 90% rename from sdk/dotnet/Outputs/IAMOrgPolicyTimeouts.cs rename to sdk/dotnet/Outputs/IamOrgPolicyTimeouts.cs index b3471011..2ff0bbd2 100644 --- a/sdk/dotnet/Outputs/IAMOrgPolicyTimeouts.cs +++ b/sdk/dotnet/Outputs/IamOrgPolicyTimeouts.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class IAMOrgPolicyTimeouts + public sealed class IamOrgPolicyTimeouts { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -20,7 +20,7 @@ public sealed class IAMOrgPolicyTimeouts public readonly string? Read; [OutputConstructor] - private IAMOrgPolicyTimeouts(string? read) + private IamOrgPolicyTimeouts(string? read) { Read = read; } diff --git a/sdk/dotnet/Outputs/IAMRolePolicy.cs b/sdk/dotnet/Outputs/IamRolePolicy.cs similarity index 81% rename from sdk/dotnet/Outputs/IAMRolePolicy.cs rename to sdk/dotnet/Outputs/IamRolePolicy.cs index 9a8ab330..857e325a 100644 --- a/sdk/dotnet/Outputs/IAMRolePolicy.cs +++ b/sdk/dotnet/Outputs/IamRolePolicy.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class IAMRolePolicy + public sealed class IamRolePolicy { /// /// Default service strategy (`allow` or `deny`). @@ -21,13 +21,13 @@ public sealed class IAMRolePolicy /// /// IAM policy services. /// - public readonly ImmutableDictionary? Services; + public readonly ImmutableDictionary? Services; [OutputConstructor] - private IAMRolePolicy( + private IamRolePolicy( string? defaultServiceStrategy, - ImmutableDictionary? services) + ImmutableDictionary? services) { DefaultServiceStrategy = defaultServiceStrategy; Services = services; diff --git a/sdk/dotnet/Outputs/IAMRolePolicyServices.cs b/sdk/dotnet/Outputs/IamRolePolicyServices.cs similarity index 78% rename from sdk/dotnet/Outputs/IAMRolePolicyServices.cs rename to sdk/dotnet/Outputs/IamRolePolicyServices.cs index a7e3e194..32deac0e 100644 --- a/sdk/dotnet/Outputs/IAMRolePolicyServices.cs +++ b/sdk/dotnet/Outputs/IamRolePolicyServices.cs @@ -12,20 +12,20 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class IAMRolePolicyServices + public sealed class IamRolePolicyServices { /// /// List of IAM service rules (if type is `rules`). /// - public readonly ImmutableArray Rules; + public readonly ImmutableArray Rules; /// /// Service type (`rules`, `allow`, or `deny`). /// public readonly string? Type; [OutputConstructor] - private IAMRolePolicyServices( - ImmutableArray rules, + private IamRolePolicyServices( + ImmutableArray rules, string? type) { diff --git a/sdk/dotnet/Outputs/IAMRolePolicyServicesRule.cs b/sdk/dotnet/Outputs/IamRolePolicyServicesRule.cs similarity index 91% rename from sdk/dotnet/Outputs/IAMRolePolicyServicesRule.cs rename to sdk/dotnet/Outputs/IamRolePolicyServicesRule.cs index 5200896c..1dc778da 100644 --- a/sdk/dotnet/Outputs/IAMRolePolicyServicesRule.cs +++ b/sdk/dotnet/Outputs/IamRolePolicyServicesRule.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class IAMRolePolicyServicesRule + public sealed class IamRolePolicyServicesRule { /// /// IAM policy rule action (`allow` or `deny`). @@ -25,7 +25,7 @@ public sealed class IAMRolePolicyServicesRule public readonly ImmutableArray Resources; [OutputConstructor] - private IAMRolePolicyServicesRule( + private IamRolePolicyServicesRule( string? action, string? expression, diff --git a/sdk/dotnet/Outputs/IAMRoleTimeouts.cs b/sdk/dotnet/Outputs/IamRoleTimeouts.cs similarity index 91% rename from sdk/dotnet/Outputs/IAMRoleTimeouts.cs rename to sdk/dotnet/Outputs/IamRoleTimeouts.cs index 19203888..12aa0401 100644 --- a/sdk/dotnet/Outputs/IAMRoleTimeouts.cs +++ b/sdk/dotnet/Outputs/IamRoleTimeouts.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class IAMRoleTimeouts + public sealed class IamRoleTimeouts { /// /// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. @@ -20,7 +20,7 @@ public sealed class IAMRoleTimeouts public readonly string? Read; [OutputConstructor] - private IAMRoleTimeouts(string? read) + private IamRoleTimeouts(string? read) { Read = read; } diff --git a/sdk/dotnet/Outputs/NLBServiceHealthcheck.cs b/sdk/dotnet/Outputs/NlbServiceHealthcheck.cs similarity index 95% rename from sdk/dotnet/Outputs/NLBServiceHealthcheck.cs rename to sdk/dotnet/Outputs/NlbServiceHealthcheck.cs index ce63399d..d30ef903 100644 --- a/sdk/dotnet/Outputs/NLBServiceHealthcheck.cs +++ b/sdk/dotnet/Outputs/NlbServiceHealthcheck.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class NLBServiceHealthcheck + public sealed class NlbServiceHealthcheck { /// /// The healthcheck interval in seconds (default: `10`). @@ -44,7 +44,7 @@ public sealed class NLBServiceHealthcheck public readonly string? Uri; [OutputConstructor] - private NLBServiceHealthcheck( + private NlbServiceHealthcheck( int? interval, string? mode, diff --git a/sdk/dotnet/Outputs/SKSClusterOidc.cs b/sdk/dotnet/Outputs/SksClusterOidc.cs similarity index 96% rename from sdk/dotnet/Outputs/SKSClusterOidc.cs rename to sdk/dotnet/Outputs/SksClusterOidc.cs index 0ccb8486..5306d34e 100644 --- a/sdk/dotnet/Outputs/SKSClusterOidc.cs +++ b/sdk/dotnet/Outputs/SksClusterOidc.cs @@ -12,7 +12,7 @@ namespace Pulumiverse.Exoscale.Outputs { [OutputType] - public sealed class SKSClusterOidc + public sealed class SksClusterOidc { /// /// The OpenID client ID. @@ -44,7 +44,7 @@ public sealed class SKSClusterOidc public readonly string? UsernamePrefix; [OutputConstructor] - private SKSClusterOidc( + private SksClusterOidc( string clientId, string? groupsClaim, diff --git a/sdk/dotnet/PrivateNetwork.cs b/sdk/dotnet/PrivateNetwork.cs index 54b290e5..5d33f4c1 100644 --- a/sdk/dotnet/PrivateNetwork.cs +++ b/sdk/dotnet/PrivateNetwork.cs @@ -11,6 +11,54 @@ namespace Pulumiverse.Exoscale { /// + /// Manage Exoscale [Private Networks](https://community.exoscale.com/documentation/compute/private-networks/). + /// + /// Corresponding data source: exoscale_private_network. + /// + /// ## Example Usage + /// + /// *Unmanaged* private network: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumiverse.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myPrivateNetwork = new Exoscale.PrivateNetwork("myPrivateNetwork", new() + /// { + /// Zone = "ch-gva-2", + /// }); + /// + /// }); + /// ``` + /// + /// *Managed* private network: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumiverse.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myManagedPrivateNetwork = new Exoscale.PrivateNetwork("myManagedPrivateNetwork", new() + /// { + /// EndIp = "10.0.0.253", + /// Netmask = "255.255.255.0", + /// StartIp = "10.0.0.20", + /// Zone = "ch-gva-2", + /// }); + /// + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// /// ## Import /// /// An existing private network may be imported by `<ID>@<zone>` diff --git a/sdk/dotnet/SecurityGroup.cs b/sdk/dotnet/SecurityGroup.cs index 138f9d0f..b3209617 100644 --- a/sdk/dotnet/SecurityGroup.cs +++ b/sdk/dotnet/SecurityGroup.cs @@ -11,6 +11,30 @@ namespace Pulumiverse.Exoscale { /// + /// Manage Exoscale [Security Groups](https://community.exoscale.com/documentation/compute/security-groups/). + /// + /// Corresponding data source: exoscale_security_group. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumiverse.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var mySecurityGroup = new Exoscale.SecurityGroup("mySecurityGroup"); + /// + /// }); + /// ``` + /// + /// Next step is to attach exoscale_security_group_rule(s) to the group. + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// /// ## Import /// /// An existing security group may be imported by `<ID>` diff --git a/sdk/dotnet/SecurityGroupRule.cs b/sdk/dotnet/SecurityGroupRule.cs index cce2368c..6707cd0a 100644 --- a/sdk/dotnet/SecurityGroupRule.cs +++ b/sdk/dotnet/SecurityGroupRule.cs @@ -11,6 +11,36 @@ namespace Pulumiverse.Exoscale { /// + /// Manage Exoscale [Security Group](https://community.exoscale.com/documentation/compute/security-groups/) Rules. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumiverse.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var mySecurityGroup = new Exoscale.SecurityGroup("mySecurityGroup"); + /// + /// var mySecurityGroupRule = new Exoscale.SecurityGroupRule("mySecurityGroupRule", new() + /// { + /// SecurityGroupId = mySecurityGroup.Id, + /// Type = "INGRESS", + /// Protocol = "TCP", + /// Cidr = "0.0.0.0/0", + /// StartPort = 80, + /// EndPort = 80, + /// }); + /// + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// /// ## Import /// /// An existing security group rule may be imported by `<security-group-ID>/<security-group-rule-ID>` diff --git a/sdk/dotnet/SKSCluster.cs b/sdk/dotnet/SksCluster.cs similarity index 86% rename from sdk/dotnet/SKSCluster.cs rename to sdk/dotnet/SksCluster.cs index f451615c..c173dc67 100644 --- a/sdk/dotnet/SKSCluster.cs +++ b/sdk/dotnet/SksCluster.cs @@ -11,20 +11,49 @@ namespace Pulumiverse.Exoscale { /// + /// Manage Exoscale [Scalable Kubernetes Service (SKS)](https://community.exoscale.com/documentation/sks/) Clusters. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumiverse.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var mySksCluster = new Exoscale.SksCluster("mySksCluster", new() + /// { + /// Zone = "ch-gva-2", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["mySksClusterEndpoint"] = mySksCluster.Endpoint, + /// }; + /// }); + /// ``` + /// + /// Next step is to attach exoscale_sks_nodepool(s) to the cluster. + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// /// ## Import /// /// An existing SKS cluster may be imported by `<ID>@<zone>` /// /// ```sh - /// $ pulumi import exoscale:index/sKSCluster:SKSCluster \ + /// $ pulumi import exoscale:index/sksCluster:SksCluster \ /// ``` /// /// exoscale_sks_cluster.my_sks_cluster \ /// /// f81d4fae-7dec-11d0-a765-00a0c91e6bf6@ch-gva-2 /// - [ExoscaleResourceType("exoscale:index/sKSCluster:SKSCluster")] - public partial class SKSCluster : global::Pulumi.CustomResource + [ExoscaleResourceType("exoscale:index/sksCluster:SksCluster")] + public partial class SksCluster : global::Pulumi.CustomResource { [Output("addons")] public Output> Addons { get; private set; } = null!; @@ -111,7 +140,7 @@ public partial class SKSCluster : global::Pulumi.CustomResource /// An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. /// [Output("oidc")] - public Output Oidc { get; private set; } = null!; + public Output Oidc { get; private set; } = null!; /// /// The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). @@ -139,19 +168,19 @@ public partial class SKSCluster : global::Pulumi.CustomResource /// - /// Create a SKSCluster resource with the given unique name, arguments, and options. + /// Create a SksCluster 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 SKSCluster(string name, SKSClusterArgs args, CustomResourceOptions? options = null) - : base("exoscale:index/sKSCluster:SKSCluster", name, args ?? new SKSClusterArgs(), MakeResourceOptions(options, "")) + public SksCluster(string name, SksClusterArgs args, CustomResourceOptions? options = null) + : base("exoscale:index/sksCluster:SksCluster", name, args ?? new SksClusterArgs(), MakeResourceOptions(options, "")) { } - private SKSCluster(string name, Input id, SKSClusterState? state = null, CustomResourceOptions? options = null) - : base("exoscale:index/sKSCluster:SKSCluster", name, state, MakeResourceOptions(options, id)) + private SksCluster(string name, Input id, SksClusterState? state = null, CustomResourceOptions? options = null) + : base("exoscale:index/sksCluster:SksCluster", name, state, MakeResourceOptions(options, id)) { } @@ -168,7 +197,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? return merged; } /// - /// Get an existing SKSCluster resource's state with the given name, ID, and optional extra + /// Get an existing SksCluster resource's state with the given name, ID, and optional extra /// properties used to qualify the lookup. /// /// @@ -176,13 +205,13 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? /// 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 SKSCluster Get(string name, Input id, SKSClusterState? state = null, CustomResourceOptions? options = null) + public static SksCluster Get(string name, Input id, SksClusterState? state = null, CustomResourceOptions? options = null) { - return new SKSCluster(name, id, state, options); + return new SksCluster(name, id, state, options); } } - public sealed class SKSClusterArgs : global::Pulumi.ResourceArgs + public sealed class SksClusterArgs : global::Pulumi.ResourceArgs { [Input("addons")] private InputList? _addons; @@ -245,7 +274,7 @@ public InputMap Labels /// An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. /// [Input("oidc")] - public Input? Oidc { get; set; } + public Input? Oidc { get; set; } /// /// The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). @@ -265,13 +294,13 @@ public InputMap Labels [Input("zone", required: true)] public Input Zone { get; set; } = null!; - public SKSClusterArgs() + public SksClusterArgs() { } - public static new SKSClusterArgs Empty => new SKSClusterArgs(); + public static new SksClusterArgs Empty => new SksClusterArgs(); } - public sealed class SKSClusterState : global::Pulumi.ResourceArgs + public sealed class SksClusterState : global::Pulumi.ResourceArgs { [Input("addons")] private InputList? _addons; @@ -376,7 +405,7 @@ public InputList Nodepools /// An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. /// [Input("oidc")] - public Input? Oidc { get; set; } + public Input? Oidc { get; set; } /// /// The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). @@ -402,9 +431,9 @@ public InputList Nodepools [Input("zone")] public Input? Zone { get; set; } - public SKSClusterState() + public SksClusterState() { } - public static new SKSClusterState Empty => new SKSClusterState(); + public static new SksClusterState Empty => new SksClusterState(); } } diff --git a/sdk/dotnet/SKSKubeconfig.cs b/sdk/dotnet/SksKubeconfig.cs similarity index 89% rename from sdk/dotnet/SKSKubeconfig.cs rename to sdk/dotnet/SksKubeconfig.cs index bc8ef608..de47d467 100644 --- a/sdk/dotnet/SKSKubeconfig.cs +++ b/sdk/dotnet/SksKubeconfig.cs @@ -10,8 +10,8 @@ namespace Pulumiverse.Exoscale { - [ExoscaleResourceType("exoscale:index/sKSKubeconfig:SKSKubeconfig")] - public partial class SKSKubeconfig : global::Pulumi.CustomResource + [ExoscaleResourceType("exoscale:index/sksKubeconfig:SksKubeconfig")] + public partial class SksKubeconfig : global::Pulumi.CustomResource { /// /// ❗ The parent exoscale*sks*cluster ID. @@ -64,19 +64,19 @@ public partial class SKSKubeconfig : global::Pulumi.CustomResource /// - /// Create a SKSKubeconfig resource with the given unique name, arguments, and options. + /// Create a SksKubeconfig 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 SKSKubeconfig(string name, SKSKubeconfigArgs args, CustomResourceOptions? options = null) - : base("exoscale:index/sKSKubeconfig:SKSKubeconfig", name, args ?? new SKSKubeconfigArgs(), MakeResourceOptions(options, "")) + public SksKubeconfig(string name, SksKubeconfigArgs args, CustomResourceOptions? options = null) + : base("exoscale:index/sksKubeconfig:SksKubeconfig", name, args ?? new SksKubeconfigArgs(), MakeResourceOptions(options, "")) { } - private SKSKubeconfig(string name, Input id, SKSKubeconfigState? state = null, CustomResourceOptions? options = null) - : base("exoscale:index/sKSKubeconfig:SKSKubeconfig", name, state, MakeResourceOptions(options, id)) + private SksKubeconfig(string name, Input id, SksKubeconfigState? state = null, CustomResourceOptions? options = null) + : base("exoscale:index/sksKubeconfig:SksKubeconfig", name, state, MakeResourceOptions(options, id)) { } @@ -97,7 +97,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? return merged; } /// - /// Get an existing SKSKubeconfig resource's state with the given name, ID, and optional extra + /// Get an existing SksKubeconfig resource's state with the given name, ID, and optional extra /// properties used to qualify the lookup. /// /// @@ -105,13 +105,13 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? /// 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 SKSKubeconfig Get(string name, Input id, SKSKubeconfigState? state = null, CustomResourceOptions? options = null) + public static SksKubeconfig Get(string name, Input id, SksKubeconfigState? state = null, CustomResourceOptions? options = null) { - return new SKSKubeconfig(name, id, state, options); + return new SksKubeconfig(name, id, state, options); } } - public sealed class SKSKubeconfigArgs : global::Pulumi.ResourceArgs + public sealed class SksKubeconfigArgs : global::Pulumi.ResourceArgs { /// /// ❗ The parent exoscale*sks*cluster ID. @@ -159,13 +159,13 @@ public InputList Groups [Input("zone", required: true)] public Input Zone { get; set; } = null!; - public SKSKubeconfigArgs() + public SksKubeconfigArgs() { } - public static new SKSKubeconfigArgs Empty => new SKSKubeconfigArgs(); + public static new SksKubeconfigArgs Empty => new SksKubeconfigArgs(); } - public sealed class SKSKubeconfigState : global::Pulumi.ResourceArgs + public sealed class SksKubeconfigState : global::Pulumi.ResourceArgs { /// /// ❗ The parent exoscale*sks*cluster ID. @@ -232,9 +232,9 @@ public Input? Kubeconfig [Input("zone")] public Input? Zone { get; set; } - public SKSKubeconfigState() + public SksKubeconfigState() { } - public static new SKSKubeconfigState Empty => new SKSKubeconfigState(); + public static new SksKubeconfigState Empty => new SksKubeconfigState(); } } diff --git a/sdk/dotnet/SKSNodepool.cs b/sdk/dotnet/SksNodepool.cs similarity index 87% rename from sdk/dotnet/SKSNodepool.cs rename to sdk/dotnet/SksNodepool.cs index 55f0ff87..1d024d9b 100644 --- a/sdk/dotnet/SKSNodepool.cs +++ b/sdk/dotnet/SksNodepool.cs @@ -11,20 +11,51 @@ namespace Pulumiverse.Exoscale { /// + /// Manage Exoscale [Scalable Kubernetes Service (SKS)](https://community.exoscale.com/documentation/sks/) Node Pools. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Exoscale = Pulumiverse.Exoscale; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var mySksCluster = new Exoscale.SksCluster("mySksCluster", new() + /// { + /// Zone = "ch-gva-2", + /// }); + /// + /// var mySksNodepool = new Exoscale.SksNodepool("mySksNodepool", new() + /// { + /// ClusterId = mySksCluster.Id, + /// Zone = mySksCluster.Zone, + /// InstanceType = "standard.medium", + /// Size = 3, + /// }); + /// + /// }); + /// ``` + /// + /// Please refer to the examples + /// directory for complete configuration examples. + /// /// ## Import /// /// An existing SKS node pool may be imported by `<cluster-ID>/<nodepool-ID>@<zone>` /// /// ```sh - /// $ pulumi import exoscale:index/sKSNodepool:SKSNodepool \ + /// $ pulumi import exoscale:index/sksNodepool:SksNodepool \ /// ``` /// /// exoscale_sks_nodepool.my_sks_nodepool \ /// /// f81d4fae-7dec-11d0-a765-00a0c91e6bf6/9ecc6b8b-73d4-4211-8ced-f7f29bb79524@ch-gva-2 /// - [ExoscaleResourceType("exoscale:index/sKSNodepool:SKSNodepool")] - public partial class SKSNodepool : global::Pulumi.CustomResource + [ExoscaleResourceType("exoscale:index/sksNodepool:SksNodepool")] + public partial class SksNodepool : global::Pulumi.CustomResource { /// /// A list of exoscale*anti*affinity_group (IDs) to be attached to the managed instances. @@ -120,7 +151,7 @@ public partial class SKSNodepool : global::Pulumi.CustomResource public Output StorageLvm { get; private set; } = null!; /// - /// A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`<value>:<effect>`). + /// A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }'). /// [Output("taints")] public Output?> Taints { get; private set; } = null!; @@ -145,19 +176,19 @@ public partial class SKSNodepool : global::Pulumi.CustomResource /// - /// Create a SKSNodepool resource with the given unique name, arguments, and options. + /// Create a SksNodepool 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 SKSNodepool(string name, SKSNodepoolArgs args, CustomResourceOptions? options = null) - : base("exoscale:index/sKSNodepool:SKSNodepool", name, args ?? new SKSNodepoolArgs(), MakeResourceOptions(options, "")) + public SksNodepool(string name, SksNodepoolArgs args, CustomResourceOptions? options = null) + : base("exoscale:index/sksNodepool:SksNodepool", name, args ?? new SksNodepoolArgs(), MakeResourceOptions(options, "")) { } - private SKSNodepool(string name, Input id, SKSNodepoolState? state = null, CustomResourceOptions? options = null) - : base("exoscale:index/sKSNodepool:SKSNodepool", name, state, MakeResourceOptions(options, id)) + private SksNodepool(string name, Input id, SksNodepoolState? state = null, CustomResourceOptions? options = null) + : base("exoscale:index/sksNodepool:SksNodepool", name, state, MakeResourceOptions(options, id)) { } @@ -174,7 +205,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? return merged; } /// - /// Get an existing SKSNodepool resource's state with the given name, ID, and optional extra + /// Get an existing SksNodepool resource's state with the given name, ID, and optional extra /// properties used to qualify the lookup. /// /// @@ -182,13 +213,13 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? /// 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 SKSNodepool Get(string name, Input id, SKSNodepoolState? state = null, CustomResourceOptions? options = null) + public static SksNodepool Get(string name, Input id, SksNodepoolState? state = null, CustomResourceOptions? options = null) { - return new SKSNodepool(name, id, state, options); + return new SksNodepool(name, id, state, options); } } - public sealed class SKSNodepoolArgs : global::Pulumi.ResourceArgs + public sealed class SksNodepoolArgs : global::Pulumi.ResourceArgs { [Input("antiAffinityGroupIds")] private InputList? _antiAffinityGroupIds; @@ -293,7 +324,7 @@ public InputList SecurityGroupIds private InputMap? _taints; /// - /// A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`<value>:<effect>`). + /// A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }'). /// public InputMap Taints { @@ -307,13 +338,13 @@ public InputMap Taints [Input("zone", required: true)] public Input Zone { get; set; } = null!; - public SKSNodepoolArgs() + public SksNodepoolArgs() { } - public static new SKSNodepoolArgs Empty => new SKSNodepoolArgs(); + public static new SksNodepoolArgs Empty => new SksNodepoolArgs(); } - public sealed class SKSNodepoolState : global::Pulumi.ResourceArgs + public sealed class SksNodepoolState : global::Pulumi.ResourceArgs { [Input("antiAffinityGroupIds")] private InputList? _antiAffinityGroupIds; @@ -436,7 +467,7 @@ public InputList SecurityGroupIds private InputMap? _taints; /// - /// A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`<value>:<effect>`). + /// A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }'). /// public InputMap Taints { @@ -462,9 +493,9 @@ public InputMap Taints [Input("zone")] public Input? Zone { get; set; } - public SKSNodepoolState() + public SksNodepoolState() { } - public static new SKSNodepoolState Empty => new SKSNodepoolState(); + public static new SksNodepoolState Empty => new SksNodepoolState(); } } diff --git a/sdk/dotnet/SSHKey.cs b/sdk/dotnet/SshKey.cs similarity index 77% rename from sdk/dotnet/SSHKey.cs rename to sdk/dotnet/SshKey.cs index 77035a8c..12d5d468 100644 --- a/sdk/dotnet/SSHKey.cs +++ b/sdk/dotnet/SshKey.cs @@ -16,15 +16,15 @@ namespace Pulumiverse.Exoscale /// An existing SSH key may be imported as a resource by `<name>` /// /// ```sh - /// $ pulumi import exoscale:index/sSHKey:SSHKey \ + /// $ pulumi import exoscale:index/sshKey:SshKey \ /// ``` /// /// exoscale_ssh_key.my_ssh_key \ /// /// my-ssh-key /// - [ExoscaleResourceType("exoscale:index/sSHKey:SSHKey")] - public partial class SSHKey : global::Pulumi.CustomResource + [ExoscaleResourceType("exoscale:index/sshKey:SshKey")] + public partial class SshKey : global::Pulumi.CustomResource { /// /// The SSH key unique identifier. @@ -46,19 +46,19 @@ public partial class SSHKey : global::Pulumi.CustomResource /// - /// Create a SSHKey resource with the given unique name, arguments, and options. + /// Create a SshKey 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 SSHKey(string name, SSHKeyArgs args, CustomResourceOptions? options = null) - : base("exoscale:index/sSHKey:SSHKey", name, args ?? new SSHKeyArgs(), MakeResourceOptions(options, "")) + public SshKey(string name, SshKeyArgs args, CustomResourceOptions? options = null) + : base("exoscale:index/sshKey:SshKey", name, args ?? new SshKeyArgs(), MakeResourceOptions(options, "")) { } - private SSHKey(string name, Input id, SSHKeyState? state = null, CustomResourceOptions? options = null) - : base("exoscale:index/sSHKey:SSHKey", name, state, MakeResourceOptions(options, id)) + private SshKey(string name, Input id, SshKeyState? state = null, CustomResourceOptions? options = null) + : base("exoscale:index/sshKey:SshKey", name, state, MakeResourceOptions(options, id)) { } @@ -75,7 +75,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? return merged; } /// - /// Get an existing SSHKey resource's state with the given name, ID, and optional extra + /// Get an existing SshKey resource's state with the given name, ID, and optional extra /// properties used to qualify the lookup. /// /// @@ -83,13 +83,13 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? /// 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 SSHKey Get(string name, Input id, SSHKeyState? state = null, CustomResourceOptions? options = null) + public static SshKey Get(string name, Input id, SshKeyState? state = null, CustomResourceOptions? options = null) { - return new SSHKey(name, id, state, options); + return new SshKey(name, id, state, options); } } - public sealed class SSHKeyArgs : global::Pulumi.ResourceArgs + public sealed class SshKeyArgs : global::Pulumi.ResourceArgs { /// /// ❗ The SSH key name. @@ -103,13 +103,13 @@ public sealed class SSHKeyArgs : global::Pulumi.ResourceArgs [Input("publicKey", required: true)] public Input PublicKey { get; set; } = null!; - public SSHKeyArgs() + public SshKeyArgs() { } - public static new SSHKeyArgs Empty => new SSHKeyArgs(); + public static new SshKeyArgs Empty => new SshKeyArgs(); } - public sealed class SSHKeyState : global::Pulumi.ResourceArgs + public sealed class SshKeyState : global::Pulumi.ResourceArgs { /// /// The SSH key unique identifier. @@ -129,9 +129,9 @@ public sealed class SSHKeyState : global::Pulumi.ResourceArgs [Input("publicKey")] public Input? PublicKey { get; set; } - public SSHKeyState() + public SshKeyState() { } - public static new SSHKeyState Empty => new SSHKeyState(); + public static new SshKeyState Empty => new SshKeyState(); } } diff --git a/sdk/go/exoscale/antiAffinityGroup.go b/sdk/go/exoscale/antiAffinityGroup.go index 1dbc8a0e..39a7e8c9 100644 --- a/sdk/go/exoscale/antiAffinityGroup.go +++ b/sdk/go/exoscale/antiAffinityGroup.go @@ -11,6 +11,39 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// Manage Exoscale [Anti-Affinity Groups](https://community.exoscale.com/documentation/compute/anti-affinity-groups/). +// +// Corresponding data source: exoscale_anti_affinity_group. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := exoscale.NewAntiAffinityGroup(ctx, "myAntiAffinityGroup", &exoscale.AntiAffinityGroupArgs{ +// Description: pulumi.String("Prevent compute instances to run on the same host"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// Please refer to the examples +// directory for complete configuration examples. +// // ## Import // // An existing anti-affinity group may be imported by `` diff --git a/sdk/go/exoscale/computeInstance.go b/sdk/go/exoscale/computeInstance.go index 004ede29..5a07e1c5 100644 --- a/sdk/go/exoscale/computeInstance.go +++ b/sdk/go/exoscale/computeInstance.go @@ -12,6 +12,51 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// Manage Exoscale [Compute Instances](https://community.exoscale.com/documentation/compute/). +// +// Corresponding data sources: exoscale_compute_instance, exoscale_compute_instance_list. +// +// After the creation, you can retrieve the password of an instance with [Exoscale CLI](https://github.com/exoscale/cli): `exo compute instance reveal-password NAME`. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// myTemplate, err := exoscale.GetTemplate(ctx, &exoscale.GetTemplateArgs{ +// Zone: "ch-gva-2", +// Name: pulumi.StringRef("Linux Ubuntu 22.04 LTS 64-bit"), +// }, nil) +// if err != nil { +// return err +// } +// _, err = exoscale.NewComputeInstance(ctx, "myInstance", &exoscale.ComputeInstanceArgs{ +// Zone: pulumi.String("ch-gva-2"), +// TemplateId: *pulumi.String(myTemplate.Id), +// Type: pulumi.String("standard.medium"), +// DiskSize: pulumi.Int(10), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// Please refer to the examples +// directory for complete configuration examples. +// // ## Import // // An existing compute instance may be imported by `@` @@ -34,7 +79,7 @@ type ComputeInstance struct { CreatedAt pulumi.StringOutput `pulumi:"createdAt"` // ❗ A deploy target ID. DeployTargetId pulumi.StringPtrOutput `pulumi:"deployTargetId"` - // The instance disk size (GiB; at least `10`). **WARNING**: updating this attribute stops/restarts the instance. + // The instance disk size (GiB; at least `10`). Can not be decreased after creation. **WARNING**: updating this attribute stops/restarts the instance. DiskSize pulumi.IntOutput `pulumi:"diskSize"` // A list of exoscale*elastic*ip (IDs) to attach to the instance. ElasticIpIds pulumi.StringArrayOutput `pulumi:"elasticIpIds"` @@ -119,7 +164,7 @@ type computeInstanceState struct { CreatedAt *string `pulumi:"createdAt"` // ❗ A deploy target ID. DeployTargetId *string `pulumi:"deployTargetId"` - // The instance disk size (GiB; at least `10`). **WARNING**: updating this attribute stops/restarts the instance. + // The instance disk size (GiB; at least `10`). Can not be decreased after creation. **WARNING**: updating this attribute stops/restarts the instance. DiskSize *int `pulumi:"diskSize"` // A list of exoscale*elastic*ip (IDs) to attach to the instance. ElasticIpIds []string `pulumi:"elasticIpIds"` @@ -166,7 +211,7 @@ type ComputeInstanceState struct { CreatedAt pulumi.StringPtrInput // ❗ A deploy target ID. DeployTargetId pulumi.StringPtrInput - // The instance disk size (GiB; at least `10`). **WARNING**: updating this attribute stops/restarts the instance. + // The instance disk size (GiB; at least `10`). Can not be decreased after creation. **WARNING**: updating this attribute stops/restarts the instance. DiskSize pulumi.IntPtrInput // A list of exoscale*elastic*ip (IDs) to attach to the instance. ElasticIpIds pulumi.StringArrayInput @@ -215,7 +260,7 @@ type computeInstanceArgs struct { AntiAffinityGroupIds []string `pulumi:"antiAffinityGroupIds"` // ❗ A deploy target ID. DeployTargetId *string `pulumi:"deployTargetId"` - // The instance disk size (GiB; at least `10`). **WARNING**: updating this attribute stops/restarts the instance. + // The instance disk size (GiB; at least `10`). Can not be decreased after creation. **WARNING**: updating this attribute stops/restarts the instance. DiskSize *int `pulumi:"diskSize"` // A list of exoscale*elastic*ip (IDs) to attach to the instance. ElasticIpIds []string `pulumi:"elasticIpIds"` @@ -253,7 +298,7 @@ type ComputeInstanceArgs struct { AntiAffinityGroupIds pulumi.StringArrayInput // ❗ A deploy target ID. DeployTargetId pulumi.StringPtrInput - // The instance disk size (GiB; at least `10`). **WARNING**: updating this attribute stops/restarts the instance. + // The instance disk size (GiB; at least `10`). Can not be decreased after creation. **WARNING**: updating this attribute stops/restarts the instance. DiskSize pulumi.IntPtrInput // A list of exoscale*elastic*ip (IDs) to attach to the instance. ElasticIpIds pulumi.StringArrayInput @@ -387,7 +432,7 @@ func (o ComputeInstanceOutput) DeployTargetId() pulumi.StringPtrOutput { return o.ApplyT(func(v *ComputeInstance) pulumi.StringPtrOutput { return v.DeployTargetId }).(pulumi.StringPtrOutput) } -// The instance disk size (GiB; at least `10`). **WARNING**: updating this attribute stops/restarts the instance. +// The instance disk size (GiB; at least `10`). Can not be decreased after creation. **WARNING**: updating this attribute stops/restarts the instance. func (o ComputeInstanceOutput) DiskSize() pulumi.IntOutput { return o.ApplyT(func(v *ComputeInstance) pulumi.IntOutput { return v.DiskSize }).(pulumi.IntOutput) } diff --git a/sdk/go/exoscale/database.go b/sdk/go/exoscale/database.go index 3da1c4b3..8944b808 100644 --- a/sdk/go/exoscale/database.go +++ b/sdk/go/exoscale/database.go @@ -12,6 +12,8 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// Manage Exoscale [Database Services (DBaaS)](https://community.exoscale.com/documentation/dbaas/). +// // ## Import // // An existing database service may be imported by `@` diff --git a/sdk/go/exoscale/domain.go b/sdk/go/exoscale/domain.go index 30c7300d..42f93269 100644 --- a/sdk/go/exoscale/domain.go +++ b/sdk/go/exoscale/domain.go @@ -11,6 +11,39 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// Manage Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domains. +// +// Corresponding data source: exoscale_domain. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := exoscale.NewDomain(ctx, "myDomain", nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// Next step is to attach exoscale_domain_record(s) to the domain. +// +// Please refer to the examples +// directory for complete configuration examples. +// // ## Import // // An existing DNS domain may be imported by `ID` diff --git a/sdk/go/exoscale/domainRecord.go b/sdk/go/exoscale/domainRecord.go index 88cafc5c..275dac44 100644 --- a/sdk/go/exoscale/domainRecord.go +++ b/sdk/go/exoscale/domainRecord.go @@ -12,6 +12,53 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// Manage Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domain Records. +// +// Corresponding data source: exoscale_domain_record. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// myDomain, err := exoscale.NewDomain(ctx, "myDomain", nil) +// if err != nil { +// return err +// } +// myHost, err := exoscale.NewDomainRecord(ctx, "myHost", &exoscale.DomainRecordArgs{ +// Domain: myDomain.ID(), +// RecordType: pulumi.String("A"), +// Content: pulumi.String("1.2.3.4"), +// }) +// if err != nil { +// return err +// } +// _, err = exoscale.NewDomainRecord(ctx, "myHostAlias", &exoscale.DomainRecordArgs{ +// Domain: myDomain.ID(), +// RecordType: pulumi.String("CNAME"), +// Content: myHost.Hostname, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// Please refer to the examples +// directory for complete configuration examples. +// // ## Import // // An existing DNS domain record may be imported by `` @@ -30,6 +77,8 @@ type DomainRecord struct { // The record value. Content pulumi.StringOutput `pulumi:"content"` + // The normalized value of the record + ContentNormalized pulumi.StringOutput `pulumi:"contentNormalized"` // ❗ The parent Domain to attach the record to. Domain pulumi.StringOutput `pulumi:"domain"` // The record *Fully Qualified Domain Name* (FQDN). Useful for aliasing `A`/`AAAA` records with `CNAME`. @@ -85,6 +134,8 @@ func GetDomainRecord(ctx *pulumi.Context, type domainRecordState struct { // The record value. Content *string `pulumi:"content"` + // The normalized value of the record + ContentNormalized *string `pulumi:"contentNormalized"` // ❗ The parent Domain to attach the record to. Domain *string `pulumi:"domain"` // The record *Fully Qualified Domain Name* (FQDN). Useful for aliasing `A`/`AAAA` records with `CNAME`. @@ -102,6 +153,8 @@ type domainRecordState struct { type DomainRecordState struct { // The record value. Content pulumi.StringPtrInput + // The normalized value of the record + ContentNormalized pulumi.StringPtrInput // ❗ The parent Domain to attach the record to. Domain pulumi.StringPtrInput // The record *Fully Qualified Domain Name* (FQDN). Useful for aliasing `A`/`AAAA` records with `CNAME`. @@ -243,6 +296,11 @@ func (o DomainRecordOutput) Content() pulumi.StringOutput { return o.ApplyT(func(v *DomainRecord) pulumi.StringOutput { return v.Content }).(pulumi.StringOutput) } +// The normalized value of the record +func (o DomainRecordOutput) ContentNormalized() pulumi.StringOutput { + return o.ApplyT(func(v *DomainRecord) pulumi.StringOutput { return v.ContentNormalized }).(pulumi.StringOutput) +} + // ❗ The parent Domain to attach the record to. func (o DomainRecordOutput) Domain() pulumi.StringOutput { return o.ApplyT(func(v *DomainRecord) pulumi.StringOutput { return v.Domain }).(pulumi.StringOutput) diff --git a/sdk/go/exoscale/elasticIP.go b/sdk/go/exoscale/elasticIP.go deleted file mode 100644 index a55cf2df..00000000 --- a/sdk/go/exoscale/elasticIP.go +++ /dev/null @@ -1,328 +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 exoscale - -import ( - "context" - "reflect" - - "errors" - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" -) - -// ## Import -// -// An existing Elastic IP (EIP) may be imported by `@` -// -// ```sh -// -// $ pulumi import exoscale:index/elasticIP:ElasticIP \ -// -// ``` -// -// exoscale_elastic_ip.my_elastic_ip \ -// -// f81d4fae-7dec-11d0-a765-00a0c91e6bf6@ch-gva-2 -type ElasticIP struct { - pulumi.CustomResourceState - - // ❗ The Elastic IP (EIP) address family (`inet4` or `inet6`; default: `inet4`). - AddressFamily pulumi.StringOutput `pulumi:"addressFamily"` - // The Elastic IP (EIP) CIDR. - Cidr pulumi.StringOutput `pulumi:"cidr"` - // A free-form text describing the Elastic IP (EIP). - Description pulumi.StringOutput `pulumi:"description"` - // Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. - Healthcheck ElasticIPHealthcheckOutput `pulumi:"healthcheck"` - // The Elastic IP (EIP) IPv4 or IPv6 address. - IpAddress pulumi.StringOutput `pulumi:"ipAddress"` - // A map of key/value labels. - Labels pulumi.StringMapOutput `pulumi:"labels"` - // Domain name for reverse DNS record. - ReverseDns pulumi.StringPtrOutput `pulumi:"reverseDns"` - // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. - Zone pulumi.StringOutput `pulumi:"zone"` -} - -// NewElasticIP registers a new resource with the given unique name, arguments, and options. -func NewElasticIP(ctx *pulumi.Context, - name string, args *ElasticIPArgs, opts ...pulumi.ResourceOption) (*ElasticIP, error) { - if args == nil { - return nil, errors.New("missing one or more required arguments") - } - - if args.Zone == nil { - return nil, errors.New("invalid value for required argument 'Zone'") - } - opts = internal.PkgResourceDefaultOpts(opts) - var resource ElasticIP - err := ctx.RegisterResource("exoscale:index/elasticIP:ElasticIP", name, args, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// GetElasticIP gets an existing ElasticIP 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 GetElasticIP(ctx *pulumi.Context, - name string, id pulumi.IDInput, state *ElasticIPState, opts ...pulumi.ResourceOption) (*ElasticIP, error) { - var resource ElasticIP - err := ctx.ReadResource("exoscale:index/elasticIP:ElasticIP", name, id, state, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// Input properties used for looking up and filtering ElasticIP resources. -type elasticIPState struct { - // ❗ The Elastic IP (EIP) address family (`inet4` or `inet6`; default: `inet4`). - AddressFamily *string `pulumi:"addressFamily"` - // The Elastic IP (EIP) CIDR. - Cidr *string `pulumi:"cidr"` - // A free-form text describing the Elastic IP (EIP). - Description *string `pulumi:"description"` - // Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. - Healthcheck *ElasticIPHealthcheck `pulumi:"healthcheck"` - // The Elastic IP (EIP) IPv4 or IPv6 address. - IpAddress *string `pulumi:"ipAddress"` - // A map of key/value labels. - Labels map[string]string `pulumi:"labels"` - // Domain name for reverse DNS record. - ReverseDns *string `pulumi:"reverseDns"` - // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. - Zone *string `pulumi:"zone"` -} - -type ElasticIPState struct { - // ❗ The Elastic IP (EIP) address family (`inet4` or `inet6`; default: `inet4`). - AddressFamily pulumi.StringPtrInput - // The Elastic IP (EIP) CIDR. - Cidr pulumi.StringPtrInput - // A free-form text describing the Elastic IP (EIP). - Description pulumi.StringPtrInput - // Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. - Healthcheck ElasticIPHealthcheckPtrInput - // The Elastic IP (EIP) IPv4 or IPv6 address. - IpAddress pulumi.StringPtrInput - // A map of key/value labels. - Labels pulumi.StringMapInput - // Domain name for reverse DNS record. - ReverseDns pulumi.StringPtrInput - // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. - Zone pulumi.StringPtrInput -} - -func (ElasticIPState) ElementType() reflect.Type { - return reflect.TypeOf((*elasticIPState)(nil)).Elem() -} - -type elasticIPArgs struct { - // ❗ The Elastic IP (EIP) address family (`inet4` or `inet6`; default: `inet4`). - AddressFamily *string `pulumi:"addressFamily"` - // A free-form text describing the Elastic IP (EIP). - Description *string `pulumi:"description"` - // Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. - Healthcheck *ElasticIPHealthcheck `pulumi:"healthcheck"` - // A map of key/value labels. - Labels map[string]string `pulumi:"labels"` - // Domain name for reverse DNS record. - ReverseDns *string `pulumi:"reverseDns"` - // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. - Zone string `pulumi:"zone"` -} - -// The set of arguments for constructing a ElasticIP resource. -type ElasticIPArgs struct { - // ❗ The Elastic IP (EIP) address family (`inet4` or `inet6`; default: `inet4`). - AddressFamily pulumi.StringPtrInput - // A free-form text describing the Elastic IP (EIP). - Description pulumi.StringPtrInput - // Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. - Healthcheck ElasticIPHealthcheckPtrInput - // A map of key/value labels. - Labels pulumi.StringMapInput - // Domain name for reverse DNS record. - ReverseDns pulumi.StringPtrInput - // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. - Zone pulumi.StringInput -} - -func (ElasticIPArgs) ElementType() reflect.Type { - return reflect.TypeOf((*elasticIPArgs)(nil)).Elem() -} - -type ElasticIPInput interface { - pulumi.Input - - ToElasticIPOutput() ElasticIPOutput - ToElasticIPOutputWithContext(ctx context.Context) ElasticIPOutput -} - -func (*ElasticIP) ElementType() reflect.Type { - return reflect.TypeOf((**ElasticIP)(nil)).Elem() -} - -func (i *ElasticIP) ToElasticIPOutput() ElasticIPOutput { - return i.ToElasticIPOutputWithContext(context.Background()) -} - -func (i *ElasticIP) ToElasticIPOutputWithContext(ctx context.Context) ElasticIPOutput { - return pulumi.ToOutputWithContext(ctx, i).(ElasticIPOutput) -} - -// ElasticIPArrayInput is an input type that accepts ElasticIPArray and ElasticIPArrayOutput values. -// You can construct a concrete instance of `ElasticIPArrayInput` via: -// -// ElasticIPArray{ ElasticIPArgs{...} } -type ElasticIPArrayInput interface { - pulumi.Input - - ToElasticIPArrayOutput() ElasticIPArrayOutput - ToElasticIPArrayOutputWithContext(context.Context) ElasticIPArrayOutput -} - -type ElasticIPArray []ElasticIPInput - -func (ElasticIPArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]*ElasticIP)(nil)).Elem() -} - -func (i ElasticIPArray) ToElasticIPArrayOutput() ElasticIPArrayOutput { - return i.ToElasticIPArrayOutputWithContext(context.Background()) -} - -func (i ElasticIPArray) ToElasticIPArrayOutputWithContext(ctx context.Context) ElasticIPArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ElasticIPArrayOutput) -} - -// ElasticIPMapInput is an input type that accepts ElasticIPMap and ElasticIPMapOutput values. -// You can construct a concrete instance of `ElasticIPMapInput` via: -// -// ElasticIPMap{ "key": ElasticIPArgs{...} } -type ElasticIPMapInput interface { - pulumi.Input - - ToElasticIPMapOutput() ElasticIPMapOutput - ToElasticIPMapOutputWithContext(context.Context) ElasticIPMapOutput -} - -type ElasticIPMap map[string]ElasticIPInput - -func (ElasticIPMap) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*ElasticIP)(nil)).Elem() -} - -func (i ElasticIPMap) ToElasticIPMapOutput() ElasticIPMapOutput { - return i.ToElasticIPMapOutputWithContext(context.Background()) -} - -func (i ElasticIPMap) ToElasticIPMapOutputWithContext(ctx context.Context) ElasticIPMapOutput { - return pulumi.ToOutputWithContext(ctx, i).(ElasticIPMapOutput) -} - -type ElasticIPOutput struct{ *pulumi.OutputState } - -func (ElasticIPOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ElasticIP)(nil)).Elem() -} - -func (o ElasticIPOutput) ToElasticIPOutput() ElasticIPOutput { - return o -} - -func (o ElasticIPOutput) ToElasticIPOutputWithContext(ctx context.Context) ElasticIPOutput { - return o -} - -// ❗ The Elastic IP (EIP) address family (`inet4` or `inet6`; default: `inet4`). -func (o ElasticIPOutput) AddressFamily() pulumi.StringOutput { - return o.ApplyT(func(v *ElasticIP) pulumi.StringOutput { return v.AddressFamily }).(pulumi.StringOutput) -} - -// The Elastic IP (EIP) CIDR. -func (o ElasticIPOutput) Cidr() pulumi.StringOutput { - return o.ApplyT(func(v *ElasticIP) pulumi.StringOutput { return v.Cidr }).(pulumi.StringOutput) -} - -// A free-form text describing the Elastic IP (EIP). -func (o ElasticIPOutput) Description() pulumi.StringOutput { - return o.ApplyT(func(v *ElasticIP) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput) -} - -// Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. -func (o ElasticIPOutput) Healthcheck() ElasticIPHealthcheckOutput { - return o.ApplyT(func(v *ElasticIP) ElasticIPHealthcheckOutput { return v.Healthcheck }).(ElasticIPHealthcheckOutput) -} - -// The Elastic IP (EIP) IPv4 or IPv6 address. -func (o ElasticIPOutput) IpAddress() pulumi.StringOutput { - return o.ApplyT(func(v *ElasticIP) pulumi.StringOutput { return v.IpAddress }).(pulumi.StringOutput) -} - -// A map of key/value labels. -func (o ElasticIPOutput) Labels() pulumi.StringMapOutput { - return o.ApplyT(func(v *ElasticIP) pulumi.StringMapOutput { return v.Labels }).(pulumi.StringMapOutput) -} - -// Domain name for reverse DNS record. -func (o ElasticIPOutput) ReverseDns() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ElasticIP) pulumi.StringPtrOutput { return v.ReverseDns }).(pulumi.StringPtrOutput) -} - -// ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. -func (o ElasticIPOutput) Zone() pulumi.StringOutput { - return o.ApplyT(func(v *ElasticIP) pulumi.StringOutput { return v.Zone }).(pulumi.StringOutput) -} - -type ElasticIPArrayOutput struct{ *pulumi.OutputState } - -func (ElasticIPArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]*ElasticIP)(nil)).Elem() -} - -func (o ElasticIPArrayOutput) ToElasticIPArrayOutput() ElasticIPArrayOutput { - return o -} - -func (o ElasticIPArrayOutput) ToElasticIPArrayOutputWithContext(ctx context.Context) ElasticIPArrayOutput { - return o -} - -func (o ElasticIPArrayOutput) Index(i pulumi.IntInput) ElasticIPOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ElasticIP { - return vs[0].([]*ElasticIP)[vs[1].(int)] - }).(ElasticIPOutput) -} - -type ElasticIPMapOutput struct{ *pulumi.OutputState } - -func (ElasticIPMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*ElasticIP)(nil)).Elem() -} - -func (o ElasticIPMapOutput) ToElasticIPMapOutput() ElasticIPMapOutput { - return o -} - -func (o ElasticIPMapOutput) ToElasticIPMapOutputWithContext(ctx context.Context) ElasticIPMapOutput { - return o -} - -func (o ElasticIPMapOutput) MapIndex(k pulumi.StringInput) ElasticIPOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ElasticIP { - return vs[0].(map[string]*ElasticIP)[vs[1].(string)] - }).(ElasticIPOutput) -} - -func init() { - pulumi.RegisterInputType(reflect.TypeOf((*ElasticIPInput)(nil)).Elem(), &ElasticIP{}) - pulumi.RegisterInputType(reflect.TypeOf((*ElasticIPArrayInput)(nil)).Elem(), ElasticIPArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*ElasticIPMapInput)(nil)).Elem(), ElasticIPMap{}) - pulumi.RegisterOutputType(ElasticIPOutput{}) - pulumi.RegisterOutputType(ElasticIPArrayOutput{}) - pulumi.RegisterOutputType(ElasticIPMapOutput{}) -} diff --git a/sdk/go/exoscale/elasticIp.go b/sdk/go/exoscale/elasticIp.go new file mode 100644 index 00000000..da3648b2 --- /dev/null +++ b/sdk/go/exoscale/elasticIp.go @@ -0,0 +1,401 @@ +// 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 exoscale + +import ( + "context" + "reflect" + + "errors" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" +) + +// Manage Exoscale [Elastic IPs (EIP)](https://community.exoscale.com/documentation/compute/eip/). +// +// Corresponding data source: exoscale_elastic_ip. +// +// ## Example Usage +// +// *Unmanaged* EIPv4: +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := exoscale.NewElasticIp(ctx, "myElasticIp", &exoscale.ElasticIpArgs{ +// Zone: pulumi.String("ch-gva-2"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// *Managed* EIPv6: +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := exoscale.NewElasticIp(ctx, "myManagedElasticIp", &exoscale.ElasticIpArgs{ +// AddressFamily: pulumi.String("inet6"), +// Healthcheck: &exoscale.ElasticIpHealthcheckArgs{ +// Interval: pulumi.Int(5), +// Mode: pulumi.String("https"), +// Port: pulumi.Int(443), +// StrikesFail: pulumi.Int(3), +// StrikesOk: pulumi.Int(2), +// Timeout: pulumi.Int(3), +// TlsSni: pulumi.String("example.net"), +// Uri: pulumi.String("/health"), +// }, +// ReverseDns: pulumi.String("example.net"), +// Zone: pulumi.String("ch-gva-2"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// Please refer to the examples +// directory for complete configuration examples. +// +// ## Import +// +// An existing Elastic IP (EIP) may be imported by `@` +// +// ```sh +// +// $ pulumi import exoscale:index/elasticIp:ElasticIp \ +// +// ``` +// +// exoscale_elastic_ip.my_elastic_ip \ +// +// f81d4fae-7dec-11d0-a765-00a0c91e6bf6@ch-gva-2 +type ElasticIp struct { + pulumi.CustomResourceState + + // ❗ The Elastic IP (EIP) address family (`inet4` or `inet6`; default: `inet4`). + AddressFamily pulumi.StringOutput `pulumi:"addressFamily"` + // The Elastic IP (EIP) CIDR. + Cidr pulumi.StringOutput `pulumi:"cidr"` + // A free-form text describing the Elastic IP (EIP). + Description pulumi.StringOutput `pulumi:"description"` + // Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. + Healthcheck ElasticIpHealthcheckOutput `pulumi:"healthcheck"` + // The Elastic IP (EIP) IPv4 or IPv6 address. + IpAddress pulumi.StringOutput `pulumi:"ipAddress"` + // A map of key/value labels. + Labels pulumi.StringMapOutput `pulumi:"labels"` + // Domain name for reverse DNS record. + ReverseDns pulumi.StringPtrOutput `pulumi:"reverseDns"` + // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. + Zone pulumi.StringOutput `pulumi:"zone"` +} + +// NewElasticIp registers a new resource with the given unique name, arguments, and options. +func NewElasticIp(ctx *pulumi.Context, + name string, args *ElasticIpArgs, opts ...pulumi.ResourceOption) (*ElasticIp, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Zone == nil { + return nil, errors.New("invalid value for required argument 'Zone'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource ElasticIp + err := ctx.RegisterResource("exoscale:index/elasticIp:ElasticIp", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetElasticIp gets an existing ElasticIp 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 GetElasticIp(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *ElasticIpState, opts ...pulumi.ResourceOption) (*ElasticIp, error) { + var resource ElasticIp + err := ctx.ReadResource("exoscale:index/elasticIp:ElasticIp", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering ElasticIp resources. +type elasticIpState struct { + // ❗ The Elastic IP (EIP) address family (`inet4` or `inet6`; default: `inet4`). + AddressFamily *string `pulumi:"addressFamily"` + // The Elastic IP (EIP) CIDR. + Cidr *string `pulumi:"cidr"` + // A free-form text describing the Elastic IP (EIP). + Description *string `pulumi:"description"` + // Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. + Healthcheck *ElasticIpHealthcheck `pulumi:"healthcheck"` + // The Elastic IP (EIP) IPv4 or IPv6 address. + IpAddress *string `pulumi:"ipAddress"` + // A map of key/value labels. + Labels map[string]string `pulumi:"labels"` + // Domain name for reverse DNS record. + ReverseDns *string `pulumi:"reverseDns"` + // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. + Zone *string `pulumi:"zone"` +} + +type ElasticIpState struct { + // ❗ The Elastic IP (EIP) address family (`inet4` or `inet6`; default: `inet4`). + AddressFamily pulumi.StringPtrInput + // The Elastic IP (EIP) CIDR. + Cidr pulumi.StringPtrInput + // A free-form text describing the Elastic IP (EIP). + Description pulumi.StringPtrInput + // Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. + Healthcheck ElasticIpHealthcheckPtrInput + // The Elastic IP (EIP) IPv4 or IPv6 address. + IpAddress pulumi.StringPtrInput + // A map of key/value labels. + Labels pulumi.StringMapInput + // Domain name for reverse DNS record. + ReverseDns pulumi.StringPtrInput + // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. + Zone pulumi.StringPtrInput +} + +func (ElasticIpState) ElementType() reflect.Type { + return reflect.TypeOf((*elasticIpState)(nil)).Elem() +} + +type elasticIpArgs struct { + // ❗ The Elastic IP (EIP) address family (`inet4` or `inet6`; default: `inet4`). + AddressFamily *string `pulumi:"addressFamily"` + // A free-form text describing the Elastic IP (EIP). + Description *string `pulumi:"description"` + // Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. + Healthcheck *ElasticIpHealthcheck `pulumi:"healthcheck"` + // A map of key/value labels. + Labels map[string]string `pulumi:"labels"` + // Domain name for reverse DNS record. + ReverseDns *string `pulumi:"reverseDns"` + // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. + Zone string `pulumi:"zone"` +} + +// The set of arguments for constructing a ElasticIp resource. +type ElasticIpArgs struct { + // ❗ The Elastic IP (EIP) address family (`inet4` or `inet6`; default: `inet4`). + AddressFamily pulumi.StringPtrInput + // A free-form text describing the Elastic IP (EIP). + Description pulumi.StringPtrInput + // Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. + Healthcheck ElasticIpHealthcheckPtrInput + // A map of key/value labels. + Labels pulumi.StringMapInput + // Domain name for reverse DNS record. + ReverseDns pulumi.StringPtrInput + // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. + Zone pulumi.StringInput +} + +func (ElasticIpArgs) ElementType() reflect.Type { + return reflect.TypeOf((*elasticIpArgs)(nil)).Elem() +} + +type ElasticIpInput interface { + pulumi.Input + + ToElasticIpOutput() ElasticIpOutput + ToElasticIpOutputWithContext(ctx context.Context) ElasticIpOutput +} + +func (*ElasticIp) ElementType() reflect.Type { + return reflect.TypeOf((**ElasticIp)(nil)).Elem() +} + +func (i *ElasticIp) ToElasticIpOutput() ElasticIpOutput { + return i.ToElasticIpOutputWithContext(context.Background()) +} + +func (i *ElasticIp) ToElasticIpOutputWithContext(ctx context.Context) ElasticIpOutput { + return pulumi.ToOutputWithContext(ctx, i).(ElasticIpOutput) +} + +// ElasticIpArrayInput is an input type that accepts ElasticIpArray and ElasticIpArrayOutput values. +// You can construct a concrete instance of `ElasticIpArrayInput` via: +// +// ElasticIpArray{ ElasticIpArgs{...} } +type ElasticIpArrayInput interface { + pulumi.Input + + ToElasticIpArrayOutput() ElasticIpArrayOutput + ToElasticIpArrayOutputWithContext(context.Context) ElasticIpArrayOutput +} + +type ElasticIpArray []ElasticIpInput + +func (ElasticIpArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*ElasticIp)(nil)).Elem() +} + +func (i ElasticIpArray) ToElasticIpArrayOutput() ElasticIpArrayOutput { + return i.ToElasticIpArrayOutputWithContext(context.Background()) +} + +func (i ElasticIpArray) ToElasticIpArrayOutputWithContext(ctx context.Context) ElasticIpArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ElasticIpArrayOutput) +} + +// ElasticIpMapInput is an input type that accepts ElasticIpMap and ElasticIpMapOutput values. +// You can construct a concrete instance of `ElasticIpMapInput` via: +// +// ElasticIpMap{ "key": ElasticIpArgs{...} } +type ElasticIpMapInput interface { + pulumi.Input + + ToElasticIpMapOutput() ElasticIpMapOutput + ToElasticIpMapOutputWithContext(context.Context) ElasticIpMapOutput +} + +type ElasticIpMap map[string]ElasticIpInput + +func (ElasticIpMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*ElasticIp)(nil)).Elem() +} + +func (i ElasticIpMap) ToElasticIpMapOutput() ElasticIpMapOutput { + return i.ToElasticIpMapOutputWithContext(context.Background()) +} + +func (i ElasticIpMap) ToElasticIpMapOutputWithContext(ctx context.Context) ElasticIpMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(ElasticIpMapOutput) +} + +type ElasticIpOutput struct{ *pulumi.OutputState } + +func (ElasticIpOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ElasticIp)(nil)).Elem() +} + +func (o ElasticIpOutput) ToElasticIpOutput() ElasticIpOutput { + return o +} + +func (o ElasticIpOutput) ToElasticIpOutputWithContext(ctx context.Context) ElasticIpOutput { + return o +} + +// ❗ The Elastic IP (EIP) address family (`inet4` or `inet6`; default: `inet4`). +func (o ElasticIpOutput) AddressFamily() pulumi.StringOutput { + return o.ApplyT(func(v *ElasticIp) pulumi.StringOutput { return v.AddressFamily }).(pulumi.StringOutput) +} + +// The Elastic IP (EIP) CIDR. +func (o ElasticIpOutput) Cidr() pulumi.StringOutput { + return o.ApplyT(func(v *ElasticIp) pulumi.StringOutput { return v.Cidr }).(pulumi.StringOutput) +} + +// A free-form text describing the Elastic IP (EIP). +func (o ElasticIpOutput) Description() pulumi.StringOutput { + return o.ApplyT(func(v *ElasticIp) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput) +} + +// Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. +func (o ElasticIpOutput) Healthcheck() ElasticIpHealthcheckOutput { + return o.ApplyT(func(v *ElasticIp) ElasticIpHealthcheckOutput { return v.Healthcheck }).(ElasticIpHealthcheckOutput) +} + +// The Elastic IP (EIP) IPv4 or IPv6 address. +func (o ElasticIpOutput) IpAddress() pulumi.StringOutput { + return o.ApplyT(func(v *ElasticIp) pulumi.StringOutput { return v.IpAddress }).(pulumi.StringOutput) +} + +// A map of key/value labels. +func (o ElasticIpOutput) Labels() pulumi.StringMapOutput { + return o.ApplyT(func(v *ElasticIp) pulumi.StringMapOutput { return v.Labels }).(pulumi.StringMapOutput) +} + +// Domain name for reverse DNS record. +func (o ElasticIpOutput) ReverseDns() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ElasticIp) pulumi.StringPtrOutput { return v.ReverseDns }).(pulumi.StringPtrOutput) +} + +// ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. +func (o ElasticIpOutput) Zone() pulumi.StringOutput { + return o.ApplyT(func(v *ElasticIp) pulumi.StringOutput { return v.Zone }).(pulumi.StringOutput) +} + +type ElasticIpArrayOutput struct{ *pulumi.OutputState } + +func (ElasticIpArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*ElasticIp)(nil)).Elem() +} + +func (o ElasticIpArrayOutput) ToElasticIpArrayOutput() ElasticIpArrayOutput { + return o +} + +func (o ElasticIpArrayOutput) ToElasticIpArrayOutputWithContext(ctx context.Context) ElasticIpArrayOutput { + return o +} + +func (o ElasticIpArrayOutput) Index(i pulumi.IntInput) ElasticIpOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ElasticIp { + return vs[0].([]*ElasticIp)[vs[1].(int)] + }).(ElasticIpOutput) +} + +type ElasticIpMapOutput struct{ *pulumi.OutputState } + +func (ElasticIpMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*ElasticIp)(nil)).Elem() +} + +func (o ElasticIpMapOutput) ToElasticIpMapOutput() ElasticIpMapOutput { + return o +} + +func (o ElasticIpMapOutput) ToElasticIpMapOutputWithContext(ctx context.Context) ElasticIpMapOutput { + return o +} + +func (o ElasticIpMapOutput) MapIndex(k pulumi.StringInput) ElasticIpOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ElasticIp { + return vs[0].(map[string]*ElasticIp)[vs[1].(string)] + }).(ElasticIpOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*ElasticIpInput)(nil)).Elem(), &ElasticIp{}) + pulumi.RegisterInputType(reflect.TypeOf((*ElasticIpArrayInput)(nil)).Elem(), ElasticIpArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*ElasticIpMapInput)(nil)).Elem(), ElasticIpMap{}) + pulumi.RegisterOutputType(ElasticIpOutput{}) + pulumi.RegisterOutputType(ElasticIpArrayOutput{}) + pulumi.RegisterOutputType(ElasticIpMapOutput{}) +} diff --git a/sdk/go/exoscale/getAntiAffinityGroup.go b/sdk/go/exoscale/getAntiAffinityGroup.go index d2873db3..148b5cac 100644 --- a/sdk/go/exoscale/getAntiAffinityGroup.go +++ b/sdk/go/exoscale/getAntiAffinityGroup.go @@ -11,6 +11,39 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// Fetch Exoscale [Anti-Affinity Groups](https://community.exoscale.com/documentation/compute/anti-affinity-groups/) data. +// +// Corresponding resource: exoscale_anti_affinity_group. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// myAntiAffinityGroup, err := exoscale.LookupAntiAffinityGroup(ctx, &exoscale.LookupAntiAffinityGroupArgs{ +// Name: pulumi.StringRef("my-anti-affinity-group"), +// }, nil) +// if err != nil { +// return err +// } +// ctx.Export("myAntiAffinityGroupId", myAntiAffinityGroup.Id) +// return nil +// }) +// } +// +// ``` +// +// Please refer to the examples +// directory for complete configuration examples. func LookupAntiAffinityGroup(ctx *pulumi.Context, args *LookupAntiAffinityGroupArgs, opts ...pulumi.InvokeOption) (*LookupAntiAffinityGroupResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupAntiAffinityGroupResult diff --git a/sdk/go/exoscale/getComputeInstance.go b/sdk/go/exoscale/getComputeInstance.go index d6926fac..1b02ab29 100644 --- a/sdk/go/exoscale/getComputeInstance.go +++ b/sdk/go/exoscale/getComputeInstance.go @@ -11,6 +11,40 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// Fetch Exoscale [Compute Instances](https://community.exoscale.com/documentation/compute/) data. +// +// Corresponding resource: exoscale_compute_instance. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// myInstance, err := exoscale.LookupComputeInstance(ctx, &exoscale.LookupComputeInstanceArgs{ +// Zone: "ch-gva-2", +// Name: pulumi.StringRef("my-instance"), +// }, nil) +// if err != nil { +// return err +// } +// ctx.Export("myInstanceId", myInstance.Id) +// return nil +// }) +// } +// +// ``` +// +// Please refer to the examples +// directory for complete configuration examples. func LookupComputeInstance(ctx *pulumi.Context, args *LookupComputeInstanceArgs, opts ...pulumi.InvokeOption) (*LookupComputeInstanceResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupComputeInstanceResult diff --git a/sdk/go/exoscale/getComputeInstanceList.go b/sdk/go/exoscale/getComputeInstanceList.go index 63be2602..7ac47521 100644 --- a/sdk/go/exoscale/getComputeInstanceList.go +++ b/sdk/go/exoscale/getComputeInstanceList.go @@ -11,6 +11,9 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// List Exoscale [Compute Instances](https://community.exoscale.com/documentation/compute/). +// +// Corresponding resource: exoscale_compute_instance. func GetComputeInstanceList(ctx *pulumi.Context, args *GetComputeInstanceListArgs, opts ...pulumi.InvokeOption) (*GetComputeInstanceListResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetComputeInstanceListResult diff --git a/sdk/go/exoscale/getDatabaseURI.go b/sdk/go/exoscale/getDatabaseURI.go deleted file mode 100644 index 35b30662..00000000 --- a/sdk/go/exoscale/getDatabaseURI.go +++ /dev/null @@ -1,124 +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 exoscale - -import ( - "context" - "reflect" - - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" -) - -func GetDatabaseURI(ctx *pulumi.Context, args *GetDatabaseURIArgs, opts ...pulumi.InvokeOption) (*GetDatabaseURIResult, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDatabaseURIResult - err := ctx.Invoke("exoscale:index/getDatabaseURI:getDatabaseURI", args, &rv, opts...) - if err != nil { - return nil, err - } - return &rv, nil -} - -// A collection of arguments for invoking getDatabaseURI. -type GetDatabaseURIArgs struct { - // The database name to match. - Name string `pulumi:"name"` - Timeouts *GetDatabaseURITimeouts `pulumi:"timeouts"` - // The type of the database service (`kafka`, `mysql`, `opensearch`, `pg`, `redis`). - Type string `pulumi:"type"` - // The Exoscale Zone name. - Zone string `pulumi:"zone"` -} - -// A collection of values returned by getDatabaseURI. -type GetDatabaseURIResult struct { - // The ID of this resource. - Id string `pulumi:"id"` - // The database name to match. - Name string `pulumi:"name"` - Timeouts *GetDatabaseURITimeouts `pulumi:"timeouts"` - // The type of the database service (`kafka`, `mysql`, `opensearch`, `pg`, `redis`). - Type string `pulumi:"type"` - // The database service connection URI. - Uri string `pulumi:"uri"` - // The Exoscale Zone name. - Zone string `pulumi:"zone"` -} - -func GetDatabaseURIOutput(ctx *pulumi.Context, args GetDatabaseURIOutputArgs, opts ...pulumi.InvokeOption) GetDatabaseURIResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetDatabaseURIResult, error) { - args := v.(GetDatabaseURIArgs) - r, err := GetDatabaseURI(ctx, &args, opts...) - var s GetDatabaseURIResult - if r != nil { - s = *r - } - return s, err - }).(GetDatabaseURIResultOutput) -} - -// A collection of arguments for invoking getDatabaseURI. -type GetDatabaseURIOutputArgs struct { - // The database name to match. - Name pulumi.StringInput `pulumi:"name"` - Timeouts GetDatabaseURITimeoutsPtrInput `pulumi:"timeouts"` - // The type of the database service (`kafka`, `mysql`, `opensearch`, `pg`, `redis`). - Type pulumi.StringInput `pulumi:"type"` - // The Exoscale Zone name. - Zone pulumi.StringInput `pulumi:"zone"` -} - -func (GetDatabaseURIOutputArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetDatabaseURIArgs)(nil)).Elem() -} - -// A collection of values returned by getDatabaseURI. -type GetDatabaseURIResultOutput struct{ *pulumi.OutputState } - -func (GetDatabaseURIResultOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetDatabaseURIResult)(nil)).Elem() -} - -func (o GetDatabaseURIResultOutput) ToGetDatabaseURIResultOutput() GetDatabaseURIResultOutput { - return o -} - -func (o GetDatabaseURIResultOutput) ToGetDatabaseURIResultOutputWithContext(ctx context.Context) GetDatabaseURIResultOutput { - return o -} - -// The ID of this resource. -func (o GetDatabaseURIResultOutput) Id() pulumi.StringOutput { - return o.ApplyT(func(v GetDatabaseURIResult) string { return v.Id }).(pulumi.StringOutput) -} - -// The database name to match. -func (o GetDatabaseURIResultOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v GetDatabaseURIResult) string { return v.Name }).(pulumi.StringOutput) -} - -func (o GetDatabaseURIResultOutput) Timeouts() GetDatabaseURITimeoutsPtrOutput { - return o.ApplyT(func(v GetDatabaseURIResult) *GetDatabaseURITimeouts { return v.Timeouts }).(GetDatabaseURITimeoutsPtrOutput) -} - -// The type of the database service (`kafka`, `mysql`, `opensearch`, `pg`, `redis`). -func (o GetDatabaseURIResultOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v GetDatabaseURIResult) string { return v.Type }).(pulumi.StringOutput) -} - -// The database service connection URI. -func (o GetDatabaseURIResultOutput) Uri() pulumi.StringOutput { - return o.ApplyT(func(v GetDatabaseURIResult) string { return v.Uri }).(pulumi.StringOutput) -} - -// The Exoscale Zone name. -func (o GetDatabaseURIResultOutput) Zone() pulumi.StringOutput { - return o.ApplyT(func(v GetDatabaseURIResult) string { return v.Zone }).(pulumi.StringOutput) -} - -func init() { - pulumi.RegisterOutputType(GetDatabaseURIResultOutput{}) -} diff --git a/sdk/go/exoscale/getDatabaseUri.go b/sdk/go/exoscale/getDatabaseUri.go new file mode 100644 index 00000000..6eb31272 --- /dev/null +++ b/sdk/go/exoscale/getDatabaseUri.go @@ -0,0 +1,124 @@ +// 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 exoscale + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" +) + +func GetDatabaseUri(ctx *pulumi.Context, args *GetDatabaseUriArgs, opts ...pulumi.InvokeOption) (*GetDatabaseUriResult, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetDatabaseUriResult + err := ctx.Invoke("exoscale:index/getDatabaseUri:getDatabaseUri", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +// A collection of arguments for invoking getDatabaseUri. +type GetDatabaseUriArgs struct { + // The database name to match. + Name string `pulumi:"name"` + Timeouts *GetDatabaseUriTimeouts `pulumi:"timeouts"` + // The type of the database service (`kafka`, `mysql`, `opensearch`, `pg`, `redis`). + Type string `pulumi:"type"` + // The Exoscale Zone name. + Zone string `pulumi:"zone"` +} + +// A collection of values returned by getDatabaseUri. +type GetDatabaseUriResult struct { + // The ID of this resource. + Id string `pulumi:"id"` + // The database name to match. + Name string `pulumi:"name"` + Timeouts *GetDatabaseUriTimeouts `pulumi:"timeouts"` + // The type of the database service (`kafka`, `mysql`, `opensearch`, `pg`, `redis`). + Type string `pulumi:"type"` + // The database service connection URI. + Uri string `pulumi:"uri"` + // The Exoscale Zone name. + Zone string `pulumi:"zone"` +} + +func GetDatabaseUriOutput(ctx *pulumi.Context, args GetDatabaseUriOutputArgs, opts ...pulumi.InvokeOption) GetDatabaseUriResultOutput { + return pulumi.ToOutputWithContext(context.Background(), args). + ApplyT(func(v interface{}) (GetDatabaseUriResult, error) { + args := v.(GetDatabaseUriArgs) + r, err := GetDatabaseUri(ctx, &args, opts...) + var s GetDatabaseUriResult + if r != nil { + s = *r + } + return s, err + }).(GetDatabaseUriResultOutput) +} + +// A collection of arguments for invoking getDatabaseUri. +type GetDatabaseUriOutputArgs struct { + // The database name to match. + Name pulumi.StringInput `pulumi:"name"` + Timeouts GetDatabaseUriTimeoutsPtrInput `pulumi:"timeouts"` + // The type of the database service (`kafka`, `mysql`, `opensearch`, `pg`, `redis`). + Type pulumi.StringInput `pulumi:"type"` + // The Exoscale Zone name. + Zone pulumi.StringInput `pulumi:"zone"` +} + +func (GetDatabaseUriOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetDatabaseUriArgs)(nil)).Elem() +} + +// A collection of values returned by getDatabaseUri. +type GetDatabaseUriResultOutput struct{ *pulumi.OutputState } + +func (GetDatabaseUriResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetDatabaseUriResult)(nil)).Elem() +} + +func (o GetDatabaseUriResultOutput) ToGetDatabaseUriResultOutput() GetDatabaseUriResultOutput { + return o +} + +func (o GetDatabaseUriResultOutput) ToGetDatabaseUriResultOutputWithContext(ctx context.Context) GetDatabaseUriResultOutput { + return o +} + +// The ID of this resource. +func (o GetDatabaseUriResultOutput) Id() pulumi.StringOutput { + return o.ApplyT(func(v GetDatabaseUriResult) string { return v.Id }).(pulumi.StringOutput) +} + +// The database name to match. +func (o GetDatabaseUriResultOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v GetDatabaseUriResult) string { return v.Name }).(pulumi.StringOutput) +} + +func (o GetDatabaseUriResultOutput) Timeouts() GetDatabaseUriTimeoutsPtrOutput { + return o.ApplyT(func(v GetDatabaseUriResult) *GetDatabaseUriTimeouts { return v.Timeouts }).(GetDatabaseUriTimeoutsPtrOutput) +} + +// The type of the database service (`kafka`, `mysql`, `opensearch`, `pg`, `redis`). +func (o GetDatabaseUriResultOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v GetDatabaseUriResult) string { return v.Type }).(pulumi.StringOutput) +} + +// The database service connection URI. +func (o GetDatabaseUriResultOutput) Uri() pulumi.StringOutput { + return o.ApplyT(func(v GetDatabaseUriResult) string { return v.Uri }).(pulumi.StringOutput) +} + +// The Exoscale Zone name. +func (o GetDatabaseUriResultOutput) Zone() pulumi.StringOutput { + return o.ApplyT(func(v GetDatabaseUriResult) string { return v.Zone }).(pulumi.StringOutput) +} + +func init() { + pulumi.RegisterOutputType(GetDatabaseUriResultOutput{}) +} diff --git a/sdk/go/exoscale/getDomain.go b/sdk/go/exoscale/getDomain.go index fd4edede..67e26c29 100644 --- a/sdk/go/exoscale/getDomain.go +++ b/sdk/go/exoscale/getDomain.go @@ -11,6 +11,39 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// Fetch Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domains data. +// +// Corresponding resource: exoscale_domain. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// myDomain, err := exoscale.LookupDomain(ctx, &exoscale.LookupDomainArgs{ +// Name: "my.domain", +// }, nil) +// if err != nil { +// return err +// } +// ctx.Export("myDomainId", myDomain.Id) +// return nil +// }) +// } +// +// ``` +// +// Please refer to the examples +// directory for complete configuration examples. func LookupDomain(ctx *pulumi.Context, args *LookupDomainArgs, opts ...pulumi.InvokeOption) (*LookupDomainResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupDomainResult diff --git a/sdk/go/exoscale/getDomainRecord.go b/sdk/go/exoscale/getDomainRecord.go index 3e65b1bd..24ab9ed9 100644 --- a/sdk/go/exoscale/getDomainRecord.go +++ b/sdk/go/exoscale/getDomainRecord.go @@ -11,6 +11,9 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// Fetch Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domain Records data. +// +// Corresponding resource: exoscale_domain_record. func LookupDomainRecord(ctx *pulumi.Context, args *LookupDomainRecordArgs, opts ...pulumi.InvokeOption) (*LookupDomainRecordResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupDomainRecordResult diff --git a/sdk/go/exoscale/getElasticIP.go b/sdk/go/exoscale/getElasticIP.go deleted file mode 100644 index 289f21d4..00000000 --- a/sdk/go/exoscale/getElasticIP.go +++ /dev/null @@ -1,149 +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 exoscale - -import ( - "context" - "reflect" - - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" -) - -func LookupElasticIP(ctx *pulumi.Context, args *LookupElasticIPArgs, opts ...pulumi.InvokeOption) (*LookupElasticIPResult, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupElasticIPResult - err := ctx.Invoke("exoscale:index/getElasticIP:getElasticIP", args, &rv, opts...) - if err != nil { - return nil, err - } - return &rv, nil -} - -// A collection of arguments for invoking getElasticIP. -type LookupElasticIPArgs struct { - // The Elastic IP (EIP) ID to match (conflicts with `ipAddress` and `labels`). - Id *string `pulumi:"id"` - // The EIP IPv4 or IPv6 address to match (conflicts with `id` and `labels`). - IpAddress *string `pulumi:"ipAddress"` - // The EIP labels to match (conflicts with `ipAddress` and `id`). - Labels map[string]string `pulumi:"labels"` - // The Exocale [Zone](https://www.exoscale.com/datacenters/) name. - Zone string `pulumi:"zone"` -} - -// A collection of values returned by getElasticIP. -type LookupElasticIPResult struct { - // The Elastic IP (EIP) address family (`inet4` or `inet6`). - AddressFamily string `pulumi:"addressFamily"` - // The Elastic IP (EIP) CIDR. - Cidr string `pulumi:"cidr"` - // The Elastic IP (EIP) description. - Description string `pulumi:"description"` - // The *managed* EIP healthcheck configuration. - Healthchecks []GetElasticIPHealthcheck `pulumi:"healthchecks"` - // The Elastic IP (EIP) ID to match (conflicts with `ipAddress` and `labels`). - Id *string `pulumi:"id"` - // The EIP IPv4 or IPv6 address to match (conflicts with `id` and `labels`). - IpAddress *string `pulumi:"ipAddress"` - // The EIP labels to match (conflicts with `ipAddress` and `id`). - Labels map[string]string `pulumi:"labels"` - // Domain name for reverse DNS record. - ReverseDns string `pulumi:"reverseDns"` - // The Exocale [Zone](https://www.exoscale.com/datacenters/) name. - Zone string `pulumi:"zone"` -} - -func LookupElasticIPOutput(ctx *pulumi.Context, args LookupElasticIPOutputArgs, opts ...pulumi.InvokeOption) LookupElasticIPResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupElasticIPResult, error) { - args := v.(LookupElasticIPArgs) - r, err := LookupElasticIP(ctx, &args, opts...) - var s LookupElasticIPResult - if r != nil { - s = *r - } - return s, err - }).(LookupElasticIPResultOutput) -} - -// A collection of arguments for invoking getElasticIP. -type LookupElasticIPOutputArgs struct { - // The Elastic IP (EIP) ID to match (conflicts with `ipAddress` and `labels`). - Id pulumi.StringPtrInput `pulumi:"id"` - // The EIP IPv4 or IPv6 address to match (conflicts with `id` and `labels`). - IpAddress pulumi.StringPtrInput `pulumi:"ipAddress"` - // The EIP labels to match (conflicts with `ipAddress` and `id`). - Labels pulumi.StringMapInput `pulumi:"labels"` - // The Exocale [Zone](https://www.exoscale.com/datacenters/) name. - Zone pulumi.StringInput `pulumi:"zone"` -} - -func (LookupElasticIPOutputArgs) ElementType() reflect.Type { - return reflect.TypeOf((*LookupElasticIPArgs)(nil)).Elem() -} - -// A collection of values returned by getElasticIP. -type LookupElasticIPResultOutput struct{ *pulumi.OutputState } - -func (LookupElasticIPResultOutput) ElementType() reflect.Type { - return reflect.TypeOf((*LookupElasticIPResult)(nil)).Elem() -} - -func (o LookupElasticIPResultOutput) ToLookupElasticIPResultOutput() LookupElasticIPResultOutput { - return o -} - -func (o LookupElasticIPResultOutput) ToLookupElasticIPResultOutputWithContext(ctx context.Context) LookupElasticIPResultOutput { - return o -} - -// The Elastic IP (EIP) address family (`inet4` or `inet6`). -func (o LookupElasticIPResultOutput) AddressFamily() pulumi.StringOutput { - return o.ApplyT(func(v LookupElasticIPResult) string { return v.AddressFamily }).(pulumi.StringOutput) -} - -// The Elastic IP (EIP) CIDR. -func (o LookupElasticIPResultOutput) Cidr() pulumi.StringOutput { - return o.ApplyT(func(v LookupElasticIPResult) string { return v.Cidr }).(pulumi.StringOutput) -} - -// The Elastic IP (EIP) description. -func (o LookupElasticIPResultOutput) Description() pulumi.StringOutput { - return o.ApplyT(func(v LookupElasticIPResult) string { return v.Description }).(pulumi.StringOutput) -} - -// The *managed* EIP healthcheck configuration. -func (o LookupElasticIPResultOutput) Healthchecks() GetElasticIPHealthcheckArrayOutput { - return o.ApplyT(func(v LookupElasticIPResult) []GetElasticIPHealthcheck { return v.Healthchecks }).(GetElasticIPHealthcheckArrayOutput) -} - -// The Elastic IP (EIP) ID to match (conflicts with `ipAddress` and `labels`). -func (o LookupElasticIPResultOutput) Id() pulumi.StringPtrOutput { - return o.ApplyT(func(v LookupElasticIPResult) *string { return v.Id }).(pulumi.StringPtrOutput) -} - -// The EIP IPv4 or IPv6 address to match (conflicts with `id` and `labels`). -func (o LookupElasticIPResultOutput) IpAddress() pulumi.StringPtrOutput { - return o.ApplyT(func(v LookupElasticIPResult) *string { return v.IpAddress }).(pulumi.StringPtrOutput) -} - -// The EIP labels to match (conflicts with `ipAddress` and `id`). -func (o LookupElasticIPResultOutput) Labels() pulumi.StringMapOutput { - return o.ApplyT(func(v LookupElasticIPResult) map[string]string { return v.Labels }).(pulumi.StringMapOutput) -} - -// Domain name for reverse DNS record. -func (o LookupElasticIPResultOutput) ReverseDns() pulumi.StringOutput { - return o.ApplyT(func(v LookupElasticIPResult) string { return v.ReverseDns }).(pulumi.StringOutput) -} - -// The Exocale [Zone](https://www.exoscale.com/datacenters/) name. -func (o LookupElasticIPResultOutput) Zone() pulumi.StringOutput { - return o.ApplyT(func(v LookupElasticIPResult) string { return v.Zone }).(pulumi.StringOutput) -} - -func init() { - pulumi.RegisterOutputType(LookupElasticIPResultOutput{}) -} diff --git a/sdk/go/exoscale/getElasticIp.go b/sdk/go/exoscale/getElasticIp.go new file mode 100644 index 00000000..16c39ffd --- /dev/null +++ b/sdk/go/exoscale/getElasticIp.go @@ -0,0 +1,183 @@ +// 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 exoscale + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" +) + +// Fetch Exoscale [Elastic IPs (EIP)](https://community.exoscale.com/documentation/compute/eip/) data. +// +// Corresponding resource: exoscale_elastic_ip. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// myElasticIp, err := exoscale.LookupElasticIp(ctx, &exoscale.LookupElasticIpArgs{ +// Zone: "ch-gva-2", +// IpAddress: pulumi.StringRef("1.2.3.4"), +// }, nil) +// if err != nil { +// return err +// } +// ctx.Export("myElasticIpId", myElasticIp.Id) +// return nil +// }) +// } +// +// ``` +// +// Please refer to the examples +// directory for complete configuration examples. +func LookupElasticIp(ctx *pulumi.Context, args *LookupElasticIpArgs, opts ...pulumi.InvokeOption) (*LookupElasticIpResult, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupElasticIpResult + err := ctx.Invoke("exoscale:index/getElasticIp:getElasticIp", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +// A collection of arguments for invoking getElasticIp. +type LookupElasticIpArgs struct { + // The Elastic IP (EIP) ID to match (conflicts with `ipAddress` and `labels`). + Id *string `pulumi:"id"` + // The EIP IPv4 or IPv6 address to match (conflicts with `id` and `labels`). + IpAddress *string `pulumi:"ipAddress"` + // The EIP labels to match (conflicts with `ipAddress` and `id`). + Labels map[string]string `pulumi:"labels"` + // The Exocale [Zone](https://www.exoscale.com/datacenters/) name. + Zone string `pulumi:"zone"` +} + +// A collection of values returned by getElasticIp. +type LookupElasticIpResult struct { + // The Elastic IP (EIP) address family (`inet4` or `inet6`). + AddressFamily string `pulumi:"addressFamily"` + // The Elastic IP (EIP) CIDR. + Cidr string `pulumi:"cidr"` + // The Elastic IP (EIP) description. + Description string `pulumi:"description"` + // The *managed* EIP healthcheck configuration. + Healthchecks []GetElasticIpHealthcheck `pulumi:"healthchecks"` + // The Elastic IP (EIP) ID to match (conflicts with `ipAddress` and `labels`). + Id *string `pulumi:"id"` + // The EIP IPv4 or IPv6 address to match (conflicts with `id` and `labels`). + IpAddress *string `pulumi:"ipAddress"` + // The EIP labels to match (conflicts with `ipAddress` and `id`). + Labels map[string]string `pulumi:"labels"` + // Domain name for reverse DNS record. + ReverseDns string `pulumi:"reverseDns"` + // The Exocale [Zone](https://www.exoscale.com/datacenters/) name. + Zone string `pulumi:"zone"` +} + +func LookupElasticIpOutput(ctx *pulumi.Context, args LookupElasticIpOutputArgs, opts ...pulumi.InvokeOption) LookupElasticIpResultOutput { + return pulumi.ToOutputWithContext(context.Background(), args). + ApplyT(func(v interface{}) (LookupElasticIpResult, error) { + args := v.(LookupElasticIpArgs) + r, err := LookupElasticIp(ctx, &args, opts...) + var s LookupElasticIpResult + if r != nil { + s = *r + } + return s, err + }).(LookupElasticIpResultOutput) +} + +// A collection of arguments for invoking getElasticIp. +type LookupElasticIpOutputArgs struct { + // The Elastic IP (EIP) ID to match (conflicts with `ipAddress` and `labels`). + Id pulumi.StringPtrInput `pulumi:"id"` + // The EIP IPv4 or IPv6 address to match (conflicts with `id` and `labels`). + IpAddress pulumi.StringPtrInput `pulumi:"ipAddress"` + // The EIP labels to match (conflicts with `ipAddress` and `id`). + Labels pulumi.StringMapInput `pulumi:"labels"` + // The Exocale [Zone](https://www.exoscale.com/datacenters/) name. + Zone pulumi.StringInput `pulumi:"zone"` +} + +func (LookupElasticIpOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LookupElasticIpArgs)(nil)).Elem() +} + +// A collection of values returned by getElasticIp. +type LookupElasticIpResultOutput struct{ *pulumi.OutputState } + +func (LookupElasticIpResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LookupElasticIpResult)(nil)).Elem() +} + +func (o LookupElasticIpResultOutput) ToLookupElasticIpResultOutput() LookupElasticIpResultOutput { + return o +} + +func (o LookupElasticIpResultOutput) ToLookupElasticIpResultOutputWithContext(ctx context.Context) LookupElasticIpResultOutput { + return o +} + +// The Elastic IP (EIP) address family (`inet4` or `inet6`). +func (o LookupElasticIpResultOutput) AddressFamily() pulumi.StringOutput { + return o.ApplyT(func(v LookupElasticIpResult) string { return v.AddressFamily }).(pulumi.StringOutput) +} + +// The Elastic IP (EIP) CIDR. +func (o LookupElasticIpResultOutput) Cidr() pulumi.StringOutput { + return o.ApplyT(func(v LookupElasticIpResult) string { return v.Cidr }).(pulumi.StringOutput) +} + +// The Elastic IP (EIP) description. +func (o LookupElasticIpResultOutput) Description() pulumi.StringOutput { + return o.ApplyT(func(v LookupElasticIpResult) string { return v.Description }).(pulumi.StringOutput) +} + +// The *managed* EIP healthcheck configuration. +func (o LookupElasticIpResultOutput) Healthchecks() GetElasticIpHealthcheckArrayOutput { + return o.ApplyT(func(v LookupElasticIpResult) []GetElasticIpHealthcheck { return v.Healthchecks }).(GetElasticIpHealthcheckArrayOutput) +} + +// The Elastic IP (EIP) ID to match (conflicts with `ipAddress` and `labels`). +func (o LookupElasticIpResultOutput) Id() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupElasticIpResult) *string { return v.Id }).(pulumi.StringPtrOutput) +} + +// The EIP IPv4 or IPv6 address to match (conflicts with `id` and `labels`). +func (o LookupElasticIpResultOutput) IpAddress() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupElasticIpResult) *string { return v.IpAddress }).(pulumi.StringPtrOutput) +} + +// The EIP labels to match (conflicts with `ipAddress` and `id`). +func (o LookupElasticIpResultOutput) Labels() pulumi.StringMapOutput { + return o.ApplyT(func(v LookupElasticIpResult) map[string]string { return v.Labels }).(pulumi.StringMapOutput) +} + +// Domain name for reverse DNS record. +func (o LookupElasticIpResultOutput) ReverseDns() pulumi.StringOutput { + return o.ApplyT(func(v LookupElasticIpResult) string { return v.ReverseDns }).(pulumi.StringOutput) +} + +// The Exocale [Zone](https://www.exoscale.com/datacenters/) name. +func (o LookupElasticIpResultOutput) Zone() pulumi.StringOutput { + return o.ApplyT(func(v LookupElasticIpResult) string { return v.Zone }).(pulumi.StringOutput) +} + +func init() { + pulumi.RegisterOutputType(LookupElasticIpResultOutput{}) +} diff --git a/sdk/go/exoscale/getIAMAPIKey.go b/sdk/go/exoscale/getIAMAPIKey.go deleted file mode 100644 index 23790c64..00000000 --- a/sdk/go/exoscale/getIAMAPIKey.go +++ /dev/null @@ -1,112 +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 exoscale - -import ( - "context" - "reflect" - - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" -) - -// Fetch Exoscale [IAM](https://community.exoscale.com/documentation/iam/) API Key. -// -// Corresponding resource: exoscale_iam_role. -func LookupIAMAPIKey(ctx *pulumi.Context, args *LookupIAMAPIKeyArgs, opts ...pulumi.InvokeOption) (*LookupIAMAPIKeyResult, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupIAMAPIKeyResult - err := ctx.Invoke("exoscale:index/getIAMAPIKey:getIAMAPIKey", args, &rv, opts...) - if err != nil { - return nil, err - } - return &rv, nil -} - -// A collection of arguments for invoking getIAMAPIKey. -type LookupIAMAPIKeyArgs struct { - // The IAM API Key to match. - Key string `pulumi:"key"` - Timeouts *GetIAMAPIKeyTimeouts `pulumi:"timeouts"` -} - -// A collection of values returned by getIAMAPIKey. -type LookupIAMAPIKeyResult struct { - // The ID of this resource. - Id string `pulumi:"id"` - // The IAM API Key to match. - Key string `pulumi:"key"` - // IAM API Key name. - Name string `pulumi:"name"` - // IAM API Key role ID. - RoleId string `pulumi:"roleId"` - Timeouts *GetIAMAPIKeyTimeouts `pulumi:"timeouts"` -} - -func LookupIAMAPIKeyOutput(ctx *pulumi.Context, args LookupIAMAPIKeyOutputArgs, opts ...pulumi.InvokeOption) LookupIAMAPIKeyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupIAMAPIKeyResult, error) { - args := v.(LookupIAMAPIKeyArgs) - r, err := LookupIAMAPIKey(ctx, &args, opts...) - var s LookupIAMAPIKeyResult - if r != nil { - s = *r - } - return s, err - }).(LookupIAMAPIKeyResultOutput) -} - -// A collection of arguments for invoking getIAMAPIKey. -type LookupIAMAPIKeyOutputArgs struct { - // The IAM API Key to match. - Key pulumi.StringInput `pulumi:"key"` - Timeouts GetIAMAPIKeyTimeoutsPtrInput `pulumi:"timeouts"` -} - -func (LookupIAMAPIKeyOutputArgs) ElementType() reflect.Type { - return reflect.TypeOf((*LookupIAMAPIKeyArgs)(nil)).Elem() -} - -// A collection of values returned by getIAMAPIKey. -type LookupIAMAPIKeyResultOutput struct{ *pulumi.OutputState } - -func (LookupIAMAPIKeyResultOutput) ElementType() reflect.Type { - return reflect.TypeOf((*LookupIAMAPIKeyResult)(nil)).Elem() -} - -func (o LookupIAMAPIKeyResultOutput) ToLookupIAMAPIKeyResultOutput() LookupIAMAPIKeyResultOutput { - return o -} - -func (o LookupIAMAPIKeyResultOutput) ToLookupIAMAPIKeyResultOutputWithContext(ctx context.Context) LookupIAMAPIKeyResultOutput { - return o -} - -// The ID of this resource. -func (o LookupIAMAPIKeyResultOutput) Id() pulumi.StringOutput { - return o.ApplyT(func(v LookupIAMAPIKeyResult) string { return v.Id }).(pulumi.StringOutput) -} - -// The IAM API Key to match. -func (o LookupIAMAPIKeyResultOutput) Key() pulumi.StringOutput { - return o.ApplyT(func(v LookupIAMAPIKeyResult) string { return v.Key }).(pulumi.StringOutput) -} - -// IAM API Key name. -func (o LookupIAMAPIKeyResultOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v LookupIAMAPIKeyResult) string { return v.Name }).(pulumi.StringOutput) -} - -// IAM API Key role ID. -func (o LookupIAMAPIKeyResultOutput) RoleId() pulumi.StringOutput { - return o.ApplyT(func(v LookupIAMAPIKeyResult) string { return v.RoleId }).(pulumi.StringOutput) -} - -func (o LookupIAMAPIKeyResultOutput) Timeouts() GetIAMAPIKeyTimeoutsPtrOutput { - return o.ApplyT(func(v LookupIAMAPIKeyResult) *GetIAMAPIKeyTimeouts { return v.Timeouts }).(GetIAMAPIKeyTimeoutsPtrOutput) -} - -func init() { - pulumi.RegisterOutputType(LookupIAMAPIKeyResultOutput{}) -} diff --git a/sdk/go/exoscale/getIAMOrgPolicy.go b/sdk/go/exoscale/getIAMOrgPolicy.go deleted file mode 100644 index 427709f7..00000000 --- a/sdk/go/exoscale/getIAMOrgPolicy.go +++ /dev/null @@ -1,101 +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 exoscale - -import ( - "context" - "reflect" - - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" -) - -// Fetch Exoscale [IAM](https://community.exoscale.com/documentation/iam/) Organization Policy. -// -// Corresponding resource: exoscale_iam_org_policy. -func LookupIAMOrgPolicy(ctx *pulumi.Context, args *LookupIAMOrgPolicyArgs, opts ...pulumi.InvokeOption) (*LookupIAMOrgPolicyResult, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupIAMOrgPolicyResult - err := ctx.Invoke("exoscale:index/getIAMOrgPolicy:getIAMOrgPolicy", args, &rv, opts...) - if err != nil { - return nil, err - } - return &rv, nil -} - -// A collection of arguments for invoking getIAMOrgPolicy. -type LookupIAMOrgPolicyArgs struct { - Timeouts *GetIAMOrgPolicyTimeouts `pulumi:"timeouts"` -} - -// A collection of values returned by getIAMOrgPolicy. -type LookupIAMOrgPolicyResult struct { - // Default service strategy (`allow` or `deny`). - DefaultServiceStrategy string `pulumi:"defaultServiceStrategy"` - // The ID of this resource. - Id string `pulumi:"id"` - // IAM policy services. - Services map[string]GetIAMOrgPolicyServices `pulumi:"services"` - Timeouts *GetIAMOrgPolicyTimeouts `pulumi:"timeouts"` -} - -func LookupIAMOrgPolicyOutput(ctx *pulumi.Context, args LookupIAMOrgPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupIAMOrgPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupIAMOrgPolicyResult, error) { - args := v.(LookupIAMOrgPolicyArgs) - r, err := LookupIAMOrgPolicy(ctx, &args, opts...) - var s LookupIAMOrgPolicyResult - if r != nil { - s = *r - } - return s, err - }).(LookupIAMOrgPolicyResultOutput) -} - -// A collection of arguments for invoking getIAMOrgPolicy. -type LookupIAMOrgPolicyOutputArgs struct { - Timeouts GetIAMOrgPolicyTimeoutsPtrInput `pulumi:"timeouts"` -} - -func (LookupIAMOrgPolicyOutputArgs) ElementType() reflect.Type { - return reflect.TypeOf((*LookupIAMOrgPolicyArgs)(nil)).Elem() -} - -// A collection of values returned by getIAMOrgPolicy. -type LookupIAMOrgPolicyResultOutput struct{ *pulumi.OutputState } - -func (LookupIAMOrgPolicyResultOutput) ElementType() reflect.Type { - return reflect.TypeOf((*LookupIAMOrgPolicyResult)(nil)).Elem() -} - -func (o LookupIAMOrgPolicyResultOutput) ToLookupIAMOrgPolicyResultOutput() LookupIAMOrgPolicyResultOutput { - return o -} - -func (o LookupIAMOrgPolicyResultOutput) ToLookupIAMOrgPolicyResultOutputWithContext(ctx context.Context) LookupIAMOrgPolicyResultOutput { - return o -} - -// Default service strategy (`allow` or `deny`). -func (o LookupIAMOrgPolicyResultOutput) DefaultServiceStrategy() pulumi.StringOutput { - return o.ApplyT(func(v LookupIAMOrgPolicyResult) string { return v.DefaultServiceStrategy }).(pulumi.StringOutput) -} - -// The ID of this resource. -func (o LookupIAMOrgPolicyResultOutput) Id() pulumi.StringOutput { - return o.ApplyT(func(v LookupIAMOrgPolicyResult) string { return v.Id }).(pulumi.StringOutput) -} - -// IAM policy services. -func (o LookupIAMOrgPolicyResultOutput) Services() GetIAMOrgPolicyServicesMapOutput { - return o.ApplyT(func(v LookupIAMOrgPolicyResult) map[string]GetIAMOrgPolicyServices { return v.Services }).(GetIAMOrgPolicyServicesMapOutput) -} - -func (o LookupIAMOrgPolicyResultOutput) Timeouts() GetIAMOrgPolicyTimeoutsPtrOutput { - return o.ApplyT(func(v LookupIAMOrgPolicyResult) *GetIAMOrgPolicyTimeouts { return v.Timeouts }).(GetIAMOrgPolicyTimeoutsPtrOutput) -} - -func init() { - pulumi.RegisterOutputType(LookupIAMOrgPolicyResultOutput{}) -} diff --git a/sdk/go/exoscale/getIAMRole.go b/sdk/go/exoscale/getIAMRole.go deleted file mode 100644 index 5c909ddc..00000000 --- a/sdk/go/exoscale/getIAMRole.go +++ /dev/null @@ -1,137 +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 exoscale - -import ( - "context" - "reflect" - - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" -) - -// Fetch Exoscale [IAM](https://community.exoscale.com/documentation/iam/) Role. -// -// Corresponding resource: exoscale_iam_role. -func LookupIAMRole(ctx *pulumi.Context, args *LookupIAMRoleArgs, opts ...pulumi.InvokeOption) (*LookupIAMRoleResult, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupIAMRoleResult - err := ctx.Invoke("exoscale:index/getIAMRole:getIAMRole", args, &rv, opts...) - if err != nil { - return nil, err - } - return &rv, nil -} - -// A collection of arguments for invoking getIAMRole. -type LookupIAMRoleArgs struct { - // The role ID to match (conflicts with `name`). - Id *string `pulumi:"id"` - // the role name to match (conflicts with `id`). - Name *string `pulumi:"name"` - Timeouts *GetIAMRoleTimeouts `pulumi:"timeouts"` -} - -// A collection of values returned by getIAMRole. -type LookupIAMRoleResult struct { - // A free-form text describing the IAM Role - Description string `pulumi:"description"` - // Defines if IAM Role Policy is editable or not. - Editable bool `pulumi:"editable"` - // The role ID to match (conflicts with `name`). - Id string `pulumi:"id"` - // IAM Role labels. - Labels map[string]string `pulumi:"labels"` - // the role name to match (conflicts with `id`). - Name string `pulumi:"name"` - // IAM Role permissions. - Permissions []string `pulumi:"permissions"` - // IAM Policy. - Policy GetIAMRolePolicy `pulumi:"policy"` - Timeouts *GetIAMRoleTimeouts `pulumi:"timeouts"` -} - -func LookupIAMRoleOutput(ctx *pulumi.Context, args LookupIAMRoleOutputArgs, opts ...pulumi.InvokeOption) LookupIAMRoleResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupIAMRoleResult, error) { - args := v.(LookupIAMRoleArgs) - r, err := LookupIAMRole(ctx, &args, opts...) - var s LookupIAMRoleResult - if r != nil { - s = *r - } - return s, err - }).(LookupIAMRoleResultOutput) -} - -// A collection of arguments for invoking getIAMRole. -type LookupIAMRoleOutputArgs struct { - // The role ID to match (conflicts with `name`). - Id pulumi.StringPtrInput `pulumi:"id"` - // the role name to match (conflicts with `id`). - Name pulumi.StringPtrInput `pulumi:"name"` - Timeouts GetIAMRoleTimeoutsPtrInput `pulumi:"timeouts"` -} - -func (LookupIAMRoleOutputArgs) ElementType() reflect.Type { - return reflect.TypeOf((*LookupIAMRoleArgs)(nil)).Elem() -} - -// A collection of values returned by getIAMRole. -type LookupIAMRoleResultOutput struct{ *pulumi.OutputState } - -func (LookupIAMRoleResultOutput) ElementType() reflect.Type { - return reflect.TypeOf((*LookupIAMRoleResult)(nil)).Elem() -} - -func (o LookupIAMRoleResultOutput) ToLookupIAMRoleResultOutput() LookupIAMRoleResultOutput { - return o -} - -func (o LookupIAMRoleResultOutput) ToLookupIAMRoleResultOutputWithContext(ctx context.Context) LookupIAMRoleResultOutput { - return o -} - -// A free-form text describing the IAM Role -func (o LookupIAMRoleResultOutput) Description() pulumi.StringOutput { - return o.ApplyT(func(v LookupIAMRoleResult) string { return v.Description }).(pulumi.StringOutput) -} - -// Defines if IAM Role Policy is editable or not. -func (o LookupIAMRoleResultOutput) Editable() pulumi.BoolOutput { - return o.ApplyT(func(v LookupIAMRoleResult) bool { return v.Editable }).(pulumi.BoolOutput) -} - -// The role ID to match (conflicts with `name`). -func (o LookupIAMRoleResultOutput) Id() pulumi.StringOutput { - return o.ApplyT(func(v LookupIAMRoleResult) string { return v.Id }).(pulumi.StringOutput) -} - -// IAM Role labels. -func (o LookupIAMRoleResultOutput) Labels() pulumi.StringMapOutput { - return o.ApplyT(func(v LookupIAMRoleResult) map[string]string { return v.Labels }).(pulumi.StringMapOutput) -} - -// the role name to match (conflicts with `id`). -func (o LookupIAMRoleResultOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v LookupIAMRoleResult) string { return v.Name }).(pulumi.StringOutput) -} - -// IAM Role permissions. -func (o LookupIAMRoleResultOutput) Permissions() pulumi.StringArrayOutput { - return o.ApplyT(func(v LookupIAMRoleResult) []string { return v.Permissions }).(pulumi.StringArrayOutput) -} - -// IAM Policy. -func (o LookupIAMRoleResultOutput) Policy() GetIAMRolePolicyOutput { - return o.ApplyT(func(v LookupIAMRoleResult) GetIAMRolePolicy { return v.Policy }).(GetIAMRolePolicyOutput) -} - -func (o LookupIAMRoleResultOutput) Timeouts() GetIAMRoleTimeoutsPtrOutput { - return o.ApplyT(func(v LookupIAMRoleResult) *GetIAMRoleTimeouts { return v.Timeouts }).(GetIAMRoleTimeoutsPtrOutput) -} - -func init() { - pulumi.RegisterOutputType(LookupIAMRoleResultOutput{}) -} diff --git a/sdk/go/exoscale/getIamApiKey.go b/sdk/go/exoscale/getIamApiKey.go new file mode 100644 index 00000000..14ea8b02 --- /dev/null +++ b/sdk/go/exoscale/getIamApiKey.go @@ -0,0 +1,112 @@ +// 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 exoscale + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" +) + +// Fetch Exoscale [IAM](https://community.exoscale.com/documentation/iam/) API Key. +// +// Corresponding resource: exoscale_iam_role. +func LookupIamApiKey(ctx *pulumi.Context, args *LookupIamApiKeyArgs, opts ...pulumi.InvokeOption) (*LookupIamApiKeyResult, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupIamApiKeyResult + err := ctx.Invoke("exoscale:index/getIamApiKey:getIamApiKey", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +// A collection of arguments for invoking getIamApiKey. +type LookupIamApiKeyArgs struct { + // The IAM API Key to match. + Key string `pulumi:"key"` + Timeouts *GetIamApiKeyTimeouts `pulumi:"timeouts"` +} + +// A collection of values returned by getIamApiKey. +type LookupIamApiKeyResult struct { + // The ID of this resource. + Id string `pulumi:"id"` + // The IAM API Key to match. + Key string `pulumi:"key"` + // IAM API Key name. + Name string `pulumi:"name"` + // IAM API Key role ID. + RoleId string `pulumi:"roleId"` + Timeouts *GetIamApiKeyTimeouts `pulumi:"timeouts"` +} + +func LookupIamApiKeyOutput(ctx *pulumi.Context, args LookupIamApiKeyOutputArgs, opts ...pulumi.InvokeOption) LookupIamApiKeyResultOutput { + return pulumi.ToOutputWithContext(context.Background(), args). + ApplyT(func(v interface{}) (LookupIamApiKeyResult, error) { + args := v.(LookupIamApiKeyArgs) + r, err := LookupIamApiKey(ctx, &args, opts...) + var s LookupIamApiKeyResult + if r != nil { + s = *r + } + return s, err + }).(LookupIamApiKeyResultOutput) +} + +// A collection of arguments for invoking getIamApiKey. +type LookupIamApiKeyOutputArgs struct { + // The IAM API Key to match. + Key pulumi.StringInput `pulumi:"key"` + Timeouts GetIamApiKeyTimeoutsPtrInput `pulumi:"timeouts"` +} + +func (LookupIamApiKeyOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LookupIamApiKeyArgs)(nil)).Elem() +} + +// A collection of values returned by getIamApiKey. +type LookupIamApiKeyResultOutput struct{ *pulumi.OutputState } + +func (LookupIamApiKeyResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LookupIamApiKeyResult)(nil)).Elem() +} + +func (o LookupIamApiKeyResultOutput) ToLookupIamApiKeyResultOutput() LookupIamApiKeyResultOutput { + return o +} + +func (o LookupIamApiKeyResultOutput) ToLookupIamApiKeyResultOutputWithContext(ctx context.Context) LookupIamApiKeyResultOutput { + return o +} + +// The ID of this resource. +func (o LookupIamApiKeyResultOutput) Id() pulumi.StringOutput { + return o.ApplyT(func(v LookupIamApiKeyResult) string { return v.Id }).(pulumi.StringOutput) +} + +// The IAM API Key to match. +func (o LookupIamApiKeyResultOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v LookupIamApiKeyResult) string { return v.Key }).(pulumi.StringOutput) +} + +// IAM API Key name. +func (o LookupIamApiKeyResultOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v LookupIamApiKeyResult) string { return v.Name }).(pulumi.StringOutput) +} + +// IAM API Key role ID. +func (o LookupIamApiKeyResultOutput) RoleId() pulumi.StringOutput { + return o.ApplyT(func(v LookupIamApiKeyResult) string { return v.RoleId }).(pulumi.StringOutput) +} + +func (o LookupIamApiKeyResultOutput) Timeouts() GetIamApiKeyTimeoutsPtrOutput { + return o.ApplyT(func(v LookupIamApiKeyResult) *GetIamApiKeyTimeouts { return v.Timeouts }).(GetIamApiKeyTimeoutsPtrOutput) +} + +func init() { + pulumi.RegisterOutputType(LookupIamApiKeyResultOutput{}) +} diff --git a/sdk/go/exoscale/getIamOrgPolicy.go b/sdk/go/exoscale/getIamOrgPolicy.go new file mode 100644 index 00000000..224f42a0 --- /dev/null +++ b/sdk/go/exoscale/getIamOrgPolicy.go @@ -0,0 +1,101 @@ +// 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 exoscale + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" +) + +// Fetch Exoscale [IAM](https://community.exoscale.com/documentation/iam/) Organization Policy. +// +// Corresponding resource: exoscale_iam_org_policy. +func LookupIamOrgPolicy(ctx *pulumi.Context, args *LookupIamOrgPolicyArgs, opts ...pulumi.InvokeOption) (*LookupIamOrgPolicyResult, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupIamOrgPolicyResult + err := ctx.Invoke("exoscale:index/getIamOrgPolicy:getIamOrgPolicy", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +// A collection of arguments for invoking getIamOrgPolicy. +type LookupIamOrgPolicyArgs struct { + Timeouts *GetIamOrgPolicyTimeouts `pulumi:"timeouts"` +} + +// A collection of values returned by getIamOrgPolicy. +type LookupIamOrgPolicyResult struct { + // Default service strategy (`allow` or `deny`). + DefaultServiceStrategy string `pulumi:"defaultServiceStrategy"` + // The ID of this resource. + Id string `pulumi:"id"` + // IAM policy services. + Services map[string]GetIamOrgPolicyServices `pulumi:"services"` + Timeouts *GetIamOrgPolicyTimeouts `pulumi:"timeouts"` +} + +func LookupIamOrgPolicyOutput(ctx *pulumi.Context, args LookupIamOrgPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupIamOrgPolicyResultOutput { + return pulumi.ToOutputWithContext(context.Background(), args). + ApplyT(func(v interface{}) (LookupIamOrgPolicyResult, error) { + args := v.(LookupIamOrgPolicyArgs) + r, err := LookupIamOrgPolicy(ctx, &args, opts...) + var s LookupIamOrgPolicyResult + if r != nil { + s = *r + } + return s, err + }).(LookupIamOrgPolicyResultOutput) +} + +// A collection of arguments for invoking getIamOrgPolicy. +type LookupIamOrgPolicyOutputArgs struct { + Timeouts GetIamOrgPolicyTimeoutsPtrInput `pulumi:"timeouts"` +} + +func (LookupIamOrgPolicyOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LookupIamOrgPolicyArgs)(nil)).Elem() +} + +// A collection of values returned by getIamOrgPolicy. +type LookupIamOrgPolicyResultOutput struct{ *pulumi.OutputState } + +func (LookupIamOrgPolicyResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LookupIamOrgPolicyResult)(nil)).Elem() +} + +func (o LookupIamOrgPolicyResultOutput) ToLookupIamOrgPolicyResultOutput() LookupIamOrgPolicyResultOutput { + return o +} + +func (o LookupIamOrgPolicyResultOutput) ToLookupIamOrgPolicyResultOutputWithContext(ctx context.Context) LookupIamOrgPolicyResultOutput { + return o +} + +// Default service strategy (`allow` or `deny`). +func (o LookupIamOrgPolicyResultOutput) DefaultServiceStrategy() pulumi.StringOutput { + return o.ApplyT(func(v LookupIamOrgPolicyResult) string { return v.DefaultServiceStrategy }).(pulumi.StringOutput) +} + +// The ID of this resource. +func (o LookupIamOrgPolicyResultOutput) Id() pulumi.StringOutput { + return o.ApplyT(func(v LookupIamOrgPolicyResult) string { return v.Id }).(pulumi.StringOutput) +} + +// IAM policy services. +func (o LookupIamOrgPolicyResultOutput) Services() GetIamOrgPolicyServicesMapOutput { + return o.ApplyT(func(v LookupIamOrgPolicyResult) map[string]GetIamOrgPolicyServices { return v.Services }).(GetIamOrgPolicyServicesMapOutput) +} + +func (o LookupIamOrgPolicyResultOutput) Timeouts() GetIamOrgPolicyTimeoutsPtrOutput { + return o.ApplyT(func(v LookupIamOrgPolicyResult) *GetIamOrgPolicyTimeouts { return v.Timeouts }).(GetIamOrgPolicyTimeoutsPtrOutput) +} + +func init() { + pulumi.RegisterOutputType(LookupIamOrgPolicyResultOutput{}) +} diff --git a/sdk/go/exoscale/getIamRole.go b/sdk/go/exoscale/getIamRole.go new file mode 100644 index 00000000..bb09a859 --- /dev/null +++ b/sdk/go/exoscale/getIamRole.go @@ -0,0 +1,137 @@ +// 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 exoscale + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" +) + +// Fetch Exoscale [IAM](https://community.exoscale.com/documentation/iam/) Role. +// +// Corresponding resource: exoscale_iam_role. +func LookupIamRole(ctx *pulumi.Context, args *LookupIamRoleArgs, opts ...pulumi.InvokeOption) (*LookupIamRoleResult, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupIamRoleResult + err := ctx.Invoke("exoscale:index/getIamRole:getIamRole", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +// A collection of arguments for invoking getIamRole. +type LookupIamRoleArgs struct { + // The role ID to match (conflicts with `name`). + Id *string `pulumi:"id"` + // the role name to match (conflicts with `id`). + Name *string `pulumi:"name"` + Timeouts *GetIamRoleTimeouts `pulumi:"timeouts"` +} + +// A collection of values returned by getIamRole. +type LookupIamRoleResult struct { + // A free-form text describing the IAM Role + Description string `pulumi:"description"` + // Defines if IAM Role Policy is editable or not. + Editable bool `pulumi:"editable"` + // The role ID to match (conflicts with `name`). + Id string `pulumi:"id"` + // IAM Role labels. + Labels map[string]string `pulumi:"labels"` + // the role name to match (conflicts with `id`). + Name string `pulumi:"name"` + // IAM Role permissions. + Permissions []string `pulumi:"permissions"` + // IAM Policy. + Policy GetIamRolePolicy `pulumi:"policy"` + Timeouts *GetIamRoleTimeouts `pulumi:"timeouts"` +} + +func LookupIamRoleOutput(ctx *pulumi.Context, args LookupIamRoleOutputArgs, opts ...pulumi.InvokeOption) LookupIamRoleResultOutput { + return pulumi.ToOutputWithContext(context.Background(), args). + ApplyT(func(v interface{}) (LookupIamRoleResult, error) { + args := v.(LookupIamRoleArgs) + r, err := LookupIamRole(ctx, &args, opts...) + var s LookupIamRoleResult + if r != nil { + s = *r + } + return s, err + }).(LookupIamRoleResultOutput) +} + +// A collection of arguments for invoking getIamRole. +type LookupIamRoleOutputArgs struct { + // The role ID to match (conflicts with `name`). + Id pulumi.StringPtrInput `pulumi:"id"` + // the role name to match (conflicts with `id`). + Name pulumi.StringPtrInput `pulumi:"name"` + Timeouts GetIamRoleTimeoutsPtrInput `pulumi:"timeouts"` +} + +func (LookupIamRoleOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LookupIamRoleArgs)(nil)).Elem() +} + +// A collection of values returned by getIamRole. +type LookupIamRoleResultOutput struct{ *pulumi.OutputState } + +func (LookupIamRoleResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LookupIamRoleResult)(nil)).Elem() +} + +func (o LookupIamRoleResultOutput) ToLookupIamRoleResultOutput() LookupIamRoleResultOutput { + return o +} + +func (o LookupIamRoleResultOutput) ToLookupIamRoleResultOutputWithContext(ctx context.Context) LookupIamRoleResultOutput { + return o +} + +// A free-form text describing the IAM Role +func (o LookupIamRoleResultOutput) Description() pulumi.StringOutput { + return o.ApplyT(func(v LookupIamRoleResult) string { return v.Description }).(pulumi.StringOutput) +} + +// Defines if IAM Role Policy is editable or not. +func (o LookupIamRoleResultOutput) Editable() pulumi.BoolOutput { + return o.ApplyT(func(v LookupIamRoleResult) bool { return v.Editable }).(pulumi.BoolOutput) +} + +// The role ID to match (conflicts with `name`). +func (o LookupIamRoleResultOutput) Id() pulumi.StringOutput { + return o.ApplyT(func(v LookupIamRoleResult) string { return v.Id }).(pulumi.StringOutput) +} + +// IAM Role labels. +func (o LookupIamRoleResultOutput) Labels() pulumi.StringMapOutput { + return o.ApplyT(func(v LookupIamRoleResult) map[string]string { return v.Labels }).(pulumi.StringMapOutput) +} + +// the role name to match (conflicts with `id`). +func (o LookupIamRoleResultOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v LookupIamRoleResult) string { return v.Name }).(pulumi.StringOutput) +} + +// IAM Role permissions. +func (o LookupIamRoleResultOutput) Permissions() pulumi.StringArrayOutput { + return o.ApplyT(func(v LookupIamRoleResult) []string { return v.Permissions }).(pulumi.StringArrayOutput) +} + +// IAM Policy. +func (o LookupIamRoleResultOutput) Policy() GetIamRolePolicyOutput { + return o.ApplyT(func(v LookupIamRoleResult) GetIamRolePolicy { return v.Policy }).(GetIamRolePolicyOutput) +} + +func (o LookupIamRoleResultOutput) Timeouts() GetIamRoleTimeoutsPtrOutput { + return o.ApplyT(func(v LookupIamRoleResult) *GetIamRoleTimeouts { return v.Timeouts }).(GetIamRoleTimeoutsPtrOutput) +} + +func init() { + pulumi.RegisterOutputType(LookupIamRoleResultOutput{}) +} diff --git a/sdk/go/exoscale/getInstancePool.go b/sdk/go/exoscale/getInstancePool.go index c520adb5..32bd045c 100644 --- a/sdk/go/exoscale/getInstancePool.go +++ b/sdk/go/exoscale/getInstancePool.go @@ -11,6 +11,40 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// Fetch Exoscale [Instance Pools](https://community.exoscale.com/documentation/compute/instance-pools/) data. +// +// Corresponding resource: exoscale_instance_pool. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// myInstancePool, err := exoscale.LookupInstancePool(ctx, &exoscale.LookupInstancePoolArgs{ +// Zone: "ch-gva-2", +// Name: pulumi.StringRef("my-instance-pool"), +// }, nil) +// if err != nil { +// return err +// } +// ctx.Export("myInstancePoolId", myInstancePool.Id) +// return nil +// }) +// } +// +// ``` +// +// Please refer to the examples +// directory for complete configuration examples. func LookupInstancePool(ctx *pulumi.Context, args *LookupInstancePoolArgs, opts ...pulumi.InvokeOption) (*LookupInstancePoolResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupInstancePoolResult diff --git a/sdk/go/exoscale/getInstancePoolList.go b/sdk/go/exoscale/getInstancePoolList.go index 41ea1cee..1ca9344b 100644 --- a/sdk/go/exoscale/getInstancePoolList.go +++ b/sdk/go/exoscale/getInstancePoolList.go @@ -11,6 +11,9 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// List Exoscale [Instance Pools](https://community.exoscale.com/documentation/compute/instance-pools/). +// +// Corresponding resource: exoscale_instance_pool. func GetInstancePoolList(ctx *pulumi.Context, args *GetInstancePoolListArgs, opts ...pulumi.InvokeOption) (*GetInstancePoolListResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetInstancePoolListResult diff --git a/sdk/go/exoscale/getNLB.go b/sdk/go/exoscale/getNLB.go deleted file mode 100644 index 124974a1..00000000 --- a/sdk/go/exoscale/getNLB.go +++ /dev/null @@ -1,131 +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 exoscale - -import ( - "context" - "reflect" - - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" -) - -func LookupNLB(ctx *pulumi.Context, args *LookupNLBArgs, opts ...pulumi.InvokeOption) (*LookupNLBResult, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNLBResult - err := ctx.Invoke("exoscale:index/getNLB:getNLB", args, &rv, opts...) - if err != nil { - return nil, err - } - return &rv, nil -} - -// A collection of arguments for invoking getNLB. -type LookupNLBArgs struct { - // The Network Load Balancers (NLB) ID to match (conflicts with `name`). - Id *string `pulumi:"id"` - // The NLB name to match (conflicts with `id`). - Name *string `pulumi:"name"` - // The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. - Zone string `pulumi:"zone"` -} - -// A collection of values returned by getNLB. -type LookupNLBResult struct { - // The NLB creation date. - CreatedAt string `pulumi:"createdAt"` - // The Network Load Balancers (NLB) description. - Description string `pulumi:"description"` - // The Network Load Balancers (NLB) ID to match (conflicts with `name`). - Id *string `pulumi:"id"` - // The NLB public IPv4 address. - IpAddress string `pulumi:"ipAddress"` - // The NLB name to match (conflicts with `id`). - Name *string `pulumi:"name"` - // The current NLB state. - State string `pulumi:"state"` - // The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. - Zone string `pulumi:"zone"` -} - -func LookupNLBOutput(ctx *pulumi.Context, args LookupNLBOutputArgs, opts ...pulumi.InvokeOption) LookupNLBResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupNLBResult, error) { - args := v.(LookupNLBArgs) - r, err := LookupNLB(ctx, &args, opts...) - var s LookupNLBResult - if r != nil { - s = *r - } - return s, err - }).(LookupNLBResultOutput) -} - -// A collection of arguments for invoking getNLB. -type LookupNLBOutputArgs struct { - // The Network Load Balancers (NLB) ID to match (conflicts with `name`). - Id pulumi.StringPtrInput `pulumi:"id"` - // The NLB name to match (conflicts with `id`). - Name pulumi.StringPtrInput `pulumi:"name"` - // The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. - Zone pulumi.StringInput `pulumi:"zone"` -} - -func (LookupNLBOutputArgs) ElementType() reflect.Type { - return reflect.TypeOf((*LookupNLBArgs)(nil)).Elem() -} - -// A collection of values returned by getNLB. -type LookupNLBResultOutput struct{ *pulumi.OutputState } - -func (LookupNLBResultOutput) ElementType() reflect.Type { - return reflect.TypeOf((*LookupNLBResult)(nil)).Elem() -} - -func (o LookupNLBResultOutput) ToLookupNLBResultOutput() LookupNLBResultOutput { - return o -} - -func (o LookupNLBResultOutput) ToLookupNLBResultOutputWithContext(ctx context.Context) LookupNLBResultOutput { - return o -} - -// The NLB creation date. -func (o LookupNLBResultOutput) CreatedAt() pulumi.StringOutput { - return o.ApplyT(func(v LookupNLBResult) string { return v.CreatedAt }).(pulumi.StringOutput) -} - -// The Network Load Balancers (NLB) description. -func (o LookupNLBResultOutput) Description() pulumi.StringOutput { - return o.ApplyT(func(v LookupNLBResult) string { return v.Description }).(pulumi.StringOutput) -} - -// The Network Load Balancers (NLB) ID to match (conflicts with `name`). -func (o LookupNLBResultOutput) Id() pulumi.StringPtrOutput { - return o.ApplyT(func(v LookupNLBResult) *string { return v.Id }).(pulumi.StringPtrOutput) -} - -// The NLB public IPv4 address. -func (o LookupNLBResultOutput) IpAddress() pulumi.StringOutput { - return o.ApplyT(func(v LookupNLBResult) string { return v.IpAddress }).(pulumi.StringOutput) -} - -// The NLB name to match (conflicts with `id`). -func (o LookupNLBResultOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v LookupNLBResult) *string { return v.Name }).(pulumi.StringPtrOutput) -} - -// The current NLB state. -func (o LookupNLBResultOutput) State() pulumi.StringOutput { - return o.ApplyT(func(v LookupNLBResult) string { return v.State }).(pulumi.StringOutput) -} - -// The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. -func (o LookupNLBResultOutput) Zone() pulumi.StringOutput { - return o.ApplyT(func(v LookupNLBResult) string { return v.Zone }).(pulumi.StringOutput) -} - -func init() { - pulumi.RegisterOutputType(LookupNLBResultOutput{}) -} diff --git a/sdk/go/exoscale/getNLBServiceList.go b/sdk/go/exoscale/getNLBServiceList.go deleted file mode 100644 index e7ba4e29..00000000 --- a/sdk/go/exoscale/getNLBServiceList.go +++ /dev/null @@ -1,124 +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 exoscale - -import ( - "context" - "reflect" - - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" -) - -func GetNLBServiceList(ctx *pulumi.Context, args *GetNLBServiceListArgs, opts ...pulumi.InvokeOption) (*GetNLBServiceListResult, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNLBServiceListResult - err := ctx.Invoke("exoscale:index/getNLBServiceList:getNLBServiceList", args, &rv, opts...) - if err != nil { - return nil, err - } - return &rv, nil -} - -// A collection of arguments for invoking getNLBServiceList. -type GetNLBServiceListArgs struct { - // The NLB ID to match (conflicts with `name`). - NlbId *string `pulumi:"nlbId"` - // The NLB name to match (conflicts with `id`). - NlbName *string `pulumi:"nlbName"` - Timeouts *GetNLBServiceListTimeouts `pulumi:"timeouts"` - // The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. - Zone string `pulumi:"zone"` -} - -// A collection of values returned by getNLBServiceList. -type GetNLBServiceListResult struct { - // The ID of this resource. - Id string `pulumi:"id"` - // The NLB ID to match (conflicts with `name`). - NlbId *string `pulumi:"nlbId"` - // The NLB name to match (conflicts with `id`). - NlbName *string `pulumi:"nlbName"` - // The list of exoscale*nlb*service. - Services []GetNLBServiceListService `pulumi:"services"` - Timeouts *GetNLBServiceListTimeouts `pulumi:"timeouts"` - // The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. - Zone string `pulumi:"zone"` -} - -func GetNLBServiceListOutput(ctx *pulumi.Context, args GetNLBServiceListOutputArgs, opts ...pulumi.InvokeOption) GetNLBServiceListResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetNLBServiceListResult, error) { - args := v.(GetNLBServiceListArgs) - r, err := GetNLBServiceList(ctx, &args, opts...) - var s GetNLBServiceListResult - if r != nil { - s = *r - } - return s, err - }).(GetNLBServiceListResultOutput) -} - -// A collection of arguments for invoking getNLBServiceList. -type GetNLBServiceListOutputArgs struct { - // The NLB ID to match (conflicts with `name`). - NlbId pulumi.StringPtrInput `pulumi:"nlbId"` - // The NLB name to match (conflicts with `id`). - NlbName pulumi.StringPtrInput `pulumi:"nlbName"` - Timeouts GetNLBServiceListTimeoutsPtrInput `pulumi:"timeouts"` - // The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. - Zone pulumi.StringInput `pulumi:"zone"` -} - -func (GetNLBServiceListOutputArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetNLBServiceListArgs)(nil)).Elem() -} - -// A collection of values returned by getNLBServiceList. -type GetNLBServiceListResultOutput struct{ *pulumi.OutputState } - -func (GetNLBServiceListResultOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetNLBServiceListResult)(nil)).Elem() -} - -func (o GetNLBServiceListResultOutput) ToGetNLBServiceListResultOutput() GetNLBServiceListResultOutput { - return o -} - -func (o GetNLBServiceListResultOutput) ToGetNLBServiceListResultOutputWithContext(ctx context.Context) GetNLBServiceListResultOutput { - return o -} - -// The ID of this resource. -func (o GetNLBServiceListResultOutput) Id() pulumi.StringOutput { - return o.ApplyT(func(v GetNLBServiceListResult) string { return v.Id }).(pulumi.StringOutput) -} - -// The NLB ID to match (conflicts with `name`). -func (o GetNLBServiceListResultOutput) NlbId() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNLBServiceListResult) *string { return v.NlbId }).(pulumi.StringPtrOutput) -} - -// The NLB name to match (conflicts with `id`). -func (o GetNLBServiceListResultOutput) NlbName() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNLBServiceListResult) *string { return v.NlbName }).(pulumi.StringPtrOutput) -} - -// The list of exoscale*nlb*service. -func (o GetNLBServiceListResultOutput) Services() GetNLBServiceListServiceArrayOutput { - return o.ApplyT(func(v GetNLBServiceListResult) []GetNLBServiceListService { return v.Services }).(GetNLBServiceListServiceArrayOutput) -} - -func (o GetNLBServiceListResultOutput) Timeouts() GetNLBServiceListTimeoutsPtrOutput { - return o.ApplyT(func(v GetNLBServiceListResult) *GetNLBServiceListTimeouts { return v.Timeouts }).(GetNLBServiceListTimeoutsPtrOutput) -} - -// The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. -func (o GetNLBServiceListResultOutput) Zone() pulumi.StringOutput { - return o.ApplyT(func(v GetNLBServiceListResult) string { return v.Zone }).(pulumi.StringOutput) -} - -func init() { - pulumi.RegisterOutputType(GetNLBServiceListResultOutput{}) -} diff --git a/sdk/go/exoscale/getNlb.go b/sdk/go/exoscale/getNlb.go new file mode 100644 index 00000000..497c4bb3 --- /dev/null +++ b/sdk/go/exoscale/getNlb.go @@ -0,0 +1,165 @@ +// 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 exoscale + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" +) + +// Fetch Exoscale [Network Load Balancers (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/) data. +// +// Corresponding resource: exoscale_nlb. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// myNlb, err := exoscale.LookupNlb(ctx, &exoscale.LookupNlbArgs{ +// Zone: "ch-gva-2", +// Name: pulumi.StringRef("my-nlb"), +// }, nil) +// if err != nil { +// return err +// } +// ctx.Export("myNlbId", myNlb.Id) +// return nil +// }) +// } +// +// ``` +// +// Please refer to the examples +// directory for complete configuration examples. +func LookupNlb(ctx *pulumi.Context, args *LookupNlbArgs, opts ...pulumi.InvokeOption) (*LookupNlbResult, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupNlbResult + err := ctx.Invoke("exoscale:index/getNlb:getNlb", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +// A collection of arguments for invoking getNlb. +type LookupNlbArgs struct { + // The Network Load Balancers (NLB) ID to match (conflicts with `name`). + Id *string `pulumi:"id"` + // The NLB name to match (conflicts with `id`). + Name *string `pulumi:"name"` + // The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. + Zone string `pulumi:"zone"` +} + +// A collection of values returned by getNlb. +type LookupNlbResult struct { + // The NLB creation date. + CreatedAt string `pulumi:"createdAt"` + // The Network Load Balancers (NLB) description. + Description string `pulumi:"description"` + // The Network Load Balancers (NLB) ID to match (conflicts with `name`). + Id *string `pulumi:"id"` + // The NLB public IPv4 address. + IpAddress string `pulumi:"ipAddress"` + // The NLB name to match (conflicts with `id`). + Name *string `pulumi:"name"` + // The current NLB state. + State string `pulumi:"state"` + // The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. + Zone string `pulumi:"zone"` +} + +func LookupNlbOutput(ctx *pulumi.Context, args LookupNlbOutputArgs, opts ...pulumi.InvokeOption) LookupNlbResultOutput { + return pulumi.ToOutputWithContext(context.Background(), args). + ApplyT(func(v interface{}) (LookupNlbResult, error) { + args := v.(LookupNlbArgs) + r, err := LookupNlb(ctx, &args, opts...) + var s LookupNlbResult + if r != nil { + s = *r + } + return s, err + }).(LookupNlbResultOutput) +} + +// A collection of arguments for invoking getNlb. +type LookupNlbOutputArgs struct { + // The Network Load Balancers (NLB) ID to match (conflicts with `name`). + Id pulumi.StringPtrInput `pulumi:"id"` + // The NLB name to match (conflicts with `id`). + Name pulumi.StringPtrInput `pulumi:"name"` + // The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. + Zone pulumi.StringInput `pulumi:"zone"` +} + +func (LookupNlbOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LookupNlbArgs)(nil)).Elem() +} + +// A collection of values returned by getNlb. +type LookupNlbResultOutput struct{ *pulumi.OutputState } + +func (LookupNlbResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LookupNlbResult)(nil)).Elem() +} + +func (o LookupNlbResultOutput) ToLookupNlbResultOutput() LookupNlbResultOutput { + return o +} + +func (o LookupNlbResultOutput) ToLookupNlbResultOutputWithContext(ctx context.Context) LookupNlbResultOutput { + return o +} + +// The NLB creation date. +func (o LookupNlbResultOutput) CreatedAt() pulumi.StringOutput { + return o.ApplyT(func(v LookupNlbResult) string { return v.CreatedAt }).(pulumi.StringOutput) +} + +// The Network Load Balancers (NLB) description. +func (o LookupNlbResultOutput) Description() pulumi.StringOutput { + return o.ApplyT(func(v LookupNlbResult) string { return v.Description }).(pulumi.StringOutput) +} + +// The Network Load Balancers (NLB) ID to match (conflicts with `name`). +func (o LookupNlbResultOutput) Id() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupNlbResult) *string { return v.Id }).(pulumi.StringPtrOutput) +} + +// The NLB public IPv4 address. +func (o LookupNlbResultOutput) IpAddress() pulumi.StringOutput { + return o.ApplyT(func(v LookupNlbResult) string { return v.IpAddress }).(pulumi.StringOutput) +} + +// The NLB name to match (conflicts with `id`). +func (o LookupNlbResultOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupNlbResult) *string { return v.Name }).(pulumi.StringPtrOutput) +} + +// The current NLB state. +func (o LookupNlbResultOutput) State() pulumi.StringOutput { + return o.ApplyT(func(v LookupNlbResult) string { return v.State }).(pulumi.StringOutput) +} + +// The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. +func (o LookupNlbResultOutput) Zone() pulumi.StringOutput { + return o.ApplyT(func(v LookupNlbResult) string { return v.Zone }).(pulumi.StringOutput) +} + +func init() { + pulumi.RegisterOutputType(LookupNlbResultOutput{}) +} diff --git a/sdk/go/exoscale/getNlbServiceList.go b/sdk/go/exoscale/getNlbServiceList.go new file mode 100644 index 00000000..52217f59 --- /dev/null +++ b/sdk/go/exoscale/getNlbServiceList.go @@ -0,0 +1,127 @@ +// 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 exoscale + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" +) + +// Fetch Exoscale [Network Load Balancers (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/) Services. +// +// Corresponding resource: exoscale_nlb. +func GetNlbServiceList(ctx *pulumi.Context, args *GetNlbServiceListArgs, opts ...pulumi.InvokeOption) (*GetNlbServiceListResult, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetNlbServiceListResult + err := ctx.Invoke("exoscale:index/getNlbServiceList:getNlbServiceList", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +// A collection of arguments for invoking getNlbServiceList. +type GetNlbServiceListArgs struct { + // The NLB ID to match (conflicts with `name`). + NlbId *string `pulumi:"nlbId"` + // The NLB name to match (conflicts with `id`). + NlbName *string `pulumi:"nlbName"` + Timeouts *GetNlbServiceListTimeouts `pulumi:"timeouts"` + // The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. + Zone string `pulumi:"zone"` +} + +// A collection of values returned by getNlbServiceList. +type GetNlbServiceListResult struct { + // The ID of this resource. + Id string `pulumi:"id"` + // The NLB ID to match (conflicts with `name`). + NlbId *string `pulumi:"nlbId"` + // The NLB name to match (conflicts with `id`). + NlbName *string `pulumi:"nlbName"` + // The list of exoscale*nlb*service. + Services []GetNlbServiceListService `pulumi:"services"` + Timeouts *GetNlbServiceListTimeouts `pulumi:"timeouts"` + // The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. + Zone string `pulumi:"zone"` +} + +func GetNlbServiceListOutput(ctx *pulumi.Context, args GetNlbServiceListOutputArgs, opts ...pulumi.InvokeOption) GetNlbServiceListResultOutput { + return pulumi.ToOutputWithContext(context.Background(), args). + ApplyT(func(v interface{}) (GetNlbServiceListResult, error) { + args := v.(GetNlbServiceListArgs) + r, err := GetNlbServiceList(ctx, &args, opts...) + var s GetNlbServiceListResult + if r != nil { + s = *r + } + return s, err + }).(GetNlbServiceListResultOutput) +} + +// A collection of arguments for invoking getNlbServiceList. +type GetNlbServiceListOutputArgs struct { + // The NLB ID to match (conflicts with `name`). + NlbId pulumi.StringPtrInput `pulumi:"nlbId"` + // The NLB name to match (conflicts with `id`). + NlbName pulumi.StringPtrInput `pulumi:"nlbName"` + Timeouts GetNlbServiceListTimeoutsPtrInput `pulumi:"timeouts"` + // The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. + Zone pulumi.StringInput `pulumi:"zone"` +} + +func (GetNlbServiceListOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetNlbServiceListArgs)(nil)).Elem() +} + +// A collection of values returned by getNlbServiceList. +type GetNlbServiceListResultOutput struct{ *pulumi.OutputState } + +func (GetNlbServiceListResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetNlbServiceListResult)(nil)).Elem() +} + +func (o GetNlbServiceListResultOutput) ToGetNlbServiceListResultOutput() GetNlbServiceListResultOutput { + return o +} + +func (o GetNlbServiceListResultOutput) ToGetNlbServiceListResultOutputWithContext(ctx context.Context) GetNlbServiceListResultOutput { + return o +} + +// The ID of this resource. +func (o GetNlbServiceListResultOutput) Id() pulumi.StringOutput { + return o.ApplyT(func(v GetNlbServiceListResult) string { return v.Id }).(pulumi.StringOutput) +} + +// The NLB ID to match (conflicts with `name`). +func (o GetNlbServiceListResultOutput) NlbId() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNlbServiceListResult) *string { return v.NlbId }).(pulumi.StringPtrOutput) +} + +// The NLB name to match (conflicts with `id`). +func (o GetNlbServiceListResultOutput) NlbName() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNlbServiceListResult) *string { return v.NlbName }).(pulumi.StringPtrOutput) +} + +// The list of exoscale*nlb*service. +func (o GetNlbServiceListResultOutput) Services() GetNlbServiceListServiceArrayOutput { + return o.ApplyT(func(v GetNlbServiceListResult) []GetNlbServiceListService { return v.Services }).(GetNlbServiceListServiceArrayOutput) +} + +func (o GetNlbServiceListResultOutput) Timeouts() GetNlbServiceListTimeoutsPtrOutput { + return o.ApplyT(func(v GetNlbServiceListResult) *GetNlbServiceListTimeouts { return v.Timeouts }).(GetNlbServiceListTimeoutsPtrOutput) +} + +// The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. +func (o GetNlbServiceListResultOutput) Zone() pulumi.StringOutput { + return o.ApplyT(func(v GetNlbServiceListResult) string { return v.Zone }).(pulumi.StringOutput) +} + +func init() { + pulumi.RegisterOutputType(GetNlbServiceListResultOutput{}) +} diff --git a/sdk/go/exoscale/getPrivateNetwork.go b/sdk/go/exoscale/getPrivateNetwork.go index 9ba8cdac..82f7c00b 100644 --- a/sdk/go/exoscale/getPrivateNetwork.go +++ b/sdk/go/exoscale/getPrivateNetwork.go @@ -11,6 +11,40 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// Fetch Exoscale [Private Networks](https://community.exoscale.com/documentation/compute/private-networks/) data. +// +// Corresponding resource: exoscale_private_network. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// myPrivateNetwork, err := exoscale.LookupPrivateNetwork(ctx, &exoscale.LookupPrivateNetworkArgs{ +// Zone: "ch-gva-2", +// Name: pulumi.StringRef("my-private-network"), +// }, nil) +// if err != nil { +// return err +// } +// ctx.Export("myPrivateNetworkId", myPrivateNetwork.Id) +// return nil +// }) +// } +// +// ``` +// +// Please refer to the examples +// directory for complete configuration examples. func LookupPrivateNetwork(ctx *pulumi.Context, args *LookupPrivateNetworkArgs, opts ...pulumi.InvokeOption) (*LookupPrivateNetworkResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupPrivateNetworkResult diff --git a/sdk/go/exoscale/getSecurityGroup.go b/sdk/go/exoscale/getSecurityGroup.go index a3976720..6f0f9e64 100644 --- a/sdk/go/exoscale/getSecurityGroup.go +++ b/sdk/go/exoscale/getSecurityGroup.go @@ -11,6 +11,39 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// Fetch Exoscale [Security Groups](https://community.exoscale.com/documentation/compute/security-groups/) data. +// +// Corresponding resource: exoscale_security_group. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// mySecurityGroup, err := exoscale.LookupSecurityGroup(ctx, &exoscale.LookupSecurityGroupArgs{ +// Name: pulumi.StringRef("my-security-group"), +// }, nil) +// if err != nil { +// return err +// } +// ctx.Export("mySecurityGroupId", mySecurityGroup.Id) +// return nil +// }) +// } +// +// ``` +// +// Please refer to the examples +// directory for complete configuration examples. func LookupSecurityGroup(ctx *pulumi.Context, args *LookupSecurityGroupArgs, opts ...pulumi.InvokeOption) (*LookupSecurityGroupResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupSecurityGroupResult diff --git a/sdk/go/exoscale/getSKSCluster.go b/sdk/go/exoscale/getSksCluster.go similarity index 72% rename from sdk/go/exoscale/getSKSCluster.go rename to sdk/go/exoscale/getSksCluster.go index 2ab43302..606dc273 100644 --- a/sdk/go/exoscale/getSKSCluster.go +++ b/sdk/go/exoscale/getSksCluster.go @@ -11,18 +11,18 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) -func LookupSKSCluster(ctx *pulumi.Context, args *LookupSKSClusterArgs, opts ...pulumi.InvokeOption) (*LookupSKSClusterResult, error) { +func LookupSksCluster(ctx *pulumi.Context, args *LookupSksClusterArgs, opts ...pulumi.InvokeOption) (*LookupSksClusterResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSKSClusterResult - err := ctx.Invoke("exoscale:index/getSKSCluster:getSKSCluster", args, &rv, opts...) + var rv LookupSksClusterResult + err := ctx.Invoke("exoscale:index/getSksCluster:getSksCluster", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } -// A collection of arguments for invoking getSKSCluster. -type LookupSKSClusterArgs struct { +// A collection of arguments for invoking getSksCluster. +type LookupSksClusterArgs struct { // Deprecated: This attribute has been replaced by `exoscale_ccm`/`metrics_server` attributes, it will be removed in a future release. Addons []string `pulumi:"addons"` // The CA certificate (in PEM format) for TLS communications between the control plane and the aggregation layer (e.g. `metrics-server`). @@ -53,7 +53,7 @@ type LookupSKSClusterArgs struct { // The list of exoscale*sks*nodepool (IDs) attached to the cluster. Nodepools []string `pulumi:"nodepools"` // An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. - Oidc *GetSKSClusterOidc `pulumi:"oidc"` + Oidc *GetSksClusterOidc `pulumi:"oidc"` // The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). ServiceLevel *string `pulumi:"serviceLevel"` // The cluster state. @@ -63,8 +63,8 @@ type LookupSKSClusterArgs struct { Zone string `pulumi:"zone"` } -// A collection of values returned by getSKSCluster. -type LookupSKSClusterResult struct { +// A collection of values returned by getSksCluster. +type LookupSksClusterResult struct { // Deprecated: This attribute has been replaced by `exoscale_ccm`/`metrics_server` attributes, it will be removed in a future release. Addons []string `pulumi:"addons"` // The CA certificate (in PEM format) for TLS communications between the control plane and the aggregation layer (e.g. `metrics-server`). @@ -95,7 +95,7 @@ type LookupSKSClusterResult struct { // The list of exoscale*sks*nodepool (IDs) attached to the cluster. Nodepools []string `pulumi:"nodepools"` // An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. - Oidc GetSKSClusterOidc `pulumi:"oidc"` + Oidc GetSksClusterOidc `pulumi:"oidc"` // The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). ServiceLevel *string `pulumi:"serviceLevel"` // The cluster state. @@ -105,21 +105,21 @@ type LookupSKSClusterResult struct { Zone string `pulumi:"zone"` } -func LookupSKSClusterOutput(ctx *pulumi.Context, args LookupSKSClusterOutputArgs, opts ...pulumi.InvokeOption) LookupSKSClusterResultOutput { +func LookupSksClusterOutput(ctx *pulumi.Context, args LookupSksClusterOutputArgs, opts ...pulumi.InvokeOption) LookupSksClusterResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupSKSClusterResult, error) { - args := v.(LookupSKSClusterArgs) - r, err := LookupSKSCluster(ctx, &args, opts...) - var s LookupSKSClusterResult + ApplyT(func(v interface{}) (LookupSksClusterResult, error) { + args := v.(LookupSksClusterArgs) + r, err := LookupSksCluster(ctx, &args, opts...) + var s LookupSksClusterResult if r != nil { s = *r } return s, err - }).(LookupSKSClusterResultOutput) + }).(LookupSksClusterResultOutput) } -// A collection of arguments for invoking getSKSCluster. -type LookupSKSClusterOutputArgs struct { +// A collection of arguments for invoking getSksCluster. +type LookupSksClusterOutputArgs struct { // Deprecated: This attribute has been replaced by `exoscale_ccm`/`metrics_server` attributes, it will be removed in a future release. Addons pulumi.StringArrayInput `pulumi:"addons"` // The CA certificate (in PEM format) for TLS communications between the control plane and the aggregation layer (e.g. `metrics-server`). @@ -150,7 +150,7 @@ type LookupSKSClusterOutputArgs struct { // The list of exoscale*sks*nodepool (IDs) attached to the cluster. Nodepools pulumi.StringArrayInput `pulumi:"nodepools"` // An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. - Oidc GetSKSClusterOidcPtrInput `pulumi:"oidc"` + Oidc GetSksClusterOidcPtrInput `pulumi:"oidc"` // The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). ServiceLevel pulumi.StringPtrInput `pulumi:"serviceLevel"` // The cluster state. @@ -160,123 +160,123 @@ type LookupSKSClusterOutputArgs struct { Zone pulumi.StringInput `pulumi:"zone"` } -func (LookupSKSClusterOutputArgs) ElementType() reflect.Type { - return reflect.TypeOf((*LookupSKSClusterArgs)(nil)).Elem() +func (LookupSksClusterOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LookupSksClusterArgs)(nil)).Elem() } -// A collection of values returned by getSKSCluster. -type LookupSKSClusterResultOutput struct{ *pulumi.OutputState } +// A collection of values returned by getSksCluster. +type LookupSksClusterResultOutput struct{ *pulumi.OutputState } -func (LookupSKSClusterResultOutput) ElementType() reflect.Type { - return reflect.TypeOf((*LookupSKSClusterResult)(nil)).Elem() +func (LookupSksClusterResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LookupSksClusterResult)(nil)).Elem() } -func (o LookupSKSClusterResultOutput) ToLookupSKSClusterResultOutput() LookupSKSClusterResultOutput { +func (o LookupSksClusterResultOutput) ToLookupSksClusterResultOutput() LookupSksClusterResultOutput { return o } -func (o LookupSKSClusterResultOutput) ToLookupSKSClusterResultOutputWithContext(ctx context.Context) LookupSKSClusterResultOutput { +func (o LookupSksClusterResultOutput) ToLookupSksClusterResultOutputWithContext(ctx context.Context) LookupSksClusterResultOutput { return o } // Deprecated: This attribute has been replaced by `exoscale_ccm`/`metrics_server` attributes, it will be removed in a future release. -func (o LookupSKSClusterResultOutput) Addons() pulumi.StringArrayOutput { - return o.ApplyT(func(v LookupSKSClusterResult) []string { return v.Addons }).(pulumi.StringArrayOutput) +func (o LookupSksClusterResultOutput) Addons() pulumi.StringArrayOutput { + return o.ApplyT(func(v LookupSksClusterResult) []string { return v.Addons }).(pulumi.StringArrayOutput) } // The CA certificate (in PEM format) for TLS communications between the control plane and the aggregation layer (e.g. `metrics-server`). -func (o LookupSKSClusterResultOutput) AggregationCa() pulumi.StringOutput { - return o.ApplyT(func(v LookupSKSClusterResult) string { return v.AggregationCa }).(pulumi.StringOutput) +func (o LookupSksClusterResultOutput) AggregationCa() pulumi.StringOutput { + return o.ApplyT(func(v LookupSksClusterResult) string { return v.AggregationCa }).(pulumi.StringOutput) } // Enable automatic upgrading of the control plane version. -func (o LookupSKSClusterResultOutput) AutoUpgrade() pulumi.BoolPtrOutput { - return o.ApplyT(func(v LookupSKSClusterResult) *bool { return v.AutoUpgrade }).(pulumi.BoolPtrOutput) +func (o LookupSksClusterResultOutput) AutoUpgrade() pulumi.BoolPtrOutput { + return o.ApplyT(func(v LookupSksClusterResult) *bool { return v.AutoUpgrade }).(pulumi.BoolPtrOutput) } // The CNI plugin that is to be used. Available options are "calico" or "cilium". Defaults to "calico". Setting empty string will result in a cluster with no CNI. -func (o LookupSKSClusterResultOutput) Cni() pulumi.StringPtrOutput { - return o.ApplyT(func(v LookupSKSClusterResult) *string { return v.Cni }).(pulumi.StringPtrOutput) +func (o LookupSksClusterResultOutput) Cni() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupSksClusterResult) *string { return v.Cni }).(pulumi.StringPtrOutput) } // The CA certificate (in PEM format) for TLS communications between control plane components. -func (o LookupSKSClusterResultOutput) ControlPlaneCa() pulumi.StringOutput { - return o.ApplyT(func(v LookupSKSClusterResult) string { return v.ControlPlaneCa }).(pulumi.StringOutput) +func (o LookupSksClusterResultOutput) ControlPlaneCa() pulumi.StringOutput { + return o.ApplyT(func(v LookupSksClusterResult) string { return v.ControlPlaneCa }).(pulumi.StringOutput) } // The cluster creation date. -func (o LookupSKSClusterResultOutput) CreatedAt() pulumi.StringOutput { - return o.ApplyT(func(v LookupSKSClusterResult) string { return v.CreatedAt }).(pulumi.StringOutput) +func (o LookupSksClusterResultOutput) CreatedAt() pulumi.StringOutput { + return o.ApplyT(func(v LookupSksClusterResult) string { return v.CreatedAt }).(pulumi.StringOutput) } // A free-form text describing the cluster. -func (o LookupSKSClusterResultOutput) Description() pulumi.StringPtrOutput { - return o.ApplyT(func(v LookupSKSClusterResult) *string { return v.Description }).(pulumi.StringPtrOutput) +func (o LookupSksClusterResultOutput) Description() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupSksClusterResult) *string { return v.Description }).(pulumi.StringPtrOutput) } // The cluster API endpoint. -func (o LookupSKSClusterResultOutput) Endpoint() pulumi.StringOutput { - return o.ApplyT(func(v LookupSKSClusterResult) string { return v.Endpoint }).(pulumi.StringOutput) +func (o LookupSksClusterResultOutput) Endpoint() pulumi.StringOutput { + return o.ApplyT(func(v LookupSksClusterResult) string { return v.Endpoint }).(pulumi.StringOutput) } // Deploy the Exoscale [Cloud Controller Manager](https://github.com/exoscale/exoscale-cloud-controller-manager/) in the control plane (boolean; default: `true`; may only be set at creation time). -func (o LookupSKSClusterResultOutput) ExoscaleCcm() pulumi.BoolPtrOutput { - return o.ApplyT(func(v LookupSKSClusterResult) *bool { return v.ExoscaleCcm }).(pulumi.BoolPtrOutput) +func (o LookupSksClusterResultOutput) ExoscaleCcm() pulumi.BoolPtrOutput { + return o.ApplyT(func(v LookupSksClusterResult) *bool { return v.ExoscaleCcm }).(pulumi.BoolPtrOutput) } // The ID of this resource. -func (o LookupSKSClusterResultOutput) Id() pulumi.StringPtrOutput { - return o.ApplyT(func(v LookupSKSClusterResult) *string { return v.Id }).(pulumi.StringPtrOutput) +func (o LookupSksClusterResultOutput) Id() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupSksClusterResult) *string { return v.Id }).(pulumi.StringPtrOutput) } // The CA certificate (in PEM format) for TLS communications between kubelets and the control plane. -func (o LookupSKSClusterResultOutput) KubeletCa() pulumi.StringOutput { - return o.ApplyT(func(v LookupSKSClusterResult) string { return v.KubeletCa }).(pulumi.StringOutput) +func (o LookupSksClusterResultOutput) KubeletCa() pulumi.StringOutput { + return o.ApplyT(func(v LookupSksClusterResult) string { return v.KubeletCa }).(pulumi.StringOutput) } // A map of key/value labels. -func (o LookupSKSClusterResultOutput) Labels() pulumi.StringMapOutput { - return o.ApplyT(func(v LookupSKSClusterResult) map[string]string { return v.Labels }).(pulumi.StringMapOutput) +func (o LookupSksClusterResultOutput) Labels() pulumi.StringMapOutput { + return o.ApplyT(func(v LookupSksClusterResult) map[string]string { return v.Labels }).(pulumi.StringMapOutput) } // Deploy the [Kubernetes Metrics Server](https://github.com/kubernetes-sigs/metrics-server/) in the control plane (boolean; default: `true`; may only be set at creation time). -func (o LookupSKSClusterResultOutput) MetricsServer() pulumi.BoolPtrOutput { - return o.ApplyT(func(v LookupSKSClusterResult) *bool { return v.MetricsServer }).(pulumi.BoolPtrOutput) +func (o LookupSksClusterResultOutput) MetricsServer() pulumi.BoolPtrOutput { + return o.ApplyT(func(v LookupSksClusterResult) *bool { return v.MetricsServer }).(pulumi.BoolPtrOutput) } -func (o LookupSKSClusterResultOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v LookupSKSClusterResult) *string { return v.Name }).(pulumi.StringPtrOutput) +func (o LookupSksClusterResultOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupSksClusterResult) *string { return v.Name }).(pulumi.StringPtrOutput) } // The list of exoscale*sks*nodepool (IDs) attached to the cluster. -func (o LookupSKSClusterResultOutput) Nodepools() pulumi.StringArrayOutput { - return o.ApplyT(func(v LookupSKSClusterResult) []string { return v.Nodepools }).(pulumi.StringArrayOutput) +func (o LookupSksClusterResultOutput) Nodepools() pulumi.StringArrayOutput { + return o.ApplyT(func(v LookupSksClusterResult) []string { return v.Nodepools }).(pulumi.StringArrayOutput) } // An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. -func (o LookupSKSClusterResultOutput) Oidc() GetSKSClusterOidcOutput { - return o.ApplyT(func(v LookupSKSClusterResult) GetSKSClusterOidc { return v.Oidc }).(GetSKSClusterOidcOutput) +func (o LookupSksClusterResultOutput) Oidc() GetSksClusterOidcOutput { + return o.ApplyT(func(v LookupSksClusterResult) GetSksClusterOidc { return v.Oidc }).(GetSksClusterOidcOutput) } // The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). -func (o LookupSKSClusterResultOutput) ServiceLevel() pulumi.StringPtrOutput { - return o.ApplyT(func(v LookupSKSClusterResult) *string { return v.ServiceLevel }).(pulumi.StringPtrOutput) +func (o LookupSksClusterResultOutput) ServiceLevel() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupSksClusterResult) *string { return v.ServiceLevel }).(pulumi.StringPtrOutput) } // The cluster state. -func (o LookupSKSClusterResultOutput) State() pulumi.StringOutput { - return o.ApplyT(func(v LookupSKSClusterResult) string { return v.State }).(pulumi.StringOutput) +func (o LookupSksClusterResultOutput) State() pulumi.StringOutput { + return o.ApplyT(func(v LookupSksClusterResult) string { return v.State }).(pulumi.StringOutput) } // The version of the control plane (default: latest version available from the API; see `exo compute sks versions` for reference; may only be set at creation time). -func (o LookupSKSClusterResultOutput) Version() pulumi.StringOutput { - return o.ApplyT(func(v LookupSKSClusterResult) string { return v.Version }).(pulumi.StringOutput) +func (o LookupSksClusterResultOutput) Version() pulumi.StringOutput { + return o.ApplyT(func(v LookupSksClusterResult) string { return v.Version }).(pulumi.StringOutput) } -func (o LookupSKSClusterResultOutput) Zone() pulumi.StringOutput { - return o.ApplyT(func(v LookupSKSClusterResult) string { return v.Zone }).(pulumi.StringOutput) +func (o LookupSksClusterResultOutput) Zone() pulumi.StringOutput { + return o.ApplyT(func(v LookupSksClusterResult) string { return v.Zone }).(pulumi.StringOutput) } func init() { - pulumi.RegisterOutputType(LookupSKSClusterResultOutput{}) + pulumi.RegisterOutputType(LookupSksClusterResultOutput{}) } diff --git a/sdk/go/exoscale/getSKSClusterList.go b/sdk/go/exoscale/getSksClusterList.go similarity index 65% rename from sdk/go/exoscale/getSKSClusterList.go rename to sdk/go/exoscale/getSksClusterList.go index dfba022e..27452c6b 100644 --- a/sdk/go/exoscale/getSKSClusterList.go +++ b/sdk/go/exoscale/getSksClusterList.go @@ -11,18 +11,18 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) -func GetSKSClusterList(ctx *pulumi.Context, args *GetSKSClusterListArgs, opts ...pulumi.InvokeOption) (*GetSKSClusterListResult, error) { +func GetSksClusterList(ctx *pulumi.Context, args *GetSksClusterListArgs, opts ...pulumi.InvokeOption) (*GetSksClusterListResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSKSClusterListResult - err := ctx.Invoke("exoscale:index/getSKSClusterList:getSKSClusterList", args, &rv, opts...) + var rv GetSksClusterListResult + err := ctx.Invoke("exoscale:index/getSksClusterList:getSksClusterList", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } -// A collection of arguments for invoking getSKSClusterList. -type GetSKSClusterListArgs struct { +// A collection of arguments for invoking getSksClusterList. +type GetSksClusterListArgs struct { AggregationCa *string `pulumi:"aggregationCa"` AutoUpgrade *bool `pulumi:"autoUpgrade"` Cni *string `pulumi:"cni"` @@ -42,13 +42,13 @@ type GetSKSClusterListArgs struct { Zone string `pulumi:"zone"` } -// A collection of values returned by getSKSClusterList. -type GetSKSClusterListResult struct { +// A collection of values returned by getSksClusterList. +type GetSksClusterListResult struct { // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. AggregationCa *string `pulumi:"aggregationCa"` // Match against this bool AutoUpgrade *bool `pulumi:"autoUpgrade"` - Clusters []GetSKSClusterListCluster `pulumi:"clusters"` + Clusters []GetSksClusterListCluster `pulumi:"clusters"` // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. Cni *string `pulumi:"cni"` // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. @@ -81,21 +81,21 @@ type GetSKSClusterListResult struct { Zone string `pulumi:"zone"` } -func GetSKSClusterListOutput(ctx *pulumi.Context, args GetSKSClusterListOutputArgs, opts ...pulumi.InvokeOption) GetSKSClusterListResultOutput { +func GetSksClusterListOutput(ctx *pulumi.Context, args GetSksClusterListOutputArgs, opts ...pulumi.InvokeOption) GetSksClusterListResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetSKSClusterListResult, error) { - args := v.(GetSKSClusterListArgs) - r, err := GetSKSClusterList(ctx, &args, opts...) - var s GetSKSClusterListResult + ApplyT(func(v interface{}) (GetSksClusterListResult, error) { + args := v.(GetSksClusterListArgs) + r, err := GetSksClusterList(ctx, &args, opts...) + var s GetSksClusterListResult if r != nil { s = *r } return s, err - }).(GetSKSClusterListResultOutput) + }).(GetSksClusterListResultOutput) } -// A collection of arguments for invoking getSKSClusterList. -type GetSKSClusterListOutputArgs struct { +// A collection of arguments for invoking getSksClusterList. +type GetSksClusterListOutputArgs struct { AggregationCa pulumi.StringPtrInput `pulumi:"aggregationCa"` AutoUpgrade pulumi.BoolPtrInput `pulumi:"autoUpgrade"` Cni pulumi.StringPtrInput `pulumi:"cni"` @@ -115,114 +115,114 @@ type GetSKSClusterListOutputArgs struct { Zone pulumi.StringInput `pulumi:"zone"` } -func (GetSKSClusterListOutputArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetSKSClusterListArgs)(nil)).Elem() +func (GetSksClusterListOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetSksClusterListArgs)(nil)).Elem() } -// A collection of values returned by getSKSClusterList. -type GetSKSClusterListResultOutput struct{ *pulumi.OutputState } +// A collection of values returned by getSksClusterList. +type GetSksClusterListResultOutput struct{ *pulumi.OutputState } -func (GetSKSClusterListResultOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetSKSClusterListResult)(nil)).Elem() +func (GetSksClusterListResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetSksClusterListResult)(nil)).Elem() } -func (o GetSKSClusterListResultOutput) ToGetSKSClusterListResultOutput() GetSKSClusterListResultOutput { +func (o GetSksClusterListResultOutput) ToGetSksClusterListResultOutput() GetSksClusterListResultOutput { return o } -func (o GetSKSClusterListResultOutput) ToGetSKSClusterListResultOutputWithContext(ctx context.Context) GetSKSClusterListResultOutput { +func (o GetSksClusterListResultOutput) ToGetSksClusterListResultOutputWithContext(ctx context.Context) GetSksClusterListResultOutput { return o } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSClusterListResultOutput) AggregationCa() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterListResult) *string { return v.AggregationCa }).(pulumi.StringPtrOutput) +func (o GetSksClusterListResultOutput) AggregationCa() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterListResult) *string { return v.AggregationCa }).(pulumi.StringPtrOutput) } // Match against this bool -func (o GetSKSClusterListResultOutput) AutoUpgrade() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetSKSClusterListResult) *bool { return v.AutoUpgrade }).(pulumi.BoolPtrOutput) +func (o GetSksClusterListResultOutput) AutoUpgrade() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetSksClusterListResult) *bool { return v.AutoUpgrade }).(pulumi.BoolPtrOutput) } -func (o GetSKSClusterListResultOutput) Clusters() GetSKSClusterListClusterArrayOutput { - return o.ApplyT(func(v GetSKSClusterListResult) []GetSKSClusterListCluster { return v.Clusters }).(GetSKSClusterListClusterArrayOutput) +func (o GetSksClusterListResultOutput) Clusters() GetSksClusterListClusterArrayOutput { + return o.ApplyT(func(v GetSksClusterListResult) []GetSksClusterListCluster { return v.Clusters }).(GetSksClusterListClusterArrayOutput) } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSClusterListResultOutput) Cni() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterListResult) *string { return v.Cni }).(pulumi.StringPtrOutput) +func (o GetSksClusterListResultOutput) Cni() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterListResult) *string { return v.Cni }).(pulumi.StringPtrOutput) } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSClusterListResultOutput) ControlPlaneCa() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterListResult) *string { return v.ControlPlaneCa }).(pulumi.StringPtrOutput) +func (o GetSksClusterListResultOutput) ControlPlaneCa() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterListResult) *string { return v.ControlPlaneCa }).(pulumi.StringPtrOutput) } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSClusterListResultOutput) CreatedAt() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterListResult) *string { return v.CreatedAt }).(pulumi.StringPtrOutput) +func (o GetSksClusterListResultOutput) CreatedAt() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterListResult) *string { return v.CreatedAt }).(pulumi.StringPtrOutput) } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSClusterListResultOutput) Description() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterListResult) *string { return v.Description }).(pulumi.StringPtrOutput) +func (o GetSksClusterListResultOutput) Description() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterListResult) *string { return v.Description }).(pulumi.StringPtrOutput) } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSClusterListResultOutput) Endpoint() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterListResult) *string { return v.Endpoint }).(pulumi.StringPtrOutput) +func (o GetSksClusterListResultOutput) Endpoint() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterListResult) *string { return v.Endpoint }).(pulumi.StringPtrOutput) } // Match against this bool -func (o GetSKSClusterListResultOutput) ExoscaleCcm() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetSKSClusterListResult) *bool { return v.ExoscaleCcm }).(pulumi.BoolPtrOutput) +func (o GetSksClusterListResultOutput) ExoscaleCcm() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetSksClusterListResult) *bool { return v.ExoscaleCcm }).(pulumi.BoolPtrOutput) } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSClusterListResultOutput) Id() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterListResult) *string { return v.Id }).(pulumi.StringPtrOutput) +func (o GetSksClusterListResultOutput) Id() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterListResult) *string { return v.Id }).(pulumi.StringPtrOutput) } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSClusterListResultOutput) KubeletCa() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterListResult) *string { return v.KubeletCa }).(pulumi.StringPtrOutput) +func (o GetSksClusterListResultOutput) KubeletCa() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterListResult) *string { return v.KubeletCa }).(pulumi.StringPtrOutput) } // Match against key/values. Keys are matched exactly, while values may be matched as a regex if you supply a string that begins and ends with "/" -func (o GetSKSClusterListResultOutput) Labels() pulumi.StringMapOutput { - return o.ApplyT(func(v GetSKSClusterListResult) map[string]string { return v.Labels }).(pulumi.StringMapOutput) +func (o GetSksClusterListResultOutput) Labels() pulumi.StringMapOutput { + return o.ApplyT(func(v GetSksClusterListResult) map[string]string { return v.Labels }).(pulumi.StringMapOutput) } // Match against this bool -func (o GetSKSClusterListResultOutput) MetricsServer() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetSKSClusterListResult) *bool { return v.MetricsServer }).(pulumi.BoolPtrOutput) +func (o GetSksClusterListResultOutput) MetricsServer() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetSksClusterListResult) *bool { return v.MetricsServer }).(pulumi.BoolPtrOutput) } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSClusterListResultOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterListResult) *string { return v.Name }).(pulumi.StringPtrOutput) +func (o GetSksClusterListResultOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterListResult) *string { return v.Name }).(pulumi.StringPtrOutput) } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSClusterListResultOutput) ServiceLevel() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterListResult) *string { return v.ServiceLevel }).(pulumi.StringPtrOutput) +func (o GetSksClusterListResultOutput) ServiceLevel() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterListResult) *string { return v.ServiceLevel }).(pulumi.StringPtrOutput) } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSClusterListResultOutput) State() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterListResult) *string { return v.State }).(pulumi.StringPtrOutput) +func (o GetSksClusterListResultOutput) State() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterListResult) *string { return v.State }).(pulumi.StringPtrOutput) } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSClusterListResultOutput) Version() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterListResult) *string { return v.Version }).(pulumi.StringPtrOutput) +func (o GetSksClusterListResultOutput) Version() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterListResult) *string { return v.Version }).(pulumi.StringPtrOutput) } // The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. -func (o GetSKSClusterListResultOutput) Zone() pulumi.StringOutput { - return o.ApplyT(func(v GetSKSClusterListResult) string { return v.Zone }).(pulumi.StringOutput) +func (o GetSksClusterListResultOutput) Zone() pulumi.StringOutput { + return o.ApplyT(func(v GetSksClusterListResult) string { return v.Zone }).(pulumi.StringOutput) } func init() { - pulumi.RegisterOutputType(GetSKSClusterListResultOutput{}) + pulumi.RegisterOutputType(GetSksClusterListResultOutput{}) } diff --git a/sdk/go/exoscale/getSKSNodepool.go b/sdk/go/exoscale/getSksNodepool.go similarity index 66% rename from sdk/go/exoscale/getSKSNodepool.go rename to sdk/go/exoscale/getSksNodepool.go index dc6349a8..0a0881d5 100644 --- a/sdk/go/exoscale/getSKSNodepool.go +++ b/sdk/go/exoscale/getSksNodepool.go @@ -11,18 +11,18 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) -func LookupSKSNodepool(ctx *pulumi.Context, args *LookupSKSNodepoolArgs, opts ...pulumi.InvokeOption) (*LookupSKSNodepoolResult, error) { +func LookupSksNodepool(ctx *pulumi.Context, args *LookupSksNodepoolArgs, opts ...pulumi.InvokeOption) (*LookupSksNodepoolResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSKSNodepoolResult - err := ctx.Invoke("exoscale:index/getSKSNodepool:getSKSNodepool", args, &rv, opts...) + var rv LookupSksNodepoolResult + err := ctx.Invoke("exoscale:index/getSksNodepool:getSksNodepool", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } -// A collection of arguments for invoking getSKSNodepool. -type LookupSKSNodepoolArgs struct { +// A collection of arguments for invoking getSksNodepool. +type LookupSksNodepoolArgs struct { // A list of exoscale*anti*affinity_group (IDs) to be attached to the managed instances. AntiAffinityGroupIds []string `pulumi:"antiAffinityGroupIds"` ClusterId string `pulumi:"clusterId"` @@ -54,7 +54,7 @@ type LookupSKSNodepoolArgs struct { State *string `pulumi:"state"` // Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time). StorageLvm *bool `pulumi:"storageLvm"` - // A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + // A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }'). Taints map[string]string `pulumi:"taints"` // The managed instances template ID. TemplateId *string `pulumi:"templateId"` @@ -63,8 +63,8 @@ type LookupSKSNodepoolArgs struct { Zone string `pulumi:"zone"` } -// A collection of values returned by getSKSNodepool. -type LookupSKSNodepoolResult struct { +// A collection of values returned by getSksNodepool. +type LookupSksNodepoolResult struct { // A list of exoscale*anti*affinity_group (IDs) to be attached to the managed instances. AntiAffinityGroupIds []string `pulumi:"antiAffinityGroupIds"` ClusterId string `pulumi:"clusterId"` @@ -96,7 +96,7 @@ type LookupSKSNodepoolResult struct { State string `pulumi:"state"` // Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time). StorageLvm *bool `pulumi:"storageLvm"` - // A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + // A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }'). Taints map[string]string `pulumi:"taints"` // The managed instances template ID. TemplateId string `pulumi:"templateId"` @@ -105,21 +105,21 @@ type LookupSKSNodepoolResult struct { Zone string `pulumi:"zone"` } -func LookupSKSNodepoolOutput(ctx *pulumi.Context, args LookupSKSNodepoolOutputArgs, opts ...pulumi.InvokeOption) LookupSKSNodepoolResultOutput { +func LookupSksNodepoolOutput(ctx *pulumi.Context, args LookupSksNodepoolOutputArgs, opts ...pulumi.InvokeOption) LookupSksNodepoolResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupSKSNodepoolResult, error) { - args := v.(LookupSKSNodepoolArgs) - r, err := LookupSKSNodepool(ctx, &args, opts...) - var s LookupSKSNodepoolResult + ApplyT(func(v interface{}) (LookupSksNodepoolResult, error) { + args := v.(LookupSksNodepoolArgs) + r, err := LookupSksNodepool(ctx, &args, opts...) + var s LookupSksNodepoolResult if r != nil { s = *r } return s, err - }).(LookupSKSNodepoolResultOutput) + }).(LookupSksNodepoolResultOutput) } -// A collection of arguments for invoking getSKSNodepool. -type LookupSKSNodepoolOutputArgs struct { +// A collection of arguments for invoking getSksNodepool. +type LookupSksNodepoolOutputArgs struct { // A list of exoscale*anti*affinity_group (IDs) to be attached to the managed instances. AntiAffinityGroupIds pulumi.StringArrayInput `pulumi:"antiAffinityGroupIds"` ClusterId pulumi.StringInput `pulumi:"clusterId"` @@ -151,7 +151,7 @@ type LookupSKSNodepoolOutputArgs struct { State pulumi.StringPtrInput `pulumi:"state"` // Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time). StorageLvm pulumi.BoolPtrInput `pulumi:"storageLvm"` - // A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + // A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }'). Taints pulumi.StringMapInput `pulumi:"taints"` // The managed instances template ID. TemplateId pulumi.StringPtrInput `pulumi:"templateId"` @@ -160,126 +160,126 @@ type LookupSKSNodepoolOutputArgs struct { Zone pulumi.StringInput `pulumi:"zone"` } -func (LookupSKSNodepoolOutputArgs) ElementType() reflect.Type { - return reflect.TypeOf((*LookupSKSNodepoolArgs)(nil)).Elem() +func (LookupSksNodepoolOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LookupSksNodepoolArgs)(nil)).Elem() } -// A collection of values returned by getSKSNodepool. -type LookupSKSNodepoolResultOutput struct{ *pulumi.OutputState } +// A collection of values returned by getSksNodepool. +type LookupSksNodepoolResultOutput struct{ *pulumi.OutputState } -func (LookupSKSNodepoolResultOutput) ElementType() reflect.Type { - return reflect.TypeOf((*LookupSKSNodepoolResult)(nil)).Elem() +func (LookupSksNodepoolResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LookupSksNodepoolResult)(nil)).Elem() } -func (o LookupSKSNodepoolResultOutput) ToLookupSKSNodepoolResultOutput() LookupSKSNodepoolResultOutput { +func (o LookupSksNodepoolResultOutput) ToLookupSksNodepoolResultOutput() LookupSksNodepoolResultOutput { return o } -func (o LookupSKSNodepoolResultOutput) ToLookupSKSNodepoolResultOutputWithContext(ctx context.Context) LookupSKSNodepoolResultOutput { +func (o LookupSksNodepoolResultOutput) ToLookupSksNodepoolResultOutputWithContext(ctx context.Context) LookupSksNodepoolResultOutput { return o } // A list of exoscale*anti*affinity_group (IDs) to be attached to the managed instances. -func (o LookupSKSNodepoolResultOutput) AntiAffinityGroupIds() pulumi.StringArrayOutput { - return o.ApplyT(func(v LookupSKSNodepoolResult) []string { return v.AntiAffinityGroupIds }).(pulumi.StringArrayOutput) +func (o LookupSksNodepoolResultOutput) AntiAffinityGroupIds() pulumi.StringArrayOutput { + return o.ApplyT(func(v LookupSksNodepoolResult) []string { return v.AntiAffinityGroupIds }).(pulumi.StringArrayOutput) } -func (o LookupSKSNodepoolResultOutput) ClusterId() pulumi.StringOutput { - return o.ApplyT(func(v LookupSKSNodepoolResult) string { return v.ClusterId }).(pulumi.StringOutput) +func (o LookupSksNodepoolResultOutput) ClusterId() pulumi.StringOutput { + return o.ApplyT(func(v LookupSksNodepoolResult) string { return v.ClusterId }).(pulumi.StringOutput) } // The pool creation date. -func (o LookupSKSNodepoolResultOutput) CreatedAt() pulumi.StringOutput { - return o.ApplyT(func(v LookupSKSNodepoolResult) string { return v.CreatedAt }).(pulumi.StringOutput) +func (o LookupSksNodepoolResultOutput) CreatedAt() pulumi.StringOutput { + return o.ApplyT(func(v LookupSksNodepoolResult) string { return v.CreatedAt }).(pulumi.StringOutput) } // A deploy target ID. -func (o LookupSKSNodepoolResultOutput) DeployTargetId() pulumi.StringPtrOutput { - return o.ApplyT(func(v LookupSKSNodepoolResult) *string { return v.DeployTargetId }).(pulumi.StringPtrOutput) +func (o LookupSksNodepoolResultOutput) DeployTargetId() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupSksNodepoolResult) *string { return v.DeployTargetId }).(pulumi.StringPtrOutput) } // A free-form text describing the pool. -func (o LookupSKSNodepoolResultOutput) Description() pulumi.StringPtrOutput { - return o.ApplyT(func(v LookupSKSNodepoolResult) *string { return v.Description }).(pulumi.StringPtrOutput) +func (o LookupSksNodepoolResultOutput) Description() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupSksNodepoolResult) *string { return v.Description }).(pulumi.StringPtrOutput) } // The managed instances disk size (GiB; default: `50`). -func (o LookupSKSNodepoolResultOutput) DiskSize() pulumi.IntPtrOutput { - return o.ApplyT(func(v LookupSKSNodepoolResult) *int { return v.DiskSize }).(pulumi.IntPtrOutput) +func (o LookupSksNodepoolResultOutput) DiskSize() pulumi.IntPtrOutput { + return o.ApplyT(func(v LookupSksNodepoolResult) *int { return v.DiskSize }).(pulumi.IntPtrOutput) } // The ID of this resource. -func (o LookupSKSNodepoolResultOutput) Id() pulumi.StringPtrOutput { - return o.ApplyT(func(v LookupSKSNodepoolResult) *string { return v.Id }).(pulumi.StringPtrOutput) +func (o LookupSksNodepoolResultOutput) Id() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupSksNodepoolResult) *string { return v.Id }).(pulumi.StringPtrOutput) } // The underlying exoscale*instance*pool ID. -func (o LookupSKSNodepoolResultOutput) InstancePoolId() pulumi.StringOutput { - return o.ApplyT(func(v LookupSKSNodepoolResult) string { return v.InstancePoolId }).(pulumi.StringOutput) +func (o LookupSksNodepoolResultOutput) InstancePoolId() pulumi.StringOutput { + return o.ApplyT(func(v LookupSksNodepoolResult) string { return v.InstancePoolId }).(pulumi.StringOutput) } // The string used to prefix the managed instances name (default `pool`). -func (o LookupSKSNodepoolResultOutput) InstancePrefix() pulumi.StringPtrOutput { - return o.ApplyT(func(v LookupSKSNodepoolResult) *string { return v.InstancePrefix }).(pulumi.StringPtrOutput) +func (o LookupSksNodepoolResultOutput) InstancePrefix() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupSksNodepoolResult) *string { return v.InstancePrefix }).(pulumi.StringPtrOutput) } // The managed compute instances type (`.`, e.g. `standard.medium`; use the [Exoscale CLI](https://github.com/exoscale/cli/) - `exo compute instance-type list` - for the list of available types). -func (o LookupSKSNodepoolResultOutput) InstanceType() pulumi.StringPtrOutput { - return o.ApplyT(func(v LookupSKSNodepoolResult) *string { return v.InstanceType }).(pulumi.StringPtrOutput) +func (o LookupSksNodepoolResultOutput) InstanceType() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupSksNodepoolResult) *string { return v.InstanceType }).(pulumi.StringPtrOutput) } // A map of key/value labels. -func (o LookupSKSNodepoolResultOutput) Labels() pulumi.StringMapOutput { - return o.ApplyT(func(v LookupSKSNodepoolResult) map[string]string { return v.Labels }).(pulumi.StringMapOutput) +func (o LookupSksNodepoolResultOutput) Labels() pulumi.StringMapOutput { + return o.ApplyT(func(v LookupSksNodepoolResult) map[string]string { return v.Labels }).(pulumi.StringMapOutput) } -func (o LookupSKSNodepoolResultOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v LookupSKSNodepoolResult) *string { return v.Name }).(pulumi.StringPtrOutput) +func (o LookupSksNodepoolResultOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupSksNodepoolResult) *string { return v.Name }).(pulumi.StringPtrOutput) } // A list of exoscale*private*network (IDs) to be attached to the managed instances. -func (o LookupSKSNodepoolResultOutput) PrivateNetworkIds() pulumi.StringArrayOutput { - return o.ApplyT(func(v LookupSKSNodepoolResult) []string { return v.PrivateNetworkIds }).(pulumi.StringArrayOutput) +func (o LookupSksNodepoolResultOutput) PrivateNetworkIds() pulumi.StringArrayOutput { + return o.ApplyT(func(v LookupSksNodepoolResult) []string { return v.PrivateNetworkIds }).(pulumi.StringArrayOutput) } // A list of exoscale*security*group (IDs) to be attached to the managed instances. -func (o LookupSKSNodepoolResultOutput) SecurityGroupIds() pulumi.StringArrayOutput { - return o.ApplyT(func(v LookupSKSNodepoolResult) []string { return v.SecurityGroupIds }).(pulumi.StringArrayOutput) +func (o LookupSksNodepoolResultOutput) SecurityGroupIds() pulumi.StringArrayOutput { + return o.ApplyT(func(v LookupSksNodepoolResult) []string { return v.SecurityGroupIds }).(pulumi.StringArrayOutput) } -func (o LookupSKSNodepoolResultOutput) Size() pulumi.IntPtrOutput { - return o.ApplyT(func(v LookupSKSNodepoolResult) *int { return v.Size }).(pulumi.IntPtrOutput) +func (o LookupSksNodepoolResultOutput) Size() pulumi.IntPtrOutput { + return o.ApplyT(func(v LookupSksNodepoolResult) *int { return v.Size }).(pulumi.IntPtrOutput) } // The current pool state. -func (o LookupSKSNodepoolResultOutput) State() pulumi.StringOutput { - return o.ApplyT(func(v LookupSKSNodepoolResult) string { return v.State }).(pulumi.StringOutput) +func (o LookupSksNodepoolResultOutput) State() pulumi.StringOutput { + return o.ApplyT(func(v LookupSksNodepoolResult) string { return v.State }).(pulumi.StringOutput) } // Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time). -func (o LookupSKSNodepoolResultOutput) StorageLvm() pulumi.BoolPtrOutput { - return o.ApplyT(func(v LookupSKSNodepoolResult) *bool { return v.StorageLvm }).(pulumi.BoolPtrOutput) +func (o LookupSksNodepoolResultOutput) StorageLvm() pulumi.BoolPtrOutput { + return o.ApplyT(func(v LookupSksNodepoolResult) *bool { return v.StorageLvm }).(pulumi.BoolPtrOutput) } -// A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). -func (o LookupSKSNodepoolResultOutput) Taints() pulumi.StringMapOutput { - return o.ApplyT(func(v LookupSKSNodepoolResult) map[string]string { return v.Taints }).(pulumi.StringMapOutput) +// A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }'). +func (o LookupSksNodepoolResultOutput) Taints() pulumi.StringMapOutput { + return o.ApplyT(func(v LookupSksNodepoolResult) map[string]string { return v.Taints }).(pulumi.StringMapOutput) } // The managed instances template ID. -func (o LookupSKSNodepoolResultOutput) TemplateId() pulumi.StringOutput { - return o.ApplyT(func(v LookupSKSNodepoolResult) string { return v.TemplateId }).(pulumi.StringOutput) +func (o LookupSksNodepoolResultOutput) TemplateId() pulumi.StringOutput { + return o.ApplyT(func(v LookupSksNodepoolResult) string { return v.TemplateId }).(pulumi.StringOutput) } // The managed instances version. -func (o LookupSKSNodepoolResultOutput) Version() pulumi.StringOutput { - return o.ApplyT(func(v LookupSKSNodepoolResult) string { return v.Version }).(pulumi.StringOutput) +func (o LookupSksNodepoolResultOutput) Version() pulumi.StringOutput { + return o.ApplyT(func(v LookupSksNodepoolResult) string { return v.Version }).(pulumi.StringOutput) } -func (o LookupSKSNodepoolResultOutput) Zone() pulumi.StringOutput { - return o.ApplyT(func(v LookupSKSNodepoolResult) string { return v.Zone }).(pulumi.StringOutput) +func (o LookupSksNodepoolResultOutput) Zone() pulumi.StringOutput { + return o.ApplyT(func(v LookupSksNodepoolResult) string { return v.Zone }).(pulumi.StringOutput) } func init() { - pulumi.RegisterOutputType(LookupSKSNodepoolResultOutput{}) + pulumi.RegisterOutputType(LookupSksNodepoolResultOutput{}) } diff --git a/sdk/go/exoscale/getSKSNodepoolList.go b/sdk/go/exoscale/getSksNodepoolList.go similarity index 66% rename from sdk/go/exoscale/getSKSNodepoolList.go rename to sdk/go/exoscale/getSksNodepoolList.go index 2073341b..4465ef49 100644 --- a/sdk/go/exoscale/getSKSNodepoolList.go +++ b/sdk/go/exoscale/getSksNodepoolList.go @@ -11,18 +11,18 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) -func GetSKSNodepoolList(ctx *pulumi.Context, args *GetSKSNodepoolListArgs, opts ...pulumi.InvokeOption) (*GetSKSNodepoolListResult, error) { +func GetSksNodepoolList(ctx *pulumi.Context, args *GetSksNodepoolListArgs, opts ...pulumi.InvokeOption) (*GetSksNodepoolListResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSKSNodepoolListResult - err := ctx.Invoke("exoscale:index/getSKSNodepoolList:getSKSNodepoolList", args, &rv, opts...) + var rv GetSksNodepoolListResult + err := ctx.Invoke("exoscale:index/getSksNodepoolList:getSksNodepoolList", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } -// A collection of arguments for invoking getSKSNodepoolList. -type GetSKSNodepoolListArgs struct { +// A collection of arguments for invoking getSksNodepoolList. +type GetSksNodepoolListArgs struct { ClusterId *string `pulumi:"clusterId"` CreatedAt *string `pulumi:"createdAt"` DeployTargetId *string `pulumi:"deployTargetId"` @@ -43,8 +43,8 @@ type GetSKSNodepoolListArgs struct { Zone string `pulumi:"zone"` } -// A collection of values returned by getSKSNodepoolList. -type GetSKSNodepoolListResult struct { +// A collection of values returned by getSksNodepoolList. +type GetSksNodepoolListResult struct { // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. ClusterId *string `pulumi:"clusterId"` // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. @@ -67,7 +67,7 @@ type GetSKSNodepoolListResult struct { Labels map[string]string `pulumi:"labels"` // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. Name *string `pulumi:"name"` - Nodepools []GetSKSNodepoolListNodepool `pulumi:"nodepools"` + Nodepools []GetSksNodepoolListNodepool `pulumi:"nodepools"` // Match against this int Size *int `pulumi:"size"` // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. @@ -84,21 +84,21 @@ type GetSKSNodepoolListResult struct { Zone string `pulumi:"zone"` } -func GetSKSNodepoolListOutput(ctx *pulumi.Context, args GetSKSNodepoolListOutputArgs, opts ...pulumi.InvokeOption) GetSKSNodepoolListResultOutput { +func GetSksNodepoolListOutput(ctx *pulumi.Context, args GetSksNodepoolListOutputArgs, opts ...pulumi.InvokeOption) GetSksNodepoolListResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetSKSNodepoolListResult, error) { - args := v.(GetSKSNodepoolListArgs) - r, err := GetSKSNodepoolList(ctx, &args, opts...) - var s GetSKSNodepoolListResult + ApplyT(func(v interface{}) (GetSksNodepoolListResult, error) { + args := v.(GetSksNodepoolListArgs) + r, err := GetSksNodepoolList(ctx, &args, opts...) + var s GetSksNodepoolListResult if r != nil { s = *r } return s, err - }).(GetSKSNodepoolListResultOutput) + }).(GetSksNodepoolListResultOutput) } -// A collection of arguments for invoking getSKSNodepoolList. -type GetSKSNodepoolListOutputArgs struct { +// A collection of arguments for invoking getSksNodepoolList. +type GetSksNodepoolListOutputArgs struct { ClusterId pulumi.StringPtrInput `pulumi:"clusterId"` CreatedAt pulumi.StringPtrInput `pulumi:"createdAt"` DeployTargetId pulumi.StringPtrInput `pulumi:"deployTargetId"` @@ -119,119 +119,119 @@ type GetSKSNodepoolListOutputArgs struct { Zone pulumi.StringInput `pulumi:"zone"` } -func (GetSKSNodepoolListOutputArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetSKSNodepoolListArgs)(nil)).Elem() +func (GetSksNodepoolListOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetSksNodepoolListArgs)(nil)).Elem() } -// A collection of values returned by getSKSNodepoolList. -type GetSKSNodepoolListResultOutput struct{ *pulumi.OutputState } +// A collection of values returned by getSksNodepoolList. +type GetSksNodepoolListResultOutput struct{ *pulumi.OutputState } -func (GetSKSNodepoolListResultOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetSKSNodepoolListResult)(nil)).Elem() +func (GetSksNodepoolListResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetSksNodepoolListResult)(nil)).Elem() } -func (o GetSKSNodepoolListResultOutput) ToGetSKSNodepoolListResultOutput() GetSKSNodepoolListResultOutput { +func (o GetSksNodepoolListResultOutput) ToGetSksNodepoolListResultOutput() GetSksNodepoolListResultOutput { return o } -func (o GetSKSNodepoolListResultOutput) ToGetSKSNodepoolListResultOutputWithContext(ctx context.Context) GetSKSNodepoolListResultOutput { +func (o GetSksNodepoolListResultOutput) ToGetSksNodepoolListResultOutputWithContext(ctx context.Context) GetSksNodepoolListResultOutput { return o } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSNodepoolListResultOutput) ClusterId() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListResult) *string { return v.ClusterId }).(pulumi.StringPtrOutput) +func (o GetSksNodepoolListResultOutput) ClusterId() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListResult) *string { return v.ClusterId }).(pulumi.StringPtrOutput) } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSNodepoolListResultOutput) CreatedAt() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListResult) *string { return v.CreatedAt }).(pulumi.StringPtrOutput) +func (o GetSksNodepoolListResultOutput) CreatedAt() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListResult) *string { return v.CreatedAt }).(pulumi.StringPtrOutput) } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSNodepoolListResultOutput) DeployTargetId() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListResult) *string { return v.DeployTargetId }).(pulumi.StringPtrOutput) +func (o GetSksNodepoolListResultOutput) DeployTargetId() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListResult) *string { return v.DeployTargetId }).(pulumi.StringPtrOutput) } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSNodepoolListResultOutput) Description() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListResult) *string { return v.Description }).(pulumi.StringPtrOutput) +func (o GetSksNodepoolListResultOutput) Description() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListResult) *string { return v.Description }).(pulumi.StringPtrOutput) } // Match against this int -func (o GetSKSNodepoolListResultOutput) DiskSize() pulumi.IntPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListResult) *int { return v.DiskSize }).(pulumi.IntPtrOutput) +func (o GetSksNodepoolListResultOutput) DiskSize() pulumi.IntPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListResult) *int { return v.DiskSize }).(pulumi.IntPtrOutput) } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSNodepoolListResultOutput) Id() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListResult) *string { return v.Id }).(pulumi.StringPtrOutput) +func (o GetSksNodepoolListResultOutput) Id() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListResult) *string { return v.Id }).(pulumi.StringPtrOutput) } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSNodepoolListResultOutput) InstancePoolId() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListResult) *string { return v.InstancePoolId }).(pulumi.StringPtrOutput) +func (o GetSksNodepoolListResultOutput) InstancePoolId() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListResult) *string { return v.InstancePoolId }).(pulumi.StringPtrOutput) } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSNodepoolListResultOutput) InstancePrefix() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListResult) *string { return v.InstancePrefix }).(pulumi.StringPtrOutput) +func (o GetSksNodepoolListResultOutput) InstancePrefix() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListResult) *string { return v.InstancePrefix }).(pulumi.StringPtrOutput) } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSNodepoolListResultOutput) InstanceType() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListResult) *string { return v.InstanceType }).(pulumi.StringPtrOutput) +func (o GetSksNodepoolListResultOutput) InstanceType() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListResult) *string { return v.InstanceType }).(pulumi.StringPtrOutput) } // Match against key/values. Keys are matched exactly, while values may be matched as a regex if you supply a string that begins and ends with "/" -func (o GetSKSNodepoolListResultOutput) Labels() pulumi.StringMapOutput { - return o.ApplyT(func(v GetSKSNodepoolListResult) map[string]string { return v.Labels }).(pulumi.StringMapOutput) +func (o GetSksNodepoolListResultOutput) Labels() pulumi.StringMapOutput { + return o.ApplyT(func(v GetSksNodepoolListResult) map[string]string { return v.Labels }).(pulumi.StringMapOutput) } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSNodepoolListResultOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListResult) *string { return v.Name }).(pulumi.StringPtrOutput) +func (o GetSksNodepoolListResultOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListResult) *string { return v.Name }).(pulumi.StringPtrOutput) } -func (o GetSKSNodepoolListResultOutput) Nodepools() GetSKSNodepoolListNodepoolArrayOutput { - return o.ApplyT(func(v GetSKSNodepoolListResult) []GetSKSNodepoolListNodepool { return v.Nodepools }).(GetSKSNodepoolListNodepoolArrayOutput) +func (o GetSksNodepoolListResultOutput) Nodepools() GetSksNodepoolListNodepoolArrayOutput { + return o.ApplyT(func(v GetSksNodepoolListResult) []GetSksNodepoolListNodepool { return v.Nodepools }).(GetSksNodepoolListNodepoolArrayOutput) } // Match against this int -func (o GetSKSNodepoolListResultOutput) Size() pulumi.IntPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListResult) *int { return v.Size }).(pulumi.IntPtrOutput) +func (o GetSksNodepoolListResultOutput) Size() pulumi.IntPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListResult) *int { return v.Size }).(pulumi.IntPtrOutput) } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSNodepoolListResultOutput) State() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListResult) *string { return v.State }).(pulumi.StringPtrOutput) +func (o GetSksNodepoolListResultOutput) State() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListResult) *string { return v.State }).(pulumi.StringPtrOutput) } // Match against this bool -func (o GetSKSNodepoolListResultOutput) StorageLvm() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListResult) *bool { return v.StorageLvm }).(pulumi.BoolPtrOutput) +func (o GetSksNodepoolListResultOutput) StorageLvm() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListResult) *bool { return v.StorageLvm }).(pulumi.BoolPtrOutput) } // Match against key/values. Keys are matched exactly, while values may be matched as a regex if you supply a string that begins and ends with "/" -func (o GetSKSNodepoolListResultOutput) Taints() pulumi.StringMapOutput { - return o.ApplyT(func(v GetSKSNodepoolListResult) map[string]string { return v.Taints }).(pulumi.StringMapOutput) +func (o GetSksNodepoolListResultOutput) Taints() pulumi.StringMapOutput { + return o.ApplyT(func(v GetSksNodepoolListResult) map[string]string { return v.Taints }).(pulumi.StringMapOutput) } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSNodepoolListResultOutput) TemplateId() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListResult) *string { return v.TemplateId }).(pulumi.StringPtrOutput) +func (o GetSksNodepoolListResultOutput) TemplateId() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListResult) *string { return v.TemplateId }).(pulumi.StringPtrOutput) } // Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. -func (o GetSKSNodepoolListResultOutput) Version() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListResult) *string { return v.Version }).(pulumi.StringPtrOutput) +func (o GetSksNodepoolListResultOutput) Version() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListResult) *string { return v.Version }).(pulumi.StringPtrOutput) } // The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. -func (o GetSKSNodepoolListResultOutput) Zone() pulumi.StringOutput { - return o.ApplyT(func(v GetSKSNodepoolListResult) string { return v.Zone }).(pulumi.StringOutput) +func (o GetSksNodepoolListResultOutput) Zone() pulumi.StringOutput { + return o.ApplyT(func(v GetSksNodepoolListResult) string { return v.Zone }).(pulumi.StringOutput) } func init() { - pulumi.RegisterOutputType(GetSKSNodepoolListResultOutput{}) + pulumi.RegisterOutputType(GetSksNodepoolListResultOutput{}) } diff --git a/sdk/go/exoscale/getTemplate.go b/sdk/go/exoscale/getTemplate.go index 3f5d6844..8e11a1ba 100644 --- a/sdk/go/exoscale/getTemplate.go +++ b/sdk/go/exoscale/getTemplate.go @@ -11,6 +11,38 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// Fetch Exoscale [Compute Instance Templates](https://community.exoscale.com/documentation/compute/custom-templates/) data. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// myTemplate, err := exoscale.GetTemplate(ctx, &exoscale.GetTemplateArgs{ +// Zone: "ch-gva-2", +// Name: pulumi.StringRef("Linux Ubuntu 22.04 LTS 64-bit"), +// }, nil) +// if err != nil { +// return err +// } +// ctx.Export("myTemplateId", myTemplate.Id) +// return nil +// }) +// } +// +// ``` +// +// Please refer to the examples +// directory for complete configuration examples. func GetTemplate(ctx *pulumi.Context, args *GetTemplateArgs, opts ...pulumi.InvokeOption) (*GetTemplateResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetTemplateResult diff --git a/sdk/go/exoscale/getZones.go b/sdk/go/exoscale/getZones.go index f6ee1450..5d265869 100644 --- a/sdk/go/exoscale/getZones.go +++ b/sdk/go/exoscale/getZones.go @@ -11,6 +11,35 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// Lists all zones. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// exampleZones, err := exoscale.GetZones(ctx, nil, nil) +// if err != nil { +// return err +// } +// ctx.Export("zonesOutput", exampleZones.Zones) +// return nil +// }) +// } +// +// ``` +// +// Please refer to the examples +// directory for complete configuration examples. func GetZones(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetZonesResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetZonesResult diff --git a/sdk/go/exoscale/iamAccessKey.go b/sdk/go/exoscale/iamAccessKey.go new file mode 100644 index 00000000..cc3ad484 --- /dev/null +++ b/sdk/go/exoscale/iamAccessKey.go @@ -0,0 +1,337 @@ +// 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 exoscale + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" +) + +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := exoscale.NewIamAccessKey(ctx, "mySosAccessKey", &exoscale.IamAccessKeyArgs{ +// Operations: pulumi.StringArray{ +// pulumi.String("get-sos-object"), +// pulumi.String("list-sos-bucket"), +// }, +// Resources: pulumi.StringArray{ +// pulumi.String("sos/bucket:my-bucket"), +// }, +// }) +// if err != nil { +// return err +// } +// _, err = exoscale.NewIamAccessKey(ctx, "mySksAccessKey", &exoscale.IamAccessKeyArgs{ +// Tags: pulumi.StringArray{ +// pulumi.String("sks"), +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// Please refer to the examples +// directory for complete configuration examples. +// +// > **NOTE:** You can retrieve the list of available operations and tags using the [Exoscale CLI](https://github.com/exoscale/cli/): `exo iam access-key list-operations`. +type IamAccessKey struct { + pulumi.CustomResourceState + + // The IAM access key (identifier). + Key pulumi.StringOutput `pulumi:"key"` + // ❗ The IAM access key name. + Name pulumi.StringOutput `pulumi:"name"` + // ❗ A list of API operations to restrict the key to. + Operations pulumi.StringArrayOutput `pulumi:"operations"` + // ❗ A list of API [resources](https://community.exoscale.com/documentation/iam/quick-start/#restricting-api-access-keys-to-resources) to restrict the key to (`/:`). + Resources pulumi.StringArrayOutput `pulumi:"resources"` + // The key secret. + Secret pulumi.StringOutput `pulumi:"secret"` + // ❗ A list of tags to restrict the key to. + Tags pulumi.StringArrayOutput `pulumi:"tags"` + TagsOperations pulumi.StringArrayOutput `pulumi:"tagsOperations"` +} + +// NewIamAccessKey registers a new resource with the given unique name, arguments, and options. +func NewIamAccessKey(ctx *pulumi.Context, + name string, args *IamAccessKeyArgs, opts ...pulumi.ResourceOption) (*IamAccessKey, error) { + if args == nil { + args = &IamAccessKeyArgs{} + } + + secrets := pulumi.AdditionalSecretOutputs([]string{ + "key", + "secret", + }) + opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) + var resource IamAccessKey + err := ctx.RegisterResource("exoscale:index/iamAccessKey:IamAccessKey", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetIamAccessKey gets an existing IamAccessKey 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 GetIamAccessKey(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *IamAccessKeyState, opts ...pulumi.ResourceOption) (*IamAccessKey, error) { + var resource IamAccessKey + err := ctx.ReadResource("exoscale:index/iamAccessKey:IamAccessKey", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering IamAccessKey resources. +type iamAccessKeyState struct { + // The IAM access key (identifier). + Key *string `pulumi:"key"` + // ❗ The IAM access key name. + Name *string `pulumi:"name"` + // ❗ A list of API operations to restrict the key to. + Operations []string `pulumi:"operations"` + // ❗ A list of API [resources](https://community.exoscale.com/documentation/iam/quick-start/#restricting-api-access-keys-to-resources) to restrict the key to (`/:`). + Resources []string `pulumi:"resources"` + // The key secret. + Secret *string `pulumi:"secret"` + // ❗ A list of tags to restrict the key to. + Tags []string `pulumi:"tags"` + TagsOperations []string `pulumi:"tagsOperations"` +} + +type IamAccessKeyState struct { + // The IAM access key (identifier). + Key pulumi.StringPtrInput + // ❗ The IAM access key name. + Name pulumi.StringPtrInput + // ❗ A list of API operations to restrict the key to. + Operations pulumi.StringArrayInput + // ❗ A list of API [resources](https://community.exoscale.com/documentation/iam/quick-start/#restricting-api-access-keys-to-resources) to restrict the key to (`/:`). + Resources pulumi.StringArrayInput + // The key secret. + Secret pulumi.StringPtrInput + // ❗ A list of tags to restrict the key to. + Tags pulumi.StringArrayInput + TagsOperations pulumi.StringArrayInput +} + +func (IamAccessKeyState) ElementType() reflect.Type { + return reflect.TypeOf((*iamAccessKeyState)(nil)).Elem() +} + +type iamAccessKeyArgs struct { + // ❗ The IAM access key name. + Name *string `pulumi:"name"` + // ❗ A list of API operations to restrict the key to. + Operations []string `pulumi:"operations"` + // ❗ A list of API [resources](https://community.exoscale.com/documentation/iam/quick-start/#restricting-api-access-keys-to-resources) to restrict the key to (`/:`). + Resources []string `pulumi:"resources"` + // ❗ A list of tags to restrict the key to. + Tags []string `pulumi:"tags"` +} + +// The set of arguments for constructing a IamAccessKey resource. +type IamAccessKeyArgs struct { + // ❗ The IAM access key name. + Name pulumi.StringPtrInput + // ❗ A list of API operations to restrict the key to. + Operations pulumi.StringArrayInput + // ❗ A list of API [resources](https://community.exoscale.com/documentation/iam/quick-start/#restricting-api-access-keys-to-resources) to restrict the key to (`/:`). + Resources pulumi.StringArrayInput + // ❗ A list of tags to restrict the key to. + Tags pulumi.StringArrayInput +} + +func (IamAccessKeyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*iamAccessKeyArgs)(nil)).Elem() +} + +type IamAccessKeyInput interface { + pulumi.Input + + ToIamAccessKeyOutput() IamAccessKeyOutput + ToIamAccessKeyOutputWithContext(ctx context.Context) IamAccessKeyOutput +} + +func (*IamAccessKey) ElementType() reflect.Type { + return reflect.TypeOf((**IamAccessKey)(nil)).Elem() +} + +func (i *IamAccessKey) ToIamAccessKeyOutput() IamAccessKeyOutput { + return i.ToIamAccessKeyOutputWithContext(context.Background()) +} + +func (i *IamAccessKey) ToIamAccessKeyOutputWithContext(ctx context.Context) IamAccessKeyOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamAccessKeyOutput) +} + +// IamAccessKeyArrayInput is an input type that accepts IamAccessKeyArray and IamAccessKeyArrayOutput values. +// You can construct a concrete instance of `IamAccessKeyArrayInput` via: +// +// IamAccessKeyArray{ IamAccessKeyArgs{...} } +type IamAccessKeyArrayInput interface { + pulumi.Input + + ToIamAccessKeyArrayOutput() IamAccessKeyArrayOutput + ToIamAccessKeyArrayOutputWithContext(context.Context) IamAccessKeyArrayOutput +} + +type IamAccessKeyArray []IamAccessKeyInput + +func (IamAccessKeyArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*IamAccessKey)(nil)).Elem() +} + +func (i IamAccessKeyArray) ToIamAccessKeyArrayOutput() IamAccessKeyArrayOutput { + return i.ToIamAccessKeyArrayOutputWithContext(context.Background()) +} + +func (i IamAccessKeyArray) ToIamAccessKeyArrayOutputWithContext(ctx context.Context) IamAccessKeyArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamAccessKeyArrayOutput) +} + +// IamAccessKeyMapInput is an input type that accepts IamAccessKeyMap and IamAccessKeyMapOutput values. +// You can construct a concrete instance of `IamAccessKeyMapInput` via: +// +// IamAccessKeyMap{ "key": IamAccessKeyArgs{...} } +type IamAccessKeyMapInput interface { + pulumi.Input + + ToIamAccessKeyMapOutput() IamAccessKeyMapOutput + ToIamAccessKeyMapOutputWithContext(context.Context) IamAccessKeyMapOutput +} + +type IamAccessKeyMap map[string]IamAccessKeyInput + +func (IamAccessKeyMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*IamAccessKey)(nil)).Elem() +} + +func (i IamAccessKeyMap) ToIamAccessKeyMapOutput() IamAccessKeyMapOutput { + return i.ToIamAccessKeyMapOutputWithContext(context.Background()) +} + +func (i IamAccessKeyMap) ToIamAccessKeyMapOutputWithContext(ctx context.Context) IamAccessKeyMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamAccessKeyMapOutput) +} + +type IamAccessKeyOutput struct{ *pulumi.OutputState } + +func (IamAccessKeyOutput) ElementType() reflect.Type { + return reflect.TypeOf((**IamAccessKey)(nil)).Elem() +} + +func (o IamAccessKeyOutput) ToIamAccessKeyOutput() IamAccessKeyOutput { + return o +} + +func (o IamAccessKeyOutput) ToIamAccessKeyOutputWithContext(ctx context.Context) IamAccessKeyOutput { + return o +} + +// The IAM access key (identifier). +func (o IamAccessKeyOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v *IamAccessKey) pulumi.StringOutput { return v.Key }).(pulumi.StringOutput) +} + +// ❗ The IAM access key name. +func (o IamAccessKeyOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *IamAccessKey) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// ❗ A list of API operations to restrict the key to. +func (o IamAccessKeyOutput) Operations() pulumi.StringArrayOutput { + return o.ApplyT(func(v *IamAccessKey) pulumi.StringArrayOutput { return v.Operations }).(pulumi.StringArrayOutput) +} + +// ❗ A list of API [resources](https://community.exoscale.com/documentation/iam/quick-start/#restricting-api-access-keys-to-resources) to restrict the key to (`/:`). +func (o IamAccessKeyOutput) Resources() pulumi.StringArrayOutput { + return o.ApplyT(func(v *IamAccessKey) pulumi.StringArrayOutput { return v.Resources }).(pulumi.StringArrayOutput) +} + +// The key secret. +func (o IamAccessKeyOutput) Secret() pulumi.StringOutput { + return o.ApplyT(func(v *IamAccessKey) pulumi.StringOutput { return v.Secret }).(pulumi.StringOutput) +} + +// ❗ A list of tags to restrict the key to. +func (o IamAccessKeyOutput) Tags() pulumi.StringArrayOutput { + return o.ApplyT(func(v *IamAccessKey) pulumi.StringArrayOutput { return v.Tags }).(pulumi.StringArrayOutput) +} + +func (o IamAccessKeyOutput) TagsOperations() pulumi.StringArrayOutput { + return o.ApplyT(func(v *IamAccessKey) pulumi.StringArrayOutput { return v.TagsOperations }).(pulumi.StringArrayOutput) +} + +type IamAccessKeyArrayOutput struct{ *pulumi.OutputState } + +func (IamAccessKeyArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*IamAccessKey)(nil)).Elem() +} + +func (o IamAccessKeyArrayOutput) ToIamAccessKeyArrayOutput() IamAccessKeyArrayOutput { + return o +} + +func (o IamAccessKeyArrayOutput) ToIamAccessKeyArrayOutputWithContext(ctx context.Context) IamAccessKeyArrayOutput { + return o +} + +func (o IamAccessKeyArrayOutput) Index(i pulumi.IntInput) IamAccessKeyOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *IamAccessKey { + return vs[0].([]*IamAccessKey)[vs[1].(int)] + }).(IamAccessKeyOutput) +} + +type IamAccessKeyMapOutput struct{ *pulumi.OutputState } + +func (IamAccessKeyMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*IamAccessKey)(nil)).Elem() +} + +func (o IamAccessKeyMapOutput) ToIamAccessKeyMapOutput() IamAccessKeyMapOutput { + return o +} + +func (o IamAccessKeyMapOutput) ToIamAccessKeyMapOutputWithContext(ctx context.Context) IamAccessKeyMapOutput { + return o +} + +func (o IamAccessKeyMapOutput) MapIndex(k pulumi.StringInput) IamAccessKeyOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *IamAccessKey { + return vs[0].(map[string]*IamAccessKey)[vs[1].(string)] + }).(IamAccessKeyOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*IamAccessKeyInput)(nil)).Elem(), &IamAccessKey{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamAccessKeyArrayInput)(nil)).Elem(), IamAccessKeyArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamAccessKeyMapInput)(nil)).Elem(), IamAccessKeyMap{}) + pulumi.RegisterOutputType(IamAccessKeyOutput{}) + pulumi.RegisterOutputType(IamAccessKeyArrayOutput{}) + pulumi.RegisterOutputType(IamAccessKeyMapOutput{}) +} diff --git a/sdk/go/exoscale/iamApiKey.go b/sdk/go/exoscale/iamApiKey.go new file mode 100644 index 00000000..38a6bfb0 --- /dev/null +++ b/sdk/go/exoscale/iamApiKey.go @@ -0,0 +1,268 @@ +// 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 exoscale + +import ( + "context" + "reflect" + + "errors" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" +) + +type IamApiKey struct { + pulumi.CustomResourceState + + // The IAM API Key to match. + Key pulumi.StringOutput `pulumi:"key"` + // ❗ IAM API Key name. + Name pulumi.StringOutput `pulumi:"name"` + // ❗ IAM API role ID. + RoleId pulumi.StringOutput `pulumi:"roleId"` + // Secret for the IAM API Key. + Secret pulumi.StringOutput `pulumi:"secret"` + Timeouts IamApiKeyTimeoutsPtrOutput `pulumi:"timeouts"` +} + +// NewIamApiKey registers a new resource with the given unique name, arguments, and options. +func NewIamApiKey(ctx *pulumi.Context, + name string, args *IamApiKeyArgs, opts ...pulumi.ResourceOption) (*IamApiKey, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.RoleId == nil { + return nil, errors.New("invalid value for required argument 'RoleId'") + } + secrets := pulumi.AdditionalSecretOutputs([]string{ + "secret", + }) + opts = append(opts, secrets) + opts = internal.PkgResourceDefaultOpts(opts) + var resource IamApiKey + err := ctx.RegisterResource("exoscale:index/iamApiKey:IamApiKey", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetIamApiKey gets an existing IamApiKey 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 GetIamApiKey(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *IamApiKeyState, opts ...pulumi.ResourceOption) (*IamApiKey, error) { + var resource IamApiKey + err := ctx.ReadResource("exoscale:index/iamApiKey:IamApiKey", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering IamApiKey resources. +type iamApiKeyState struct { + // The IAM API Key to match. + Key *string `pulumi:"key"` + // ❗ IAM API Key name. + Name *string `pulumi:"name"` + // ❗ IAM API role ID. + RoleId *string `pulumi:"roleId"` + // Secret for the IAM API Key. + Secret *string `pulumi:"secret"` + Timeouts *IamApiKeyTimeouts `pulumi:"timeouts"` +} + +type IamApiKeyState struct { + // The IAM API Key to match. + Key pulumi.StringPtrInput + // ❗ IAM API Key name. + Name pulumi.StringPtrInput + // ❗ IAM API role ID. + RoleId pulumi.StringPtrInput + // Secret for the IAM API Key. + Secret pulumi.StringPtrInput + Timeouts IamApiKeyTimeoutsPtrInput +} + +func (IamApiKeyState) ElementType() reflect.Type { + return reflect.TypeOf((*iamApiKeyState)(nil)).Elem() +} + +type iamApiKeyArgs struct { + // ❗ IAM API Key name. + Name *string `pulumi:"name"` + // ❗ IAM API role ID. + RoleId string `pulumi:"roleId"` + Timeouts *IamApiKeyTimeouts `pulumi:"timeouts"` +} + +// The set of arguments for constructing a IamApiKey resource. +type IamApiKeyArgs struct { + // ❗ IAM API Key name. + Name pulumi.StringPtrInput + // ❗ IAM API role ID. + RoleId pulumi.StringInput + Timeouts IamApiKeyTimeoutsPtrInput +} + +func (IamApiKeyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*iamApiKeyArgs)(nil)).Elem() +} + +type IamApiKeyInput interface { + pulumi.Input + + ToIamApiKeyOutput() IamApiKeyOutput + ToIamApiKeyOutputWithContext(ctx context.Context) IamApiKeyOutput +} + +func (*IamApiKey) ElementType() reflect.Type { + return reflect.TypeOf((**IamApiKey)(nil)).Elem() +} + +func (i *IamApiKey) ToIamApiKeyOutput() IamApiKeyOutput { + return i.ToIamApiKeyOutputWithContext(context.Background()) +} + +func (i *IamApiKey) ToIamApiKeyOutputWithContext(ctx context.Context) IamApiKeyOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamApiKeyOutput) +} + +// IamApiKeyArrayInput is an input type that accepts IamApiKeyArray and IamApiKeyArrayOutput values. +// You can construct a concrete instance of `IamApiKeyArrayInput` via: +// +// IamApiKeyArray{ IamApiKeyArgs{...} } +type IamApiKeyArrayInput interface { + pulumi.Input + + ToIamApiKeyArrayOutput() IamApiKeyArrayOutput + ToIamApiKeyArrayOutputWithContext(context.Context) IamApiKeyArrayOutput +} + +type IamApiKeyArray []IamApiKeyInput + +func (IamApiKeyArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*IamApiKey)(nil)).Elem() +} + +func (i IamApiKeyArray) ToIamApiKeyArrayOutput() IamApiKeyArrayOutput { + return i.ToIamApiKeyArrayOutputWithContext(context.Background()) +} + +func (i IamApiKeyArray) ToIamApiKeyArrayOutputWithContext(ctx context.Context) IamApiKeyArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamApiKeyArrayOutput) +} + +// IamApiKeyMapInput is an input type that accepts IamApiKeyMap and IamApiKeyMapOutput values. +// You can construct a concrete instance of `IamApiKeyMapInput` via: +// +// IamApiKeyMap{ "key": IamApiKeyArgs{...} } +type IamApiKeyMapInput interface { + pulumi.Input + + ToIamApiKeyMapOutput() IamApiKeyMapOutput + ToIamApiKeyMapOutputWithContext(context.Context) IamApiKeyMapOutput +} + +type IamApiKeyMap map[string]IamApiKeyInput + +func (IamApiKeyMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*IamApiKey)(nil)).Elem() +} + +func (i IamApiKeyMap) ToIamApiKeyMapOutput() IamApiKeyMapOutput { + return i.ToIamApiKeyMapOutputWithContext(context.Background()) +} + +func (i IamApiKeyMap) ToIamApiKeyMapOutputWithContext(ctx context.Context) IamApiKeyMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamApiKeyMapOutput) +} + +type IamApiKeyOutput struct{ *pulumi.OutputState } + +func (IamApiKeyOutput) ElementType() reflect.Type { + return reflect.TypeOf((**IamApiKey)(nil)).Elem() +} + +func (o IamApiKeyOutput) ToIamApiKeyOutput() IamApiKeyOutput { + return o +} + +func (o IamApiKeyOutput) ToIamApiKeyOutputWithContext(ctx context.Context) IamApiKeyOutput { + return o +} + +// The IAM API Key to match. +func (o IamApiKeyOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v *IamApiKey) pulumi.StringOutput { return v.Key }).(pulumi.StringOutput) +} + +// ❗ IAM API Key name. +func (o IamApiKeyOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *IamApiKey) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// ❗ IAM API role ID. +func (o IamApiKeyOutput) RoleId() pulumi.StringOutput { + return o.ApplyT(func(v *IamApiKey) pulumi.StringOutput { return v.RoleId }).(pulumi.StringOutput) +} + +// Secret for the IAM API Key. +func (o IamApiKeyOutput) Secret() pulumi.StringOutput { + return o.ApplyT(func(v *IamApiKey) pulumi.StringOutput { return v.Secret }).(pulumi.StringOutput) +} + +func (o IamApiKeyOutput) Timeouts() IamApiKeyTimeoutsPtrOutput { + return o.ApplyT(func(v *IamApiKey) IamApiKeyTimeoutsPtrOutput { return v.Timeouts }).(IamApiKeyTimeoutsPtrOutput) +} + +type IamApiKeyArrayOutput struct{ *pulumi.OutputState } + +func (IamApiKeyArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*IamApiKey)(nil)).Elem() +} + +func (o IamApiKeyArrayOutput) ToIamApiKeyArrayOutput() IamApiKeyArrayOutput { + return o +} + +func (o IamApiKeyArrayOutput) ToIamApiKeyArrayOutputWithContext(ctx context.Context) IamApiKeyArrayOutput { + return o +} + +func (o IamApiKeyArrayOutput) Index(i pulumi.IntInput) IamApiKeyOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *IamApiKey { + return vs[0].([]*IamApiKey)[vs[1].(int)] + }).(IamApiKeyOutput) +} + +type IamApiKeyMapOutput struct{ *pulumi.OutputState } + +func (IamApiKeyMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*IamApiKey)(nil)).Elem() +} + +func (o IamApiKeyMapOutput) ToIamApiKeyMapOutput() IamApiKeyMapOutput { + return o +} + +func (o IamApiKeyMapOutput) ToIamApiKeyMapOutputWithContext(ctx context.Context) IamApiKeyMapOutput { + return o +} + +func (o IamApiKeyMapOutput) MapIndex(k pulumi.StringInput) IamApiKeyOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *IamApiKey { + return vs[0].(map[string]*IamApiKey)[vs[1].(string)] + }).(IamApiKeyOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*IamApiKeyInput)(nil)).Elem(), &IamApiKey{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamApiKeyArrayInput)(nil)).Elem(), IamApiKeyArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamApiKeyMapInput)(nil)).Elem(), IamApiKeyMap{}) + pulumi.RegisterOutputType(IamApiKeyOutput{}) + pulumi.RegisterOutputType(IamApiKeyArrayOutput{}) + pulumi.RegisterOutputType(IamApiKeyMapOutput{}) +} diff --git a/sdk/go/exoscale/iamOrgPolicy.go b/sdk/go/exoscale/iamOrgPolicy.go new file mode 100644 index 00000000..a53efaac --- /dev/null +++ b/sdk/go/exoscale/iamOrgPolicy.go @@ -0,0 +1,245 @@ +// 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 exoscale + +import ( + "context" + "reflect" + + "errors" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" +) + +type IamOrgPolicy struct { + pulumi.CustomResourceState + + // Default service strategy (`allow` or `deny`). + DefaultServiceStrategy pulumi.StringOutput `pulumi:"defaultServiceStrategy"` + // IAM policy services. + Services IamOrgPolicyServicesMapOutput `pulumi:"services"` + Timeouts IamOrgPolicyTimeoutsPtrOutput `pulumi:"timeouts"` +} + +// NewIamOrgPolicy registers a new resource with the given unique name, arguments, and options. +func NewIamOrgPolicy(ctx *pulumi.Context, + name string, args *IamOrgPolicyArgs, opts ...pulumi.ResourceOption) (*IamOrgPolicy, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.DefaultServiceStrategy == nil { + return nil, errors.New("invalid value for required argument 'DefaultServiceStrategy'") + } + if args.Services == nil { + return nil, errors.New("invalid value for required argument 'Services'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource IamOrgPolicy + err := ctx.RegisterResource("exoscale:index/iamOrgPolicy:IamOrgPolicy", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetIamOrgPolicy gets an existing IamOrgPolicy 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 GetIamOrgPolicy(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *IamOrgPolicyState, opts ...pulumi.ResourceOption) (*IamOrgPolicy, error) { + var resource IamOrgPolicy + err := ctx.ReadResource("exoscale:index/iamOrgPolicy:IamOrgPolicy", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering IamOrgPolicy resources. +type iamOrgPolicyState struct { + // Default service strategy (`allow` or `deny`). + DefaultServiceStrategy *string `pulumi:"defaultServiceStrategy"` + // IAM policy services. + Services map[string]IamOrgPolicyServices `pulumi:"services"` + Timeouts *IamOrgPolicyTimeouts `pulumi:"timeouts"` +} + +type IamOrgPolicyState struct { + // Default service strategy (`allow` or `deny`). + DefaultServiceStrategy pulumi.StringPtrInput + // IAM policy services. + Services IamOrgPolicyServicesMapInput + Timeouts IamOrgPolicyTimeoutsPtrInput +} + +func (IamOrgPolicyState) ElementType() reflect.Type { + return reflect.TypeOf((*iamOrgPolicyState)(nil)).Elem() +} + +type iamOrgPolicyArgs struct { + // Default service strategy (`allow` or `deny`). + DefaultServiceStrategy string `pulumi:"defaultServiceStrategy"` + // IAM policy services. + Services map[string]IamOrgPolicyServices `pulumi:"services"` + Timeouts *IamOrgPolicyTimeouts `pulumi:"timeouts"` +} + +// The set of arguments for constructing a IamOrgPolicy resource. +type IamOrgPolicyArgs struct { + // Default service strategy (`allow` or `deny`). + DefaultServiceStrategy pulumi.StringInput + // IAM policy services. + Services IamOrgPolicyServicesMapInput + Timeouts IamOrgPolicyTimeoutsPtrInput +} + +func (IamOrgPolicyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*iamOrgPolicyArgs)(nil)).Elem() +} + +type IamOrgPolicyInput interface { + pulumi.Input + + ToIamOrgPolicyOutput() IamOrgPolicyOutput + ToIamOrgPolicyOutputWithContext(ctx context.Context) IamOrgPolicyOutput +} + +func (*IamOrgPolicy) ElementType() reflect.Type { + return reflect.TypeOf((**IamOrgPolicy)(nil)).Elem() +} + +func (i *IamOrgPolicy) ToIamOrgPolicyOutput() IamOrgPolicyOutput { + return i.ToIamOrgPolicyOutputWithContext(context.Background()) +} + +func (i *IamOrgPolicy) ToIamOrgPolicyOutputWithContext(ctx context.Context) IamOrgPolicyOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamOrgPolicyOutput) +} + +// IamOrgPolicyArrayInput is an input type that accepts IamOrgPolicyArray and IamOrgPolicyArrayOutput values. +// You can construct a concrete instance of `IamOrgPolicyArrayInput` via: +// +// IamOrgPolicyArray{ IamOrgPolicyArgs{...} } +type IamOrgPolicyArrayInput interface { + pulumi.Input + + ToIamOrgPolicyArrayOutput() IamOrgPolicyArrayOutput + ToIamOrgPolicyArrayOutputWithContext(context.Context) IamOrgPolicyArrayOutput +} + +type IamOrgPolicyArray []IamOrgPolicyInput + +func (IamOrgPolicyArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*IamOrgPolicy)(nil)).Elem() +} + +func (i IamOrgPolicyArray) ToIamOrgPolicyArrayOutput() IamOrgPolicyArrayOutput { + return i.ToIamOrgPolicyArrayOutputWithContext(context.Background()) +} + +func (i IamOrgPolicyArray) ToIamOrgPolicyArrayOutputWithContext(ctx context.Context) IamOrgPolicyArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamOrgPolicyArrayOutput) +} + +// IamOrgPolicyMapInput is an input type that accepts IamOrgPolicyMap and IamOrgPolicyMapOutput values. +// You can construct a concrete instance of `IamOrgPolicyMapInput` via: +// +// IamOrgPolicyMap{ "key": IamOrgPolicyArgs{...} } +type IamOrgPolicyMapInput interface { + pulumi.Input + + ToIamOrgPolicyMapOutput() IamOrgPolicyMapOutput + ToIamOrgPolicyMapOutputWithContext(context.Context) IamOrgPolicyMapOutput +} + +type IamOrgPolicyMap map[string]IamOrgPolicyInput + +func (IamOrgPolicyMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*IamOrgPolicy)(nil)).Elem() +} + +func (i IamOrgPolicyMap) ToIamOrgPolicyMapOutput() IamOrgPolicyMapOutput { + return i.ToIamOrgPolicyMapOutputWithContext(context.Background()) +} + +func (i IamOrgPolicyMap) ToIamOrgPolicyMapOutputWithContext(ctx context.Context) IamOrgPolicyMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamOrgPolicyMapOutput) +} + +type IamOrgPolicyOutput struct{ *pulumi.OutputState } + +func (IamOrgPolicyOutput) ElementType() reflect.Type { + return reflect.TypeOf((**IamOrgPolicy)(nil)).Elem() +} + +func (o IamOrgPolicyOutput) ToIamOrgPolicyOutput() IamOrgPolicyOutput { + return o +} + +func (o IamOrgPolicyOutput) ToIamOrgPolicyOutputWithContext(ctx context.Context) IamOrgPolicyOutput { + return o +} + +// Default service strategy (`allow` or `deny`). +func (o IamOrgPolicyOutput) DefaultServiceStrategy() pulumi.StringOutput { + return o.ApplyT(func(v *IamOrgPolicy) pulumi.StringOutput { return v.DefaultServiceStrategy }).(pulumi.StringOutput) +} + +// IAM policy services. +func (o IamOrgPolicyOutput) Services() IamOrgPolicyServicesMapOutput { + return o.ApplyT(func(v *IamOrgPolicy) IamOrgPolicyServicesMapOutput { return v.Services }).(IamOrgPolicyServicesMapOutput) +} + +func (o IamOrgPolicyOutput) Timeouts() IamOrgPolicyTimeoutsPtrOutput { + return o.ApplyT(func(v *IamOrgPolicy) IamOrgPolicyTimeoutsPtrOutput { return v.Timeouts }).(IamOrgPolicyTimeoutsPtrOutput) +} + +type IamOrgPolicyArrayOutput struct{ *pulumi.OutputState } + +func (IamOrgPolicyArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*IamOrgPolicy)(nil)).Elem() +} + +func (o IamOrgPolicyArrayOutput) ToIamOrgPolicyArrayOutput() IamOrgPolicyArrayOutput { + return o +} + +func (o IamOrgPolicyArrayOutput) ToIamOrgPolicyArrayOutputWithContext(ctx context.Context) IamOrgPolicyArrayOutput { + return o +} + +func (o IamOrgPolicyArrayOutput) Index(i pulumi.IntInput) IamOrgPolicyOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *IamOrgPolicy { + return vs[0].([]*IamOrgPolicy)[vs[1].(int)] + }).(IamOrgPolicyOutput) +} + +type IamOrgPolicyMapOutput struct{ *pulumi.OutputState } + +func (IamOrgPolicyMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*IamOrgPolicy)(nil)).Elem() +} + +func (o IamOrgPolicyMapOutput) ToIamOrgPolicyMapOutput() IamOrgPolicyMapOutput { + return o +} + +func (o IamOrgPolicyMapOutput) ToIamOrgPolicyMapOutputWithContext(ctx context.Context) IamOrgPolicyMapOutput { + return o +} + +func (o IamOrgPolicyMapOutput) MapIndex(k pulumi.StringInput) IamOrgPolicyOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *IamOrgPolicy { + return vs[0].(map[string]*IamOrgPolicy)[vs[1].(string)] + }).(IamOrgPolicyOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*IamOrgPolicyInput)(nil)).Elem(), &IamOrgPolicy{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamOrgPolicyArrayInput)(nil)).Elem(), IamOrgPolicyArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamOrgPolicyMapInput)(nil)).Elem(), IamOrgPolicyMap{}) + pulumi.RegisterOutputType(IamOrgPolicyOutput{}) + pulumi.RegisterOutputType(IamOrgPolicyArrayOutput{}) + pulumi.RegisterOutputType(IamOrgPolicyMapOutput{}) +} diff --git a/sdk/go/exoscale/iamRole.go b/sdk/go/exoscale/iamRole.go new file mode 100644 index 00000000..da9680ad --- /dev/null +++ b/sdk/go/exoscale/iamRole.go @@ -0,0 +1,299 @@ +// 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 exoscale + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" +) + +// Manage Exoscale [IAM](https://community.exoscale.com/documentation/iam/) Role. +type IamRole struct { + pulumi.CustomResourceState + + // A free-form text describing the IAM Role + Description pulumi.StringOutput `pulumi:"description"` + // Defines if IAM Role Policy is editable or not. + Editable pulumi.BoolOutput `pulumi:"editable"` + // IAM Role labels. + Labels pulumi.StringMapOutput `pulumi:"labels"` + // ❗Name of IAM Role. + Name pulumi.StringOutput `pulumi:"name"` + // IAM Role permissions. + Permissions pulumi.StringArrayOutput `pulumi:"permissions"` + // IAM Policy. + Policy IamRolePolicyOutput `pulumi:"policy"` + Timeouts IamRoleTimeoutsPtrOutput `pulumi:"timeouts"` +} + +// NewIamRole registers a new resource with the given unique name, arguments, and options. +func NewIamRole(ctx *pulumi.Context, + name string, args *IamRoleArgs, opts ...pulumi.ResourceOption) (*IamRole, error) { + if args == nil { + args = &IamRoleArgs{} + } + + opts = internal.PkgResourceDefaultOpts(opts) + var resource IamRole + err := ctx.RegisterResource("exoscale:index/iamRole:IamRole", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetIamRole gets an existing IamRole 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 GetIamRole(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *IamRoleState, opts ...pulumi.ResourceOption) (*IamRole, error) { + var resource IamRole + err := ctx.ReadResource("exoscale:index/iamRole:IamRole", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering IamRole resources. +type iamRoleState struct { + // A free-form text describing the IAM Role + Description *string `pulumi:"description"` + // Defines if IAM Role Policy is editable or not. + Editable *bool `pulumi:"editable"` + // IAM Role labels. + Labels map[string]string `pulumi:"labels"` + // ❗Name of IAM Role. + Name *string `pulumi:"name"` + // IAM Role permissions. + Permissions []string `pulumi:"permissions"` + // IAM Policy. + Policy *IamRolePolicy `pulumi:"policy"` + Timeouts *IamRoleTimeouts `pulumi:"timeouts"` +} + +type IamRoleState struct { + // A free-form text describing the IAM Role + Description pulumi.StringPtrInput + // Defines if IAM Role Policy is editable or not. + Editable pulumi.BoolPtrInput + // IAM Role labels. + Labels pulumi.StringMapInput + // ❗Name of IAM Role. + Name pulumi.StringPtrInput + // IAM Role permissions. + Permissions pulumi.StringArrayInput + // IAM Policy. + Policy IamRolePolicyPtrInput + Timeouts IamRoleTimeoutsPtrInput +} + +func (IamRoleState) ElementType() reflect.Type { + return reflect.TypeOf((*iamRoleState)(nil)).Elem() +} + +type iamRoleArgs struct { + // A free-form text describing the IAM Role + Description *string `pulumi:"description"` + // Defines if IAM Role Policy is editable or not. + Editable *bool `pulumi:"editable"` + // IAM Role labels. + Labels map[string]string `pulumi:"labels"` + // ❗Name of IAM Role. + Name *string `pulumi:"name"` + // IAM Role permissions. + Permissions []string `pulumi:"permissions"` + // IAM Policy. + Policy *IamRolePolicy `pulumi:"policy"` + Timeouts *IamRoleTimeouts `pulumi:"timeouts"` +} + +// The set of arguments for constructing a IamRole resource. +type IamRoleArgs struct { + // A free-form text describing the IAM Role + Description pulumi.StringPtrInput + // Defines if IAM Role Policy is editable or not. + Editable pulumi.BoolPtrInput + // IAM Role labels. + Labels pulumi.StringMapInput + // ❗Name of IAM Role. + Name pulumi.StringPtrInput + // IAM Role permissions. + Permissions pulumi.StringArrayInput + // IAM Policy. + Policy IamRolePolicyPtrInput + Timeouts IamRoleTimeoutsPtrInput +} + +func (IamRoleArgs) ElementType() reflect.Type { + return reflect.TypeOf((*iamRoleArgs)(nil)).Elem() +} + +type IamRoleInput interface { + pulumi.Input + + ToIamRoleOutput() IamRoleOutput + ToIamRoleOutputWithContext(ctx context.Context) IamRoleOutput +} + +func (*IamRole) ElementType() reflect.Type { + return reflect.TypeOf((**IamRole)(nil)).Elem() +} + +func (i *IamRole) ToIamRoleOutput() IamRoleOutput { + return i.ToIamRoleOutputWithContext(context.Background()) +} + +func (i *IamRole) ToIamRoleOutputWithContext(ctx context.Context) IamRoleOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamRoleOutput) +} + +// IamRoleArrayInput is an input type that accepts IamRoleArray and IamRoleArrayOutput values. +// You can construct a concrete instance of `IamRoleArrayInput` via: +// +// IamRoleArray{ IamRoleArgs{...} } +type IamRoleArrayInput interface { + pulumi.Input + + ToIamRoleArrayOutput() IamRoleArrayOutput + ToIamRoleArrayOutputWithContext(context.Context) IamRoleArrayOutput +} + +type IamRoleArray []IamRoleInput + +func (IamRoleArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*IamRole)(nil)).Elem() +} + +func (i IamRoleArray) ToIamRoleArrayOutput() IamRoleArrayOutput { + return i.ToIamRoleArrayOutputWithContext(context.Background()) +} + +func (i IamRoleArray) ToIamRoleArrayOutputWithContext(ctx context.Context) IamRoleArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamRoleArrayOutput) +} + +// IamRoleMapInput is an input type that accepts IamRoleMap and IamRoleMapOutput values. +// You can construct a concrete instance of `IamRoleMapInput` via: +// +// IamRoleMap{ "key": IamRoleArgs{...} } +type IamRoleMapInput interface { + pulumi.Input + + ToIamRoleMapOutput() IamRoleMapOutput + ToIamRoleMapOutputWithContext(context.Context) IamRoleMapOutput +} + +type IamRoleMap map[string]IamRoleInput + +func (IamRoleMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*IamRole)(nil)).Elem() +} + +func (i IamRoleMap) ToIamRoleMapOutput() IamRoleMapOutput { + return i.ToIamRoleMapOutputWithContext(context.Background()) +} + +func (i IamRoleMap) ToIamRoleMapOutputWithContext(ctx context.Context) IamRoleMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamRoleMapOutput) +} + +type IamRoleOutput struct{ *pulumi.OutputState } + +func (IamRoleOutput) ElementType() reflect.Type { + return reflect.TypeOf((**IamRole)(nil)).Elem() +} + +func (o IamRoleOutput) ToIamRoleOutput() IamRoleOutput { + return o +} + +func (o IamRoleOutput) ToIamRoleOutputWithContext(ctx context.Context) IamRoleOutput { + return o +} + +// A free-form text describing the IAM Role +func (o IamRoleOutput) Description() pulumi.StringOutput { + return o.ApplyT(func(v *IamRole) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput) +} + +// Defines if IAM Role Policy is editable or not. +func (o IamRoleOutput) Editable() pulumi.BoolOutput { + return o.ApplyT(func(v *IamRole) pulumi.BoolOutput { return v.Editable }).(pulumi.BoolOutput) +} + +// IAM Role labels. +func (o IamRoleOutput) Labels() pulumi.StringMapOutput { + return o.ApplyT(func(v *IamRole) pulumi.StringMapOutput { return v.Labels }).(pulumi.StringMapOutput) +} + +// ❗Name of IAM Role. +func (o IamRoleOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *IamRole) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// IAM Role permissions. +func (o IamRoleOutput) Permissions() pulumi.StringArrayOutput { + return o.ApplyT(func(v *IamRole) pulumi.StringArrayOutput { return v.Permissions }).(pulumi.StringArrayOutput) +} + +// IAM Policy. +func (o IamRoleOutput) Policy() IamRolePolicyOutput { + return o.ApplyT(func(v *IamRole) IamRolePolicyOutput { return v.Policy }).(IamRolePolicyOutput) +} + +func (o IamRoleOutput) Timeouts() IamRoleTimeoutsPtrOutput { + return o.ApplyT(func(v *IamRole) IamRoleTimeoutsPtrOutput { return v.Timeouts }).(IamRoleTimeoutsPtrOutput) +} + +type IamRoleArrayOutput struct{ *pulumi.OutputState } + +func (IamRoleArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*IamRole)(nil)).Elem() +} + +func (o IamRoleArrayOutput) ToIamRoleArrayOutput() IamRoleArrayOutput { + return o +} + +func (o IamRoleArrayOutput) ToIamRoleArrayOutputWithContext(ctx context.Context) IamRoleArrayOutput { + return o +} + +func (o IamRoleArrayOutput) Index(i pulumi.IntInput) IamRoleOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *IamRole { + return vs[0].([]*IamRole)[vs[1].(int)] + }).(IamRoleOutput) +} + +type IamRoleMapOutput struct{ *pulumi.OutputState } + +func (IamRoleMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*IamRole)(nil)).Elem() +} + +func (o IamRoleMapOutput) ToIamRoleMapOutput() IamRoleMapOutput { + return o +} + +func (o IamRoleMapOutput) ToIamRoleMapOutputWithContext(ctx context.Context) IamRoleMapOutput { + return o +} + +func (o IamRoleMapOutput) MapIndex(k pulumi.StringInput) IamRoleOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *IamRole { + return vs[0].(map[string]*IamRole)[vs[1].(string)] + }).(IamRoleOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*IamRoleInput)(nil)).Elem(), &IamRole{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamRoleArrayInput)(nil)).Elem(), IamRoleArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamRoleMapInput)(nil)).Elem(), IamRoleMap{}) + pulumi.RegisterOutputType(IamRoleOutput{}) + pulumi.RegisterOutputType(IamRoleArrayOutput{}) + pulumi.RegisterOutputType(IamRoleMapOutput{}) +} diff --git a/sdk/go/exoscale/iamaccessKey.go b/sdk/go/exoscale/iamaccessKey.go deleted file mode 100644 index a77d4a70..00000000 --- a/sdk/go/exoscale/iamaccessKey.go +++ /dev/null @@ -1,293 +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 exoscale - -import ( - "context" - "reflect" - - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" -) - -type IAMAccessKey struct { - pulumi.CustomResourceState - - // The IAM access key (identifier). - Key pulumi.StringOutput `pulumi:"key"` - // ❗ The IAM access key name. - Name pulumi.StringOutput `pulumi:"name"` - // ❗ A list of API operations to restrict the key to. - Operations pulumi.StringArrayOutput `pulumi:"operations"` - // ❗ A list of API [resources](https://community.exoscale.com/documentation/iam/quick-start/#restricting-api-access-keys-to-resources) to restrict the key to (`/:`). - Resources pulumi.StringArrayOutput `pulumi:"resources"` - // The key secret. - Secret pulumi.StringOutput `pulumi:"secret"` - // ❗ A list of tags to restrict the key to. - Tags pulumi.StringArrayOutput `pulumi:"tags"` - TagsOperations pulumi.StringArrayOutput `pulumi:"tagsOperations"` -} - -// NewIAMAccessKey registers a new resource with the given unique name, arguments, and options. -func NewIAMAccessKey(ctx *pulumi.Context, - name string, args *IAMAccessKeyArgs, opts ...pulumi.ResourceOption) (*IAMAccessKey, error) { - if args == nil { - args = &IAMAccessKeyArgs{} - } - - secrets := pulumi.AdditionalSecretOutputs([]string{ - "key", - "secret", - }) - opts = append(opts, secrets) - opts = internal.PkgResourceDefaultOpts(opts) - var resource IAMAccessKey - err := ctx.RegisterResource("exoscale:index/iAMAccessKey:IAMAccessKey", name, args, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// GetIAMAccessKey gets an existing IAMAccessKey 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 GetIAMAccessKey(ctx *pulumi.Context, - name string, id pulumi.IDInput, state *IAMAccessKeyState, opts ...pulumi.ResourceOption) (*IAMAccessKey, error) { - var resource IAMAccessKey - err := ctx.ReadResource("exoscale:index/iAMAccessKey:IAMAccessKey", name, id, state, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// Input properties used for looking up and filtering IAMAccessKey resources. -type iamaccessKeyState struct { - // The IAM access key (identifier). - Key *string `pulumi:"key"` - // ❗ The IAM access key name. - Name *string `pulumi:"name"` - // ❗ A list of API operations to restrict the key to. - Operations []string `pulumi:"operations"` - // ❗ A list of API [resources](https://community.exoscale.com/documentation/iam/quick-start/#restricting-api-access-keys-to-resources) to restrict the key to (`/:`). - Resources []string `pulumi:"resources"` - // The key secret. - Secret *string `pulumi:"secret"` - // ❗ A list of tags to restrict the key to. - Tags []string `pulumi:"tags"` - TagsOperations []string `pulumi:"tagsOperations"` -} - -type IAMAccessKeyState struct { - // The IAM access key (identifier). - Key pulumi.StringPtrInput - // ❗ The IAM access key name. - Name pulumi.StringPtrInput - // ❗ A list of API operations to restrict the key to. - Operations pulumi.StringArrayInput - // ❗ A list of API [resources](https://community.exoscale.com/documentation/iam/quick-start/#restricting-api-access-keys-to-resources) to restrict the key to (`/:`). - Resources pulumi.StringArrayInput - // The key secret. - Secret pulumi.StringPtrInput - // ❗ A list of tags to restrict the key to. - Tags pulumi.StringArrayInput - TagsOperations pulumi.StringArrayInput -} - -func (IAMAccessKeyState) ElementType() reflect.Type { - return reflect.TypeOf((*iamaccessKeyState)(nil)).Elem() -} - -type iamaccessKeyArgs struct { - // ❗ The IAM access key name. - Name *string `pulumi:"name"` - // ❗ A list of API operations to restrict the key to. - Operations []string `pulumi:"operations"` - // ❗ A list of API [resources](https://community.exoscale.com/documentation/iam/quick-start/#restricting-api-access-keys-to-resources) to restrict the key to (`/:`). - Resources []string `pulumi:"resources"` - // ❗ A list of tags to restrict the key to. - Tags []string `pulumi:"tags"` -} - -// The set of arguments for constructing a IAMAccessKey resource. -type IAMAccessKeyArgs struct { - // ❗ The IAM access key name. - Name pulumi.StringPtrInput - // ❗ A list of API operations to restrict the key to. - Operations pulumi.StringArrayInput - // ❗ A list of API [resources](https://community.exoscale.com/documentation/iam/quick-start/#restricting-api-access-keys-to-resources) to restrict the key to (`/:`). - Resources pulumi.StringArrayInput - // ❗ A list of tags to restrict the key to. - Tags pulumi.StringArrayInput -} - -func (IAMAccessKeyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*iamaccessKeyArgs)(nil)).Elem() -} - -type IAMAccessKeyInput interface { - pulumi.Input - - ToIAMAccessKeyOutput() IAMAccessKeyOutput - ToIAMAccessKeyOutputWithContext(ctx context.Context) IAMAccessKeyOutput -} - -func (*IAMAccessKey) ElementType() reflect.Type { - return reflect.TypeOf((**IAMAccessKey)(nil)).Elem() -} - -func (i *IAMAccessKey) ToIAMAccessKeyOutput() IAMAccessKeyOutput { - return i.ToIAMAccessKeyOutputWithContext(context.Background()) -} - -func (i *IAMAccessKey) ToIAMAccessKeyOutputWithContext(ctx context.Context) IAMAccessKeyOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMAccessKeyOutput) -} - -// IAMAccessKeyArrayInput is an input type that accepts IAMAccessKeyArray and IAMAccessKeyArrayOutput values. -// You can construct a concrete instance of `IAMAccessKeyArrayInput` via: -// -// IAMAccessKeyArray{ IAMAccessKeyArgs{...} } -type IAMAccessKeyArrayInput interface { - pulumi.Input - - ToIAMAccessKeyArrayOutput() IAMAccessKeyArrayOutput - ToIAMAccessKeyArrayOutputWithContext(context.Context) IAMAccessKeyArrayOutput -} - -type IAMAccessKeyArray []IAMAccessKeyInput - -func (IAMAccessKeyArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]*IAMAccessKey)(nil)).Elem() -} - -func (i IAMAccessKeyArray) ToIAMAccessKeyArrayOutput() IAMAccessKeyArrayOutput { - return i.ToIAMAccessKeyArrayOutputWithContext(context.Background()) -} - -func (i IAMAccessKeyArray) ToIAMAccessKeyArrayOutputWithContext(ctx context.Context) IAMAccessKeyArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMAccessKeyArrayOutput) -} - -// IAMAccessKeyMapInput is an input type that accepts IAMAccessKeyMap and IAMAccessKeyMapOutput values. -// You can construct a concrete instance of `IAMAccessKeyMapInput` via: -// -// IAMAccessKeyMap{ "key": IAMAccessKeyArgs{...} } -type IAMAccessKeyMapInput interface { - pulumi.Input - - ToIAMAccessKeyMapOutput() IAMAccessKeyMapOutput - ToIAMAccessKeyMapOutputWithContext(context.Context) IAMAccessKeyMapOutput -} - -type IAMAccessKeyMap map[string]IAMAccessKeyInput - -func (IAMAccessKeyMap) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*IAMAccessKey)(nil)).Elem() -} - -func (i IAMAccessKeyMap) ToIAMAccessKeyMapOutput() IAMAccessKeyMapOutput { - return i.ToIAMAccessKeyMapOutputWithContext(context.Background()) -} - -func (i IAMAccessKeyMap) ToIAMAccessKeyMapOutputWithContext(ctx context.Context) IAMAccessKeyMapOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMAccessKeyMapOutput) -} - -type IAMAccessKeyOutput struct{ *pulumi.OutputState } - -func (IAMAccessKeyOutput) ElementType() reflect.Type { - return reflect.TypeOf((**IAMAccessKey)(nil)).Elem() -} - -func (o IAMAccessKeyOutput) ToIAMAccessKeyOutput() IAMAccessKeyOutput { - return o -} - -func (o IAMAccessKeyOutput) ToIAMAccessKeyOutputWithContext(ctx context.Context) IAMAccessKeyOutput { - return o -} - -// The IAM access key (identifier). -func (o IAMAccessKeyOutput) Key() pulumi.StringOutput { - return o.ApplyT(func(v *IAMAccessKey) pulumi.StringOutput { return v.Key }).(pulumi.StringOutput) -} - -// ❗ The IAM access key name. -func (o IAMAccessKeyOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v *IAMAccessKey) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) -} - -// ❗ A list of API operations to restrict the key to. -func (o IAMAccessKeyOutput) Operations() pulumi.StringArrayOutput { - return o.ApplyT(func(v *IAMAccessKey) pulumi.StringArrayOutput { return v.Operations }).(pulumi.StringArrayOutput) -} - -// ❗ A list of API [resources](https://community.exoscale.com/documentation/iam/quick-start/#restricting-api-access-keys-to-resources) to restrict the key to (`/:`). -func (o IAMAccessKeyOutput) Resources() pulumi.StringArrayOutput { - return o.ApplyT(func(v *IAMAccessKey) pulumi.StringArrayOutput { return v.Resources }).(pulumi.StringArrayOutput) -} - -// The key secret. -func (o IAMAccessKeyOutput) Secret() pulumi.StringOutput { - return o.ApplyT(func(v *IAMAccessKey) pulumi.StringOutput { return v.Secret }).(pulumi.StringOutput) -} - -// ❗ A list of tags to restrict the key to. -func (o IAMAccessKeyOutput) Tags() pulumi.StringArrayOutput { - return o.ApplyT(func(v *IAMAccessKey) pulumi.StringArrayOutput { return v.Tags }).(pulumi.StringArrayOutput) -} - -func (o IAMAccessKeyOutput) TagsOperations() pulumi.StringArrayOutput { - return o.ApplyT(func(v *IAMAccessKey) pulumi.StringArrayOutput { return v.TagsOperations }).(pulumi.StringArrayOutput) -} - -type IAMAccessKeyArrayOutput struct{ *pulumi.OutputState } - -func (IAMAccessKeyArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]*IAMAccessKey)(nil)).Elem() -} - -func (o IAMAccessKeyArrayOutput) ToIAMAccessKeyArrayOutput() IAMAccessKeyArrayOutput { - return o -} - -func (o IAMAccessKeyArrayOutput) ToIAMAccessKeyArrayOutputWithContext(ctx context.Context) IAMAccessKeyArrayOutput { - return o -} - -func (o IAMAccessKeyArrayOutput) Index(i pulumi.IntInput) IAMAccessKeyOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) *IAMAccessKey { - return vs[0].([]*IAMAccessKey)[vs[1].(int)] - }).(IAMAccessKeyOutput) -} - -type IAMAccessKeyMapOutput struct{ *pulumi.OutputState } - -func (IAMAccessKeyMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*IAMAccessKey)(nil)).Elem() -} - -func (o IAMAccessKeyMapOutput) ToIAMAccessKeyMapOutput() IAMAccessKeyMapOutput { - return o -} - -func (o IAMAccessKeyMapOutput) ToIAMAccessKeyMapOutputWithContext(ctx context.Context) IAMAccessKeyMapOutput { - return o -} - -func (o IAMAccessKeyMapOutput) MapIndex(k pulumi.StringInput) IAMAccessKeyOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) *IAMAccessKey { - return vs[0].(map[string]*IAMAccessKey)[vs[1].(string)] - }).(IAMAccessKeyOutput) -} - -func init() { - pulumi.RegisterInputType(reflect.TypeOf((*IAMAccessKeyInput)(nil)).Elem(), &IAMAccessKey{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMAccessKeyArrayInput)(nil)).Elem(), IAMAccessKeyArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMAccessKeyMapInput)(nil)).Elem(), IAMAccessKeyMap{}) - pulumi.RegisterOutputType(IAMAccessKeyOutput{}) - pulumi.RegisterOutputType(IAMAccessKeyArrayOutput{}) - pulumi.RegisterOutputType(IAMAccessKeyMapOutput{}) -} diff --git a/sdk/go/exoscale/iamapikey.go b/sdk/go/exoscale/iamapikey.go deleted file mode 100644 index 898454c7..00000000 --- a/sdk/go/exoscale/iamapikey.go +++ /dev/null @@ -1,268 +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 exoscale - -import ( - "context" - "reflect" - - "errors" - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" -) - -type IAMAPIKey struct { - pulumi.CustomResourceState - - // The IAM API Key to match. - Key pulumi.StringOutput `pulumi:"key"` - // ❗ IAM API Key name. - Name pulumi.StringOutput `pulumi:"name"` - // ❗ IAM API role ID. - RoleId pulumi.StringOutput `pulumi:"roleId"` - // Secret for the IAM API Key. - Secret pulumi.StringOutput `pulumi:"secret"` - Timeouts IAMAPIKeyTimeoutsPtrOutput `pulumi:"timeouts"` -} - -// NewIAMAPIKey registers a new resource with the given unique name, arguments, and options. -func NewIAMAPIKey(ctx *pulumi.Context, - name string, args *IAMAPIKeyArgs, opts ...pulumi.ResourceOption) (*IAMAPIKey, error) { - if args == nil { - return nil, errors.New("missing one or more required arguments") - } - - if args.RoleId == nil { - return nil, errors.New("invalid value for required argument 'RoleId'") - } - secrets := pulumi.AdditionalSecretOutputs([]string{ - "secret", - }) - opts = append(opts, secrets) - opts = internal.PkgResourceDefaultOpts(opts) - var resource IAMAPIKey - err := ctx.RegisterResource("exoscale:index/iAMAPIKey:IAMAPIKey", name, args, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// GetIAMAPIKey gets an existing IAMAPIKey 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 GetIAMAPIKey(ctx *pulumi.Context, - name string, id pulumi.IDInput, state *IAMAPIKeyState, opts ...pulumi.ResourceOption) (*IAMAPIKey, error) { - var resource IAMAPIKey - err := ctx.ReadResource("exoscale:index/iAMAPIKey:IAMAPIKey", name, id, state, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// Input properties used for looking up and filtering IAMAPIKey resources. -type iamapikeyState struct { - // The IAM API Key to match. - Key *string `pulumi:"key"` - // ❗ IAM API Key name. - Name *string `pulumi:"name"` - // ❗ IAM API role ID. - RoleId *string `pulumi:"roleId"` - // Secret for the IAM API Key. - Secret *string `pulumi:"secret"` - Timeouts *IAMAPIKeyTimeouts `pulumi:"timeouts"` -} - -type IAMAPIKeyState struct { - // The IAM API Key to match. - Key pulumi.StringPtrInput - // ❗ IAM API Key name. - Name pulumi.StringPtrInput - // ❗ IAM API role ID. - RoleId pulumi.StringPtrInput - // Secret for the IAM API Key. - Secret pulumi.StringPtrInput - Timeouts IAMAPIKeyTimeoutsPtrInput -} - -func (IAMAPIKeyState) ElementType() reflect.Type { - return reflect.TypeOf((*iamapikeyState)(nil)).Elem() -} - -type iamapikeyArgs struct { - // ❗ IAM API Key name. - Name *string `pulumi:"name"` - // ❗ IAM API role ID. - RoleId string `pulumi:"roleId"` - Timeouts *IAMAPIKeyTimeouts `pulumi:"timeouts"` -} - -// The set of arguments for constructing a IAMAPIKey resource. -type IAMAPIKeyArgs struct { - // ❗ IAM API Key name. - Name pulumi.StringPtrInput - // ❗ IAM API role ID. - RoleId pulumi.StringInput - Timeouts IAMAPIKeyTimeoutsPtrInput -} - -func (IAMAPIKeyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*iamapikeyArgs)(nil)).Elem() -} - -type IAMAPIKeyInput interface { - pulumi.Input - - ToIAMAPIKeyOutput() IAMAPIKeyOutput - ToIAMAPIKeyOutputWithContext(ctx context.Context) IAMAPIKeyOutput -} - -func (*IAMAPIKey) ElementType() reflect.Type { - return reflect.TypeOf((**IAMAPIKey)(nil)).Elem() -} - -func (i *IAMAPIKey) ToIAMAPIKeyOutput() IAMAPIKeyOutput { - return i.ToIAMAPIKeyOutputWithContext(context.Background()) -} - -func (i *IAMAPIKey) ToIAMAPIKeyOutputWithContext(ctx context.Context) IAMAPIKeyOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMAPIKeyOutput) -} - -// IAMAPIKeyArrayInput is an input type that accepts IAMAPIKeyArray and IAMAPIKeyArrayOutput values. -// You can construct a concrete instance of `IAMAPIKeyArrayInput` via: -// -// IAMAPIKeyArray{ IAMAPIKeyArgs{...} } -type IAMAPIKeyArrayInput interface { - pulumi.Input - - ToIAMAPIKeyArrayOutput() IAMAPIKeyArrayOutput - ToIAMAPIKeyArrayOutputWithContext(context.Context) IAMAPIKeyArrayOutput -} - -type IAMAPIKeyArray []IAMAPIKeyInput - -func (IAMAPIKeyArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]*IAMAPIKey)(nil)).Elem() -} - -func (i IAMAPIKeyArray) ToIAMAPIKeyArrayOutput() IAMAPIKeyArrayOutput { - return i.ToIAMAPIKeyArrayOutputWithContext(context.Background()) -} - -func (i IAMAPIKeyArray) ToIAMAPIKeyArrayOutputWithContext(ctx context.Context) IAMAPIKeyArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMAPIKeyArrayOutput) -} - -// IAMAPIKeyMapInput is an input type that accepts IAMAPIKeyMap and IAMAPIKeyMapOutput values. -// You can construct a concrete instance of `IAMAPIKeyMapInput` via: -// -// IAMAPIKeyMap{ "key": IAMAPIKeyArgs{...} } -type IAMAPIKeyMapInput interface { - pulumi.Input - - ToIAMAPIKeyMapOutput() IAMAPIKeyMapOutput - ToIAMAPIKeyMapOutputWithContext(context.Context) IAMAPIKeyMapOutput -} - -type IAMAPIKeyMap map[string]IAMAPIKeyInput - -func (IAMAPIKeyMap) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*IAMAPIKey)(nil)).Elem() -} - -func (i IAMAPIKeyMap) ToIAMAPIKeyMapOutput() IAMAPIKeyMapOutput { - return i.ToIAMAPIKeyMapOutputWithContext(context.Background()) -} - -func (i IAMAPIKeyMap) ToIAMAPIKeyMapOutputWithContext(ctx context.Context) IAMAPIKeyMapOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMAPIKeyMapOutput) -} - -type IAMAPIKeyOutput struct{ *pulumi.OutputState } - -func (IAMAPIKeyOutput) ElementType() reflect.Type { - return reflect.TypeOf((**IAMAPIKey)(nil)).Elem() -} - -func (o IAMAPIKeyOutput) ToIAMAPIKeyOutput() IAMAPIKeyOutput { - return o -} - -func (o IAMAPIKeyOutput) ToIAMAPIKeyOutputWithContext(ctx context.Context) IAMAPIKeyOutput { - return o -} - -// The IAM API Key to match. -func (o IAMAPIKeyOutput) Key() pulumi.StringOutput { - return o.ApplyT(func(v *IAMAPIKey) pulumi.StringOutput { return v.Key }).(pulumi.StringOutput) -} - -// ❗ IAM API Key name. -func (o IAMAPIKeyOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v *IAMAPIKey) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) -} - -// ❗ IAM API role ID. -func (o IAMAPIKeyOutput) RoleId() pulumi.StringOutput { - return o.ApplyT(func(v *IAMAPIKey) pulumi.StringOutput { return v.RoleId }).(pulumi.StringOutput) -} - -// Secret for the IAM API Key. -func (o IAMAPIKeyOutput) Secret() pulumi.StringOutput { - return o.ApplyT(func(v *IAMAPIKey) pulumi.StringOutput { return v.Secret }).(pulumi.StringOutput) -} - -func (o IAMAPIKeyOutput) Timeouts() IAMAPIKeyTimeoutsPtrOutput { - return o.ApplyT(func(v *IAMAPIKey) IAMAPIKeyTimeoutsPtrOutput { return v.Timeouts }).(IAMAPIKeyTimeoutsPtrOutput) -} - -type IAMAPIKeyArrayOutput struct{ *pulumi.OutputState } - -func (IAMAPIKeyArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]*IAMAPIKey)(nil)).Elem() -} - -func (o IAMAPIKeyArrayOutput) ToIAMAPIKeyArrayOutput() IAMAPIKeyArrayOutput { - return o -} - -func (o IAMAPIKeyArrayOutput) ToIAMAPIKeyArrayOutputWithContext(ctx context.Context) IAMAPIKeyArrayOutput { - return o -} - -func (o IAMAPIKeyArrayOutput) Index(i pulumi.IntInput) IAMAPIKeyOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) *IAMAPIKey { - return vs[0].([]*IAMAPIKey)[vs[1].(int)] - }).(IAMAPIKeyOutput) -} - -type IAMAPIKeyMapOutput struct{ *pulumi.OutputState } - -func (IAMAPIKeyMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*IAMAPIKey)(nil)).Elem() -} - -func (o IAMAPIKeyMapOutput) ToIAMAPIKeyMapOutput() IAMAPIKeyMapOutput { - return o -} - -func (o IAMAPIKeyMapOutput) ToIAMAPIKeyMapOutputWithContext(ctx context.Context) IAMAPIKeyMapOutput { - return o -} - -func (o IAMAPIKeyMapOutput) MapIndex(k pulumi.StringInput) IAMAPIKeyOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) *IAMAPIKey { - return vs[0].(map[string]*IAMAPIKey)[vs[1].(string)] - }).(IAMAPIKeyOutput) -} - -func init() { - pulumi.RegisterInputType(reflect.TypeOf((*IAMAPIKeyInput)(nil)).Elem(), &IAMAPIKey{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMAPIKeyArrayInput)(nil)).Elem(), IAMAPIKeyArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMAPIKeyMapInput)(nil)).Elem(), IAMAPIKeyMap{}) - pulumi.RegisterOutputType(IAMAPIKeyOutput{}) - pulumi.RegisterOutputType(IAMAPIKeyArrayOutput{}) - pulumi.RegisterOutputType(IAMAPIKeyMapOutput{}) -} diff --git a/sdk/go/exoscale/iamorgPolicy.go b/sdk/go/exoscale/iamorgPolicy.go deleted file mode 100644 index e17b6aea..00000000 --- a/sdk/go/exoscale/iamorgPolicy.go +++ /dev/null @@ -1,245 +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 exoscale - -import ( - "context" - "reflect" - - "errors" - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" -) - -type IAMOrgPolicy struct { - pulumi.CustomResourceState - - // Default service strategy (`allow` or `deny`). - DefaultServiceStrategy pulumi.StringOutput `pulumi:"defaultServiceStrategy"` - // IAM policy services. - Services IAMOrgPolicyServicesMapOutput `pulumi:"services"` - Timeouts IAMOrgPolicyTimeoutsPtrOutput `pulumi:"timeouts"` -} - -// NewIAMOrgPolicy registers a new resource with the given unique name, arguments, and options. -func NewIAMOrgPolicy(ctx *pulumi.Context, - name string, args *IAMOrgPolicyArgs, opts ...pulumi.ResourceOption) (*IAMOrgPolicy, error) { - if args == nil { - return nil, errors.New("missing one or more required arguments") - } - - if args.DefaultServiceStrategy == nil { - return nil, errors.New("invalid value for required argument 'DefaultServiceStrategy'") - } - if args.Services == nil { - return nil, errors.New("invalid value for required argument 'Services'") - } - opts = internal.PkgResourceDefaultOpts(opts) - var resource IAMOrgPolicy - err := ctx.RegisterResource("exoscale:index/iAMOrgPolicy:IAMOrgPolicy", name, args, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// GetIAMOrgPolicy gets an existing IAMOrgPolicy 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 GetIAMOrgPolicy(ctx *pulumi.Context, - name string, id pulumi.IDInput, state *IAMOrgPolicyState, opts ...pulumi.ResourceOption) (*IAMOrgPolicy, error) { - var resource IAMOrgPolicy - err := ctx.ReadResource("exoscale:index/iAMOrgPolicy:IAMOrgPolicy", name, id, state, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// Input properties used for looking up and filtering IAMOrgPolicy resources. -type iamorgPolicyState struct { - // Default service strategy (`allow` or `deny`). - DefaultServiceStrategy *string `pulumi:"defaultServiceStrategy"` - // IAM policy services. - Services map[string]IAMOrgPolicyServices `pulumi:"services"` - Timeouts *IAMOrgPolicyTimeouts `pulumi:"timeouts"` -} - -type IAMOrgPolicyState struct { - // Default service strategy (`allow` or `deny`). - DefaultServiceStrategy pulumi.StringPtrInput - // IAM policy services. - Services IAMOrgPolicyServicesMapInput - Timeouts IAMOrgPolicyTimeoutsPtrInput -} - -func (IAMOrgPolicyState) ElementType() reflect.Type { - return reflect.TypeOf((*iamorgPolicyState)(nil)).Elem() -} - -type iamorgPolicyArgs struct { - // Default service strategy (`allow` or `deny`). - DefaultServiceStrategy string `pulumi:"defaultServiceStrategy"` - // IAM policy services. - Services map[string]IAMOrgPolicyServices `pulumi:"services"` - Timeouts *IAMOrgPolicyTimeouts `pulumi:"timeouts"` -} - -// The set of arguments for constructing a IAMOrgPolicy resource. -type IAMOrgPolicyArgs struct { - // Default service strategy (`allow` or `deny`). - DefaultServiceStrategy pulumi.StringInput - // IAM policy services. - Services IAMOrgPolicyServicesMapInput - Timeouts IAMOrgPolicyTimeoutsPtrInput -} - -func (IAMOrgPolicyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*iamorgPolicyArgs)(nil)).Elem() -} - -type IAMOrgPolicyInput interface { - pulumi.Input - - ToIAMOrgPolicyOutput() IAMOrgPolicyOutput - ToIAMOrgPolicyOutputWithContext(ctx context.Context) IAMOrgPolicyOutput -} - -func (*IAMOrgPolicy) ElementType() reflect.Type { - return reflect.TypeOf((**IAMOrgPolicy)(nil)).Elem() -} - -func (i *IAMOrgPolicy) ToIAMOrgPolicyOutput() IAMOrgPolicyOutput { - return i.ToIAMOrgPolicyOutputWithContext(context.Background()) -} - -func (i *IAMOrgPolicy) ToIAMOrgPolicyOutputWithContext(ctx context.Context) IAMOrgPolicyOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMOrgPolicyOutput) -} - -// IAMOrgPolicyArrayInput is an input type that accepts IAMOrgPolicyArray and IAMOrgPolicyArrayOutput values. -// You can construct a concrete instance of `IAMOrgPolicyArrayInput` via: -// -// IAMOrgPolicyArray{ IAMOrgPolicyArgs{...} } -type IAMOrgPolicyArrayInput interface { - pulumi.Input - - ToIAMOrgPolicyArrayOutput() IAMOrgPolicyArrayOutput - ToIAMOrgPolicyArrayOutputWithContext(context.Context) IAMOrgPolicyArrayOutput -} - -type IAMOrgPolicyArray []IAMOrgPolicyInput - -func (IAMOrgPolicyArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]*IAMOrgPolicy)(nil)).Elem() -} - -func (i IAMOrgPolicyArray) ToIAMOrgPolicyArrayOutput() IAMOrgPolicyArrayOutput { - return i.ToIAMOrgPolicyArrayOutputWithContext(context.Background()) -} - -func (i IAMOrgPolicyArray) ToIAMOrgPolicyArrayOutputWithContext(ctx context.Context) IAMOrgPolicyArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMOrgPolicyArrayOutput) -} - -// IAMOrgPolicyMapInput is an input type that accepts IAMOrgPolicyMap and IAMOrgPolicyMapOutput values. -// You can construct a concrete instance of `IAMOrgPolicyMapInput` via: -// -// IAMOrgPolicyMap{ "key": IAMOrgPolicyArgs{...} } -type IAMOrgPolicyMapInput interface { - pulumi.Input - - ToIAMOrgPolicyMapOutput() IAMOrgPolicyMapOutput - ToIAMOrgPolicyMapOutputWithContext(context.Context) IAMOrgPolicyMapOutput -} - -type IAMOrgPolicyMap map[string]IAMOrgPolicyInput - -func (IAMOrgPolicyMap) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*IAMOrgPolicy)(nil)).Elem() -} - -func (i IAMOrgPolicyMap) ToIAMOrgPolicyMapOutput() IAMOrgPolicyMapOutput { - return i.ToIAMOrgPolicyMapOutputWithContext(context.Background()) -} - -func (i IAMOrgPolicyMap) ToIAMOrgPolicyMapOutputWithContext(ctx context.Context) IAMOrgPolicyMapOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMOrgPolicyMapOutput) -} - -type IAMOrgPolicyOutput struct{ *pulumi.OutputState } - -func (IAMOrgPolicyOutput) ElementType() reflect.Type { - return reflect.TypeOf((**IAMOrgPolicy)(nil)).Elem() -} - -func (o IAMOrgPolicyOutput) ToIAMOrgPolicyOutput() IAMOrgPolicyOutput { - return o -} - -func (o IAMOrgPolicyOutput) ToIAMOrgPolicyOutputWithContext(ctx context.Context) IAMOrgPolicyOutput { - return o -} - -// Default service strategy (`allow` or `deny`). -func (o IAMOrgPolicyOutput) DefaultServiceStrategy() pulumi.StringOutput { - return o.ApplyT(func(v *IAMOrgPolicy) pulumi.StringOutput { return v.DefaultServiceStrategy }).(pulumi.StringOutput) -} - -// IAM policy services. -func (o IAMOrgPolicyOutput) Services() IAMOrgPolicyServicesMapOutput { - return o.ApplyT(func(v *IAMOrgPolicy) IAMOrgPolicyServicesMapOutput { return v.Services }).(IAMOrgPolicyServicesMapOutput) -} - -func (o IAMOrgPolicyOutput) Timeouts() IAMOrgPolicyTimeoutsPtrOutput { - return o.ApplyT(func(v *IAMOrgPolicy) IAMOrgPolicyTimeoutsPtrOutput { return v.Timeouts }).(IAMOrgPolicyTimeoutsPtrOutput) -} - -type IAMOrgPolicyArrayOutput struct{ *pulumi.OutputState } - -func (IAMOrgPolicyArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]*IAMOrgPolicy)(nil)).Elem() -} - -func (o IAMOrgPolicyArrayOutput) ToIAMOrgPolicyArrayOutput() IAMOrgPolicyArrayOutput { - return o -} - -func (o IAMOrgPolicyArrayOutput) ToIAMOrgPolicyArrayOutputWithContext(ctx context.Context) IAMOrgPolicyArrayOutput { - return o -} - -func (o IAMOrgPolicyArrayOutput) Index(i pulumi.IntInput) IAMOrgPolicyOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) *IAMOrgPolicy { - return vs[0].([]*IAMOrgPolicy)[vs[1].(int)] - }).(IAMOrgPolicyOutput) -} - -type IAMOrgPolicyMapOutput struct{ *pulumi.OutputState } - -func (IAMOrgPolicyMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*IAMOrgPolicy)(nil)).Elem() -} - -func (o IAMOrgPolicyMapOutput) ToIAMOrgPolicyMapOutput() IAMOrgPolicyMapOutput { - return o -} - -func (o IAMOrgPolicyMapOutput) ToIAMOrgPolicyMapOutputWithContext(ctx context.Context) IAMOrgPolicyMapOutput { - return o -} - -func (o IAMOrgPolicyMapOutput) MapIndex(k pulumi.StringInput) IAMOrgPolicyOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) *IAMOrgPolicy { - return vs[0].(map[string]*IAMOrgPolicy)[vs[1].(string)] - }).(IAMOrgPolicyOutput) -} - -func init() { - pulumi.RegisterInputType(reflect.TypeOf((*IAMOrgPolicyInput)(nil)).Elem(), &IAMOrgPolicy{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMOrgPolicyArrayInput)(nil)).Elem(), IAMOrgPolicyArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMOrgPolicyMapInput)(nil)).Elem(), IAMOrgPolicyMap{}) - pulumi.RegisterOutputType(IAMOrgPolicyOutput{}) - pulumi.RegisterOutputType(IAMOrgPolicyArrayOutput{}) - pulumi.RegisterOutputType(IAMOrgPolicyMapOutput{}) -} diff --git a/sdk/go/exoscale/iamrole.go b/sdk/go/exoscale/iamrole.go deleted file mode 100644 index e335b8a4..00000000 --- a/sdk/go/exoscale/iamrole.go +++ /dev/null @@ -1,299 +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 exoscale - -import ( - "context" - "reflect" - - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" -) - -// Manage Exoscale [IAM](https://community.exoscale.com/documentation/iam/) Role. -type IAMRole struct { - pulumi.CustomResourceState - - // A free-form text describing the IAM Role - Description pulumi.StringOutput `pulumi:"description"` - // Defines if IAM Role Policy is editable or not. - Editable pulumi.BoolOutput `pulumi:"editable"` - // IAM Role labels. - Labels pulumi.StringMapOutput `pulumi:"labels"` - // Name of IAM Role. - Name pulumi.StringOutput `pulumi:"name"` - // IAM Role permissions. - Permissions pulumi.StringArrayOutput `pulumi:"permissions"` - // IAM Policy. - Policy IAMRolePolicyOutput `pulumi:"policy"` - Timeouts IAMRoleTimeoutsPtrOutput `pulumi:"timeouts"` -} - -// NewIAMRole registers a new resource with the given unique name, arguments, and options. -func NewIAMRole(ctx *pulumi.Context, - name string, args *IAMRoleArgs, opts ...pulumi.ResourceOption) (*IAMRole, error) { - if args == nil { - args = &IAMRoleArgs{} - } - - opts = internal.PkgResourceDefaultOpts(opts) - var resource IAMRole - err := ctx.RegisterResource("exoscale:index/iAMRole:IAMRole", name, args, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// GetIAMRole gets an existing IAMRole 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 GetIAMRole(ctx *pulumi.Context, - name string, id pulumi.IDInput, state *IAMRoleState, opts ...pulumi.ResourceOption) (*IAMRole, error) { - var resource IAMRole - err := ctx.ReadResource("exoscale:index/iAMRole:IAMRole", name, id, state, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// Input properties used for looking up and filtering IAMRole resources. -type iamroleState struct { - // A free-form text describing the IAM Role - Description *string `pulumi:"description"` - // Defines if IAM Role Policy is editable or not. - Editable *bool `pulumi:"editable"` - // IAM Role labels. - Labels map[string]string `pulumi:"labels"` - // Name of IAM Role. - Name *string `pulumi:"name"` - // IAM Role permissions. - Permissions []string `pulumi:"permissions"` - // IAM Policy. - Policy *IAMRolePolicy `pulumi:"policy"` - Timeouts *IAMRoleTimeouts `pulumi:"timeouts"` -} - -type IAMRoleState struct { - // A free-form text describing the IAM Role - Description pulumi.StringPtrInput - // Defines if IAM Role Policy is editable or not. - Editable pulumi.BoolPtrInput - // IAM Role labels. - Labels pulumi.StringMapInput - // Name of IAM Role. - Name pulumi.StringPtrInput - // IAM Role permissions. - Permissions pulumi.StringArrayInput - // IAM Policy. - Policy IAMRolePolicyPtrInput - Timeouts IAMRoleTimeoutsPtrInput -} - -func (IAMRoleState) ElementType() reflect.Type { - return reflect.TypeOf((*iamroleState)(nil)).Elem() -} - -type iamroleArgs struct { - // A free-form text describing the IAM Role - Description *string `pulumi:"description"` - // Defines if IAM Role Policy is editable or not. - Editable *bool `pulumi:"editable"` - // IAM Role labels. - Labels map[string]string `pulumi:"labels"` - // Name of IAM Role. - Name *string `pulumi:"name"` - // IAM Role permissions. - Permissions []string `pulumi:"permissions"` - // IAM Policy. - Policy *IAMRolePolicy `pulumi:"policy"` - Timeouts *IAMRoleTimeouts `pulumi:"timeouts"` -} - -// The set of arguments for constructing a IAMRole resource. -type IAMRoleArgs struct { - // A free-form text describing the IAM Role - Description pulumi.StringPtrInput - // Defines if IAM Role Policy is editable or not. - Editable pulumi.BoolPtrInput - // IAM Role labels. - Labels pulumi.StringMapInput - // Name of IAM Role. - Name pulumi.StringPtrInput - // IAM Role permissions. - Permissions pulumi.StringArrayInput - // IAM Policy. - Policy IAMRolePolicyPtrInput - Timeouts IAMRoleTimeoutsPtrInput -} - -func (IAMRoleArgs) ElementType() reflect.Type { - return reflect.TypeOf((*iamroleArgs)(nil)).Elem() -} - -type IAMRoleInput interface { - pulumi.Input - - ToIAMRoleOutput() IAMRoleOutput - ToIAMRoleOutputWithContext(ctx context.Context) IAMRoleOutput -} - -func (*IAMRole) ElementType() reflect.Type { - return reflect.TypeOf((**IAMRole)(nil)).Elem() -} - -func (i *IAMRole) ToIAMRoleOutput() IAMRoleOutput { - return i.ToIAMRoleOutputWithContext(context.Background()) -} - -func (i *IAMRole) ToIAMRoleOutputWithContext(ctx context.Context) IAMRoleOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMRoleOutput) -} - -// IAMRoleArrayInput is an input type that accepts IAMRoleArray and IAMRoleArrayOutput values. -// You can construct a concrete instance of `IAMRoleArrayInput` via: -// -// IAMRoleArray{ IAMRoleArgs{...} } -type IAMRoleArrayInput interface { - pulumi.Input - - ToIAMRoleArrayOutput() IAMRoleArrayOutput - ToIAMRoleArrayOutputWithContext(context.Context) IAMRoleArrayOutput -} - -type IAMRoleArray []IAMRoleInput - -func (IAMRoleArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]*IAMRole)(nil)).Elem() -} - -func (i IAMRoleArray) ToIAMRoleArrayOutput() IAMRoleArrayOutput { - return i.ToIAMRoleArrayOutputWithContext(context.Background()) -} - -func (i IAMRoleArray) ToIAMRoleArrayOutputWithContext(ctx context.Context) IAMRoleArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMRoleArrayOutput) -} - -// IAMRoleMapInput is an input type that accepts IAMRoleMap and IAMRoleMapOutput values. -// You can construct a concrete instance of `IAMRoleMapInput` via: -// -// IAMRoleMap{ "key": IAMRoleArgs{...} } -type IAMRoleMapInput interface { - pulumi.Input - - ToIAMRoleMapOutput() IAMRoleMapOutput - ToIAMRoleMapOutputWithContext(context.Context) IAMRoleMapOutput -} - -type IAMRoleMap map[string]IAMRoleInput - -func (IAMRoleMap) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*IAMRole)(nil)).Elem() -} - -func (i IAMRoleMap) ToIAMRoleMapOutput() IAMRoleMapOutput { - return i.ToIAMRoleMapOutputWithContext(context.Background()) -} - -func (i IAMRoleMap) ToIAMRoleMapOutputWithContext(ctx context.Context) IAMRoleMapOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMRoleMapOutput) -} - -type IAMRoleOutput struct{ *pulumi.OutputState } - -func (IAMRoleOutput) ElementType() reflect.Type { - return reflect.TypeOf((**IAMRole)(nil)).Elem() -} - -func (o IAMRoleOutput) ToIAMRoleOutput() IAMRoleOutput { - return o -} - -func (o IAMRoleOutput) ToIAMRoleOutputWithContext(ctx context.Context) IAMRoleOutput { - return o -} - -// A free-form text describing the IAM Role -func (o IAMRoleOutput) Description() pulumi.StringOutput { - return o.ApplyT(func(v *IAMRole) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput) -} - -// Defines if IAM Role Policy is editable or not. -func (o IAMRoleOutput) Editable() pulumi.BoolOutput { - return o.ApplyT(func(v *IAMRole) pulumi.BoolOutput { return v.Editable }).(pulumi.BoolOutput) -} - -// IAM Role labels. -func (o IAMRoleOutput) Labels() pulumi.StringMapOutput { - return o.ApplyT(func(v *IAMRole) pulumi.StringMapOutput { return v.Labels }).(pulumi.StringMapOutput) -} - -// Name of IAM Role. -func (o IAMRoleOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v *IAMRole) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) -} - -// IAM Role permissions. -func (o IAMRoleOutput) Permissions() pulumi.StringArrayOutput { - return o.ApplyT(func(v *IAMRole) pulumi.StringArrayOutput { return v.Permissions }).(pulumi.StringArrayOutput) -} - -// IAM Policy. -func (o IAMRoleOutput) Policy() IAMRolePolicyOutput { - return o.ApplyT(func(v *IAMRole) IAMRolePolicyOutput { return v.Policy }).(IAMRolePolicyOutput) -} - -func (o IAMRoleOutput) Timeouts() IAMRoleTimeoutsPtrOutput { - return o.ApplyT(func(v *IAMRole) IAMRoleTimeoutsPtrOutput { return v.Timeouts }).(IAMRoleTimeoutsPtrOutput) -} - -type IAMRoleArrayOutput struct{ *pulumi.OutputState } - -func (IAMRoleArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]*IAMRole)(nil)).Elem() -} - -func (o IAMRoleArrayOutput) ToIAMRoleArrayOutput() IAMRoleArrayOutput { - return o -} - -func (o IAMRoleArrayOutput) ToIAMRoleArrayOutputWithContext(ctx context.Context) IAMRoleArrayOutput { - return o -} - -func (o IAMRoleArrayOutput) Index(i pulumi.IntInput) IAMRoleOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) *IAMRole { - return vs[0].([]*IAMRole)[vs[1].(int)] - }).(IAMRoleOutput) -} - -type IAMRoleMapOutput struct{ *pulumi.OutputState } - -func (IAMRoleMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*IAMRole)(nil)).Elem() -} - -func (o IAMRoleMapOutput) ToIAMRoleMapOutput() IAMRoleMapOutput { - return o -} - -func (o IAMRoleMapOutput) ToIAMRoleMapOutputWithContext(ctx context.Context) IAMRoleMapOutput { - return o -} - -func (o IAMRoleMapOutput) MapIndex(k pulumi.StringInput) IAMRoleOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) *IAMRole { - return vs[0].(map[string]*IAMRole)[vs[1].(string)] - }).(IAMRoleOutput) -} - -func init() { - pulumi.RegisterInputType(reflect.TypeOf((*IAMRoleInput)(nil)).Elem(), &IAMRole{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMRoleArrayInput)(nil)).Elem(), IAMRoleArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMRoleMapInput)(nil)).Elem(), IAMRoleMap{}) - pulumi.RegisterOutputType(IAMRoleOutput{}) - pulumi.RegisterOutputType(IAMRoleArrayOutput{}) - pulumi.RegisterOutputType(IAMRoleMapOutput{}) -} diff --git a/sdk/go/exoscale/init.go b/sdk/go/exoscale/init.go index a4ada06f..b2318da6 100644 --- a/sdk/go/exoscale/init.go +++ b/sdk/go/exoscale/init.go @@ -31,36 +31,36 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi r = &Domain{} case "exoscale:index/domainRecord:DomainRecord": r = &DomainRecord{} - case "exoscale:index/elasticIP:ElasticIP": - r = &ElasticIP{} - case "exoscale:index/iAMAPIKey:IAMAPIKey": - r = &IAMAPIKey{} - case "exoscale:index/iAMAccessKey:IAMAccessKey": - r = &IAMAccessKey{} - case "exoscale:index/iAMOrgPolicy:IAMOrgPolicy": - r = &IAMOrgPolicy{} - case "exoscale:index/iAMRole:IAMRole": - r = &IAMRole{} + case "exoscale:index/elasticIp:ElasticIp": + r = &ElasticIp{} + case "exoscale:index/iamAccessKey:IamAccessKey": + r = &IamAccessKey{} + case "exoscale:index/iamApiKey:IamApiKey": + r = &IamApiKey{} + case "exoscale:index/iamOrgPolicy:IamOrgPolicy": + r = &IamOrgPolicy{} + case "exoscale:index/iamRole:IamRole": + r = &IamRole{} case "exoscale:index/instancePool:InstancePool": r = &InstancePool{} - case "exoscale:index/nLB:NLB": - r = &NLB{} - case "exoscale:index/nLBService:NLBService": - r = &NLBService{} + case "exoscale:index/nlb:Nlb": + r = &Nlb{} + case "exoscale:index/nlbService:NlbService": + r = &NlbService{} case "exoscale:index/privateNetwork:PrivateNetwork": r = &PrivateNetwork{} - case "exoscale:index/sKSCluster:SKSCluster": - r = &SKSCluster{} - case "exoscale:index/sKSKubeconfig:SKSKubeconfig": - r = &SKSKubeconfig{} - case "exoscale:index/sKSNodepool:SKSNodepool": - r = &SKSNodepool{} - case "exoscale:index/sSHKey:SSHKey": - r = &SSHKey{} case "exoscale:index/securityGroup:SecurityGroup": r = &SecurityGroup{} case "exoscale:index/securityGroupRule:SecurityGroupRule": r = &SecurityGroupRule{} + case "exoscale:index/sksCluster:SksCluster": + r = &SksCluster{} + case "exoscale:index/sksKubeconfig:SksKubeconfig": + r = &SksKubeconfig{} + case "exoscale:index/sksNodepool:SksNodepool": + r = &SksNodepool{} + case "exoscale:index/sshKey:SshKey": + r = &SshKey{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } @@ -119,27 +119,27 @@ func init() { ) pulumi.RegisterResourceModule( "exoscale", - "index/elasticIP", + "index/elasticIp", &module{version}, ) pulumi.RegisterResourceModule( "exoscale", - "index/iAMAPIKey", + "index/iamAccessKey", &module{version}, ) pulumi.RegisterResourceModule( "exoscale", - "index/iAMAccessKey", + "index/iamApiKey", &module{version}, ) pulumi.RegisterResourceModule( "exoscale", - "index/iAMOrgPolicy", + "index/iamOrgPolicy", &module{version}, ) pulumi.RegisterResourceModule( "exoscale", - "index/iAMRole", + "index/iamRole", &module{version}, ) pulumi.RegisterResourceModule( @@ -149,12 +149,12 @@ func init() { ) pulumi.RegisterResourceModule( "exoscale", - "index/nLB", + "index/nlb", &module{version}, ) pulumi.RegisterResourceModule( "exoscale", - "index/nLBService", + "index/nlbService", &module{version}, ) pulumi.RegisterResourceModule( @@ -164,32 +164,32 @@ func init() { ) pulumi.RegisterResourceModule( "exoscale", - "index/sKSCluster", + "index/securityGroup", &module{version}, ) pulumi.RegisterResourceModule( "exoscale", - "index/sKSKubeconfig", + "index/securityGroupRule", &module{version}, ) pulumi.RegisterResourceModule( "exoscale", - "index/sKSNodepool", + "index/sksCluster", &module{version}, ) pulumi.RegisterResourceModule( "exoscale", - "index/sSHKey", + "index/sksKubeconfig", &module{version}, ) pulumi.RegisterResourceModule( "exoscale", - "index/securityGroup", + "index/sksNodepool", &module{version}, ) pulumi.RegisterResourceModule( "exoscale", - "index/securityGroupRule", + "index/sshKey", &module{version}, ) pulumi.RegisterResourcePackage( diff --git a/sdk/go/exoscale/instancePool.go b/sdk/go/exoscale/instancePool.go index ba13f833..690513d9 100644 --- a/sdk/go/exoscale/instancePool.go +++ b/sdk/go/exoscale/instancePool.go @@ -12,6 +12,50 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// Manage Exoscale [Instance Pools](https://community.exoscale.com/documentation/compute/instance-pools/). +// +// Corresponding data sources: exoscale_instance_pool, exoscale_instance_pool_list. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// myTemplate, err := exoscale.GetTemplate(ctx, &exoscale.GetTemplateArgs{ +// Zone: "ch-gva-2", +// Name: pulumi.StringRef("Linux Ubuntu 22.04 LTS 64-bit"), +// }, nil) +// if err != nil { +// return err +// } +// _, err = exoscale.NewInstancePool(ctx, "myInstancePool", &exoscale.InstancePoolArgs{ +// Zone: pulumi.String("ch-gva-2"), +// TemplateId: *pulumi.String(myTemplate.Id), +// InstanceType: pulumi.String("standard.medium"), +// DiskSize: pulumi.Int(10), +// Size: pulumi.Int(3), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// Please refer to the examples +// directory for complete configuration examples. +// // ## Import // // An existing instance pool may be imported by `@` diff --git a/sdk/go/exoscale/nlb.go b/sdk/go/exoscale/nlb.go index d83c7c20..3f20b3d5 100644 --- a/sdk/go/exoscale/nlb.go +++ b/sdk/go/exoscale/nlb.go @@ -12,20 +12,55 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// Manage Exoscale [Network Load Balancers (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/). +// +// Corresponding data source: exoscale_nlb. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := exoscale.NewNlb(ctx, "myNlb", &exoscale.NlbArgs{ +// Zone: pulumi.String("ch-gva-2"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// Next step is to attach exoscale_nlb_service(s) to the NLB. +// +// Please refer to the examples +// directory for complete configuration examples. +// // ## Import // // An existing network load balancer (NLB) may be imported by `@`console // // ```sh // -// $ pulumi import exoscale:index/nLB:NLB \ +// $ pulumi import exoscale:index/nlb:Nlb \ // // ``` // // exoscale_nlb.my_nlb \ // // f81d4fae-7dec-11d0-a765-00a0c91e6bf6@ch-gva-2 -type NLB struct { +type Nlb struct { pulumi.CustomResourceState // The NLB creation date. @@ -46,9 +81,9 @@ type NLB struct { Zone pulumi.StringOutput `pulumi:"zone"` } -// NewNLB registers a new resource with the given unique name, arguments, and options. -func NewNLB(ctx *pulumi.Context, - name string, args *NLBArgs, opts ...pulumi.ResourceOption) (*NLB, error) { +// NewNlb registers a new resource with the given unique name, arguments, and options. +func NewNlb(ctx *pulumi.Context, + name string, args *NlbArgs, opts ...pulumi.ResourceOption) (*Nlb, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } @@ -57,27 +92,27 @@ func NewNLB(ctx *pulumi.Context, return nil, errors.New("invalid value for required argument 'Zone'") } opts = internal.PkgResourceDefaultOpts(opts) - var resource NLB - err := ctx.RegisterResource("exoscale:index/nLB:NLB", name, args, &resource, opts...) + var resource Nlb + err := ctx.RegisterResource("exoscale:index/nlb:Nlb", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } -// GetNLB gets an existing NLB resource's state with the given name, ID, and optional +// GetNlb gets an existing Nlb 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 GetNLB(ctx *pulumi.Context, - name string, id pulumi.IDInput, state *NLBState, opts ...pulumi.ResourceOption) (*NLB, error) { - var resource NLB - err := ctx.ReadResource("exoscale:index/nLB:NLB", name, id, state, &resource, opts...) +func GetNlb(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *NlbState, opts ...pulumi.ResourceOption) (*Nlb, error) { + var resource Nlb + err := ctx.ReadResource("exoscale:index/nlb:Nlb", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } -// Input properties used for looking up and filtering NLB resources. +// Input properties used for looking up and filtering Nlb resources. type nlbState struct { // The NLB creation date. CreatedAt *string `pulumi:"createdAt"` @@ -97,7 +132,7 @@ type nlbState struct { Zone *string `pulumi:"zone"` } -type NLBState struct { +type NlbState struct { // The NLB creation date. CreatedAt pulumi.StringPtrInput // A free-form text describing the NLB. @@ -116,7 +151,7 @@ type NLBState struct { Zone pulumi.StringPtrInput } -func (NLBState) ElementType() reflect.Type { +func (NlbState) ElementType() reflect.Type { return reflect.TypeOf((*nlbState)(nil)).Elem() } @@ -131,8 +166,8 @@ type nlbArgs struct { Zone string `pulumi:"zone"` } -// The set of arguments for constructing a NLB resource. -type NLBArgs struct { +// The set of arguments for constructing a Nlb resource. +type NlbArgs struct { // A free-form text describing the NLB. Description pulumi.StringPtrInput // A map of key/value labels. @@ -143,178 +178,178 @@ type NLBArgs struct { Zone pulumi.StringInput } -func (NLBArgs) ElementType() reflect.Type { +func (NlbArgs) ElementType() reflect.Type { return reflect.TypeOf((*nlbArgs)(nil)).Elem() } -type NLBInput interface { +type NlbInput interface { pulumi.Input - ToNLBOutput() NLBOutput - ToNLBOutputWithContext(ctx context.Context) NLBOutput + ToNlbOutput() NlbOutput + ToNlbOutputWithContext(ctx context.Context) NlbOutput } -func (*NLB) ElementType() reflect.Type { - return reflect.TypeOf((**NLB)(nil)).Elem() +func (*Nlb) ElementType() reflect.Type { + return reflect.TypeOf((**Nlb)(nil)).Elem() } -func (i *NLB) ToNLBOutput() NLBOutput { - return i.ToNLBOutputWithContext(context.Background()) +func (i *Nlb) ToNlbOutput() NlbOutput { + return i.ToNlbOutputWithContext(context.Background()) } -func (i *NLB) ToNLBOutputWithContext(ctx context.Context) NLBOutput { - return pulumi.ToOutputWithContext(ctx, i).(NLBOutput) +func (i *Nlb) ToNlbOutputWithContext(ctx context.Context) NlbOutput { + return pulumi.ToOutputWithContext(ctx, i).(NlbOutput) } -// NLBArrayInput is an input type that accepts NLBArray and NLBArrayOutput values. -// You can construct a concrete instance of `NLBArrayInput` via: +// NlbArrayInput is an input type that accepts NlbArray and NlbArrayOutput values. +// You can construct a concrete instance of `NlbArrayInput` via: // -// NLBArray{ NLBArgs{...} } -type NLBArrayInput interface { +// NlbArray{ NlbArgs{...} } +type NlbArrayInput interface { pulumi.Input - ToNLBArrayOutput() NLBArrayOutput - ToNLBArrayOutputWithContext(context.Context) NLBArrayOutput + ToNlbArrayOutput() NlbArrayOutput + ToNlbArrayOutputWithContext(context.Context) NlbArrayOutput } -type NLBArray []NLBInput +type NlbArray []NlbInput -func (NLBArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]*NLB)(nil)).Elem() +func (NlbArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*Nlb)(nil)).Elem() } -func (i NLBArray) ToNLBArrayOutput() NLBArrayOutput { - return i.ToNLBArrayOutputWithContext(context.Background()) +func (i NlbArray) ToNlbArrayOutput() NlbArrayOutput { + return i.ToNlbArrayOutputWithContext(context.Background()) } -func (i NLBArray) ToNLBArrayOutputWithContext(ctx context.Context) NLBArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(NLBArrayOutput) +func (i NlbArray) ToNlbArrayOutputWithContext(ctx context.Context) NlbArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(NlbArrayOutput) } -// NLBMapInput is an input type that accepts NLBMap and NLBMapOutput values. -// You can construct a concrete instance of `NLBMapInput` via: +// NlbMapInput is an input type that accepts NlbMap and NlbMapOutput values. +// You can construct a concrete instance of `NlbMapInput` via: // -// NLBMap{ "key": NLBArgs{...} } -type NLBMapInput interface { +// NlbMap{ "key": NlbArgs{...} } +type NlbMapInput interface { pulumi.Input - ToNLBMapOutput() NLBMapOutput - ToNLBMapOutputWithContext(context.Context) NLBMapOutput + ToNlbMapOutput() NlbMapOutput + ToNlbMapOutputWithContext(context.Context) NlbMapOutput } -type NLBMap map[string]NLBInput +type NlbMap map[string]NlbInput -func (NLBMap) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*NLB)(nil)).Elem() +func (NlbMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*Nlb)(nil)).Elem() } -func (i NLBMap) ToNLBMapOutput() NLBMapOutput { - return i.ToNLBMapOutputWithContext(context.Background()) +func (i NlbMap) ToNlbMapOutput() NlbMapOutput { + return i.ToNlbMapOutputWithContext(context.Background()) } -func (i NLBMap) ToNLBMapOutputWithContext(ctx context.Context) NLBMapOutput { - return pulumi.ToOutputWithContext(ctx, i).(NLBMapOutput) +func (i NlbMap) ToNlbMapOutputWithContext(ctx context.Context) NlbMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(NlbMapOutput) } -type NLBOutput struct{ *pulumi.OutputState } +type NlbOutput struct{ *pulumi.OutputState } -func (NLBOutput) ElementType() reflect.Type { - return reflect.TypeOf((**NLB)(nil)).Elem() +func (NlbOutput) ElementType() reflect.Type { + return reflect.TypeOf((**Nlb)(nil)).Elem() } -func (o NLBOutput) ToNLBOutput() NLBOutput { +func (o NlbOutput) ToNlbOutput() NlbOutput { return o } -func (o NLBOutput) ToNLBOutputWithContext(ctx context.Context) NLBOutput { +func (o NlbOutput) ToNlbOutputWithContext(ctx context.Context) NlbOutput { return o } // The NLB creation date. -func (o NLBOutput) CreatedAt() pulumi.StringOutput { - return o.ApplyT(func(v *NLB) pulumi.StringOutput { return v.CreatedAt }).(pulumi.StringOutput) +func (o NlbOutput) CreatedAt() pulumi.StringOutput { + return o.ApplyT(func(v *Nlb) pulumi.StringOutput { return v.CreatedAt }).(pulumi.StringOutput) } // A free-form text describing the NLB. -func (o NLBOutput) Description() pulumi.StringPtrOutput { - return o.ApplyT(func(v *NLB) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) +func (o NlbOutput) Description() pulumi.StringPtrOutput { + return o.ApplyT(func(v *Nlb) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The NLB IPv4 address. -func (o NLBOutput) IpAddress() pulumi.StringOutput { - return o.ApplyT(func(v *NLB) pulumi.StringOutput { return v.IpAddress }).(pulumi.StringOutput) +func (o NlbOutput) IpAddress() pulumi.StringOutput { + return o.ApplyT(func(v *Nlb) pulumi.StringOutput { return v.IpAddress }).(pulumi.StringOutput) } // A map of key/value labels. -func (o NLBOutput) Labels() pulumi.StringMapOutput { - return o.ApplyT(func(v *NLB) pulumi.StringMapOutput { return v.Labels }).(pulumi.StringMapOutput) +func (o NlbOutput) Labels() pulumi.StringMapOutput { + return o.ApplyT(func(v *Nlb) pulumi.StringMapOutput { return v.Labels }).(pulumi.StringMapOutput) } // The network load balancer (NLB) name. -func (o NLBOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v *NLB) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +func (o NlbOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *Nlb) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The list of the exoscale*nlb*service (names). -func (o NLBOutput) Services() pulumi.StringArrayOutput { - return o.ApplyT(func(v *NLB) pulumi.StringArrayOutput { return v.Services }).(pulumi.StringArrayOutput) +func (o NlbOutput) Services() pulumi.StringArrayOutput { + return o.ApplyT(func(v *Nlb) pulumi.StringArrayOutput { return v.Services }).(pulumi.StringArrayOutput) } // The current NLB state. -func (o NLBOutput) State() pulumi.StringOutput { - return o.ApplyT(func(v *NLB) pulumi.StringOutput { return v.State }).(pulumi.StringOutput) +func (o NlbOutput) State() pulumi.StringOutput { + return o.ApplyT(func(v *Nlb) pulumi.StringOutput { return v.State }).(pulumi.StringOutput) } // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. -func (o NLBOutput) Zone() pulumi.StringOutput { - return o.ApplyT(func(v *NLB) pulumi.StringOutput { return v.Zone }).(pulumi.StringOutput) +func (o NlbOutput) Zone() pulumi.StringOutput { + return o.ApplyT(func(v *Nlb) pulumi.StringOutput { return v.Zone }).(pulumi.StringOutput) } -type NLBArrayOutput struct{ *pulumi.OutputState } +type NlbArrayOutput struct{ *pulumi.OutputState } -func (NLBArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]*NLB)(nil)).Elem() +func (NlbArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*Nlb)(nil)).Elem() } -func (o NLBArrayOutput) ToNLBArrayOutput() NLBArrayOutput { +func (o NlbArrayOutput) ToNlbArrayOutput() NlbArrayOutput { return o } -func (o NLBArrayOutput) ToNLBArrayOutputWithContext(ctx context.Context) NLBArrayOutput { +func (o NlbArrayOutput) ToNlbArrayOutputWithContext(ctx context.Context) NlbArrayOutput { return o } -func (o NLBArrayOutput) Index(i pulumi.IntInput) NLBOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) *NLB { - return vs[0].([]*NLB)[vs[1].(int)] - }).(NLBOutput) +func (o NlbArrayOutput) Index(i pulumi.IntInput) NlbOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Nlb { + return vs[0].([]*Nlb)[vs[1].(int)] + }).(NlbOutput) } -type NLBMapOutput struct{ *pulumi.OutputState } +type NlbMapOutput struct{ *pulumi.OutputState } -func (NLBMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*NLB)(nil)).Elem() +func (NlbMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*Nlb)(nil)).Elem() } -func (o NLBMapOutput) ToNLBMapOutput() NLBMapOutput { +func (o NlbMapOutput) ToNlbMapOutput() NlbMapOutput { return o } -func (o NLBMapOutput) ToNLBMapOutputWithContext(ctx context.Context) NLBMapOutput { +func (o NlbMapOutput) ToNlbMapOutputWithContext(ctx context.Context) NlbMapOutput { return o } -func (o NLBMapOutput) MapIndex(k pulumi.StringInput) NLBOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) *NLB { - return vs[0].(map[string]*NLB)[vs[1].(string)] - }).(NLBOutput) +func (o NlbMapOutput) MapIndex(k pulumi.StringInput) NlbOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Nlb { + return vs[0].(map[string]*Nlb)[vs[1].(string)] + }).(NlbOutput) } func init() { - pulumi.RegisterInputType(reflect.TypeOf((*NLBInput)(nil)).Elem(), &NLB{}) - pulumi.RegisterInputType(reflect.TypeOf((*NLBArrayInput)(nil)).Elem(), NLBArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*NLBMapInput)(nil)).Elem(), NLBMap{}) - pulumi.RegisterOutputType(NLBOutput{}) - pulumi.RegisterOutputType(NLBArrayOutput{}) - pulumi.RegisterOutputType(NLBMapOutput{}) + pulumi.RegisterInputType(reflect.TypeOf((*NlbInput)(nil)).Elem(), &Nlb{}) + pulumi.RegisterInputType(reflect.TypeOf((*NlbArrayInput)(nil)).Elem(), NlbArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*NlbMapInput)(nil)).Elem(), NlbMap{}) + pulumi.RegisterOutputType(NlbOutput{}) + pulumi.RegisterOutputType(NlbArrayOutput{}) + pulumi.RegisterOutputType(NlbMapOutput{}) } diff --git a/sdk/go/exoscale/nlbService.go b/sdk/go/exoscale/nlbService.go new file mode 100644 index 00000000..ff213aa9 --- /dev/null +++ b/sdk/go/exoscale/nlbService.go @@ -0,0 +1,442 @@ +// 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 exoscale + +import ( + "context" + "reflect" + + "errors" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" +) + +// Manage Exoscale [Network Load Balancer (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/) Services. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// myNlb, err := exoscale.NewNlb(ctx, "myNlb", &exoscale.NlbArgs{ +// Zone: pulumi.String("ch-gva-2"), +// }) +// if err != nil { +// return err +// } +// _, err = exoscale.NewNlbService(ctx, "myNlbService", &exoscale.NlbServiceArgs{ +// NlbId: myNlb.ID(), +// Zone: myNlb.Zone, +// InstancePoolId: pulumi.Any(exoscale_instance_pool.My_instance_pool.Id), +// Protocol: pulumi.String("tcp"), +// Port: pulumi.Int(443), +// TargetPort: pulumi.Int(8443), +// Strategy: pulumi.String("round-robin"), +// Healthchecks: exoscale.NlbServiceHealthcheckArray{ +// &exoscale.NlbServiceHealthcheckArgs{ +// Mode: pulumi.String("https"), +// Port: pulumi.Int(8443), +// Uri: pulumi.String("/healthz"), +// TlsSni: pulumi.String("example.net"), +// Interval: pulumi.Int(5), +// Timeout: pulumi.Int(3), +// Retries: pulumi.Int(1), +// }, +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// Please refer to the examples +// directory for complete configuration examples. +// +// ## Import +// +// An existing NLB service may be imported by `/@` +// +// ```sh +// +// $ pulumi import exoscale:index/nlbService:NlbService \ +// +// ``` +// +// exoscale_nlb_service.my_nlb_service \ +// +// f81d4fae-7dec-11d0-a765-00a0c91e6bf6/9ecc6b8b-73d4-4211-8ced-f7f29bb79524@ch-gva-2 +type NlbService struct { + pulumi.CustomResourceState + + // A free-form text describing the NLB service. + Description pulumi.StringPtrOutput `pulumi:"description"` + // The service health checking configuration. + Healthchecks NlbServiceHealthcheckArrayOutput `pulumi:"healthchecks"` + // ❗ The exoscale*instance*pool (ID) to forward traffic to. + InstancePoolId pulumi.StringOutput `pulumi:"instancePoolId"` + // The NLB service name. + Name pulumi.StringOutput `pulumi:"name"` + // ❗ The parent Nlb ID. + NlbId pulumi.StringOutput `pulumi:"nlbId"` + // The NLB service (TCP/UDP) port. + Port pulumi.IntOutput `pulumi:"port"` + // The protocol (`tcp`|`udp`; default: `tcp`). + Protocol pulumi.StringPtrOutput `pulumi:"protocol"` + State pulumi.StringOutput `pulumi:"state"` + // The strategy (`round-robin`|`source-hash`; default: `round-robin`). + Strategy pulumi.StringPtrOutput `pulumi:"strategy"` + // The (TCP/UDP) port to forward traffic to (on target instance pool members). + TargetPort pulumi.IntOutput `pulumi:"targetPort"` + // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. + Zone pulumi.StringOutput `pulumi:"zone"` +} + +// NewNlbService registers a new resource with the given unique name, arguments, and options. +func NewNlbService(ctx *pulumi.Context, + name string, args *NlbServiceArgs, opts ...pulumi.ResourceOption) (*NlbService, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Healthchecks == nil { + return nil, errors.New("invalid value for required argument 'Healthchecks'") + } + if args.InstancePoolId == nil { + return nil, errors.New("invalid value for required argument 'InstancePoolId'") + } + if args.NlbId == nil { + return nil, errors.New("invalid value for required argument 'NlbId'") + } + if args.Port == nil { + return nil, errors.New("invalid value for required argument 'Port'") + } + if args.TargetPort == nil { + return nil, errors.New("invalid value for required argument 'TargetPort'") + } + if args.Zone == nil { + return nil, errors.New("invalid value for required argument 'Zone'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource NlbService + err := ctx.RegisterResource("exoscale:index/nlbService:NlbService", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetNlbService gets an existing NlbService 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 GetNlbService(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *NlbServiceState, opts ...pulumi.ResourceOption) (*NlbService, error) { + var resource NlbService + err := ctx.ReadResource("exoscale:index/nlbService:NlbService", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering NlbService resources. +type nlbServiceState struct { + // A free-form text describing the NLB service. + Description *string `pulumi:"description"` + // The service health checking configuration. + Healthchecks []NlbServiceHealthcheck `pulumi:"healthchecks"` + // ❗ The exoscale*instance*pool (ID) to forward traffic to. + InstancePoolId *string `pulumi:"instancePoolId"` + // The NLB service name. + Name *string `pulumi:"name"` + // ❗ The parent Nlb ID. + NlbId *string `pulumi:"nlbId"` + // The NLB service (TCP/UDP) port. + Port *int `pulumi:"port"` + // The protocol (`tcp`|`udp`; default: `tcp`). + Protocol *string `pulumi:"protocol"` + State *string `pulumi:"state"` + // The strategy (`round-robin`|`source-hash`; default: `round-robin`). + Strategy *string `pulumi:"strategy"` + // The (TCP/UDP) port to forward traffic to (on target instance pool members). + TargetPort *int `pulumi:"targetPort"` + // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. + Zone *string `pulumi:"zone"` +} + +type NlbServiceState struct { + // A free-form text describing the NLB service. + Description pulumi.StringPtrInput + // The service health checking configuration. + Healthchecks NlbServiceHealthcheckArrayInput + // ❗ The exoscale*instance*pool (ID) to forward traffic to. + InstancePoolId pulumi.StringPtrInput + // The NLB service name. + Name pulumi.StringPtrInput + // ❗ The parent Nlb ID. + NlbId pulumi.StringPtrInput + // The NLB service (TCP/UDP) port. + Port pulumi.IntPtrInput + // The protocol (`tcp`|`udp`; default: `tcp`). + Protocol pulumi.StringPtrInput + State pulumi.StringPtrInput + // The strategy (`round-robin`|`source-hash`; default: `round-robin`). + Strategy pulumi.StringPtrInput + // The (TCP/UDP) port to forward traffic to (on target instance pool members). + TargetPort pulumi.IntPtrInput + // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. + Zone pulumi.StringPtrInput +} + +func (NlbServiceState) ElementType() reflect.Type { + return reflect.TypeOf((*nlbServiceState)(nil)).Elem() +} + +type nlbServiceArgs struct { + // A free-form text describing the NLB service. + Description *string `pulumi:"description"` + // The service health checking configuration. + Healthchecks []NlbServiceHealthcheck `pulumi:"healthchecks"` + // ❗ The exoscale*instance*pool (ID) to forward traffic to. + InstancePoolId string `pulumi:"instancePoolId"` + // The NLB service name. + Name *string `pulumi:"name"` + // ❗ The parent Nlb ID. + NlbId string `pulumi:"nlbId"` + // The NLB service (TCP/UDP) port. + Port int `pulumi:"port"` + // The protocol (`tcp`|`udp`; default: `tcp`). + Protocol *string `pulumi:"protocol"` + // The strategy (`round-robin`|`source-hash`; default: `round-robin`). + Strategy *string `pulumi:"strategy"` + // The (TCP/UDP) port to forward traffic to (on target instance pool members). + TargetPort int `pulumi:"targetPort"` + // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. + Zone string `pulumi:"zone"` +} + +// The set of arguments for constructing a NlbService resource. +type NlbServiceArgs struct { + // A free-form text describing the NLB service. + Description pulumi.StringPtrInput + // The service health checking configuration. + Healthchecks NlbServiceHealthcheckArrayInput + // ❗ The exoscale*instance*pool (ID) to forward traffic to. + InstancePoolId pulumi.StringInput + // The NLB service name. + Name pulumi.StringPtrInput + // ❗ The parent Nlb ID. + NlbId pulumi.StringInput + // The NLB service (TCP/UDP) port. + Port pulumi.IntInput + // The protocol (`tcp`|`udp`; default: `tcp`). + Protocol pulumi.StringPtrInput + // The strategy (`round-robin`|`source-hash`; default: `round-robin`). + Strategy pulumi.StringPtrInput + // The (TCP/UDP) port to forward traffic to (on target instance pool members). + TargetPort pulumi.IntInput + // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. + Zone pulumi.StringInput +} + +func (NlbServiceArgs) ElementType() reflect.Type { + return reflect.TypeOf((*nlbServiceArgs)(nil)).Elem() +} + +type NlbServiceInput interface { + pulumi.Input + + ToNlbServiceOutput() NlbServiceOutput + ToNlbServiceOutputWithContext(ctx context.Context) NlbServiceOutput +} + +func (*NlbService) ElementType() reflect.Type { + return reflect.TypeOf((**NlbService)(nil)).Elem() +} + +func (i *NlbService) ToNlbServiceOutput() NlbServiceOutput { + return i.ToNlbServiceOutputWithContext(context.Background()) +} + +func (i *NlbService) ToNlbServiceOutputWithContext(ctx context.Context) NlbServiceOutput { + return pulumi.ToOutputWithContext(ctx, i).(NlbServiceOutput) +} + +// NlbServiceArrayInput is an input type that accepts NlbServiceArray and NlbServiceArrayOutput values. +// You can construct a concrete instance of `NlbServiceArrayInput` via: +// +// NlbServiceArray{ NlbServiceArgs{...} } +type NlbServiceArrayInput interface { + pulumi.Input + + ToNlbServiceArrayOutput() NlbServiceArrayOutput + ToNlbServiceArrayOutputWithContext(context.Context) NlbServiceArrayOutput +} + +type NlbServiceArray []NlbServiceInput + +func (NlbServiceArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*NlbService)(nil)).Elem() +} + +func (i NlbServiceArray) ToNlbServiceArrayOutput() NlbServiceArrayOutput { + return i.ToNlbServiceArrayOutputWithContext(context.Background()) +} + +func (i NlbServiceArray) ToNlbServiceArrayOutputWithContext(ctx context.Context) NlbServiceArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(NlbServiceArrayOutput) +} + +// NlbServiceMapInput is an input type that accepts NlbServiceMap and NlbServiceMapOutput values. +// You can construct a concrete instance of `NlbServiceMapInput` via: +// +// NlbServiceMap{ "key": NlbServiceArgs{...} } +type NlbServiceMapInput interface { + pulumi.Input + + ToNlbServiceMapOutput() NlbServiceMapOutput + ToNlbServiceMapOutputWithContext(context.Context) NlbServiceMapOutput +} + +type NlbServiceMap map[string]NlbServiceInput + +func (NlbServiceMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*NlbService)(nil)).Elem() +} + +func (i NlbServiceMap) ToNlbServiceMapOutput() NlbServiceMapOutput { + return i.ToNlbServiceMapOutputWithContext(context.Background()) +} + +func (i NlbServiceMap) ToNlbServiceMapOutputWithContext(ctx context.Context) NlbServiceMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(NlbServiceMapOutput) +} + +type NlbServiceOutput struct{ *pulumi.OutputState } + +func (NlbServiceOutput) ElementType() reflect.Type { + return reflect.TypeOf((**NlbService)(nil)).Elem() +} + +func (o NlbServiceOutput) ToNlbServiceOutput() NlbServiceOutput { + return o +} + +func (o NlbServiceOutput) ToNlbServiceOutputWithContext(ctx context.Context) NlbServiceOutput { + return o +} + +// A free-form text describing the NLB service. +func (o NlbServiceOutput) Description() pulumi.StringPtrOutput { + return o.ApplyT(func(v *NlbService) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) +} + +// The service health checking configuration. +func (o NlbServiceOutput) Healthchecks() NlbServiceHealthcheckArrayOutput { + return o.ApplyT(func(v *NlbService) NlbServiceHealthcheckArrayOutput { return v.Healthchecks }).(NlbServiceHealthcheckArrayOutput) +} + +// ❗ The exoscale*instance*pool (ID) to forward traffic to. +func (o NlbServiceOutput) InstancePoolId() pulumi.StringOutput { + return o.ApplyT(func(v *NlbService) pulumi.StringOutput { return v.InstancePoolId }).(pulumi.StringOutput) +} + +// The NLB service name. +func (o NlbServiceOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *NlbService) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// ❗ The parent Nlb ID. +func (o NlbServiceOutput) NlbId() pulumi.StringOutput { + return o.ApplyT(func(v *NlbService) pulumi.StringOutput { return v.NlbId }).(pulumi.StringOutput) +} + +// The NLB service (TCP/UDP) port. +func (o NlbServiceOutput) Port() pulumi.IntOutput { + return o.ApplyT(func(v *NlbService) pulumi.IntOutput { return v.Port }).(pulumi.IntOutput) +} + +// The protocol (`tcp`|`udp`; default: `tcp`). +func (o NlbServiceOutput) Protocol() pulumi.StringPtrOutput { + return o.ApplyT(func(v *NlbService) pulumi.StringPtrOutput { return v.Protocol }).(pulumi.StringPtrOutput) +} + +func (o NlbServiceOutput) State() pulumi.StringOutput { + return o.ApplyT(func(v *NlbService) pulumi.StringOutput { return v.State }).(pulumi.StringOutput) +} + +// The strategy (`round-robin`|`source-hash`; default: `round-robin`). +func (o NlbServiceOutput) Strategy() pulumi.StringPtrOutput { + return o.ApplyT(func(v *NlbService) pulumi.StringPtrOutput { return v.Strategy }).(pulumi.StringPtrOutput) +} + +// The (TCP/UDP) port to forward traffic to (on target instance pool members). +func (o NlbServiceOutput) TargetPort() pulumi.IntOutput { + return o.ApplyT(func(v *NlbService) pulumi.IntOutput { return v.TargetPort }).(pulumi.IntOutput) +} + +// ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. +func (o NlbServiceOutput) Zone() pulumi.StringOutput { + return o.ApplyT(func(v *NlbService) pulumi.StringOutput { return v.Zone }).(pulumi.StringOutput) +} + +type NlbServiceArrayOutput struct{ *pulumi.OutputState } + +func (NlbServiceArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*NlbService)(nil)).Elem() +} + +func (o NlbServiceArrayOutput) ToNlbServiceArrayOutput() NlbServiceArrayOutput { + return o +} + +func (o NlbServiceArrayOutput) ToNlbServiceArrayOutputWithContext(ctx context.Context) NlbServiceArrayOutput { + return o +} + +func (o NlbServiceArrayOutput) Index(i pulumi.IntInput) NlbServiceOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *NlbService { + return vs[0].([]*NlbService)[vs[1].(int)] + }).(NlbServiceOutput) +} + +type NlbServiceMapOutput struct{ *pulumi.OutputState } + +func (NlbServiceMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*NlbService)(nil)).Elem() +} + +func (o NlbServiceMapOutput) ToNlbServiceMapOutput() NlbServiceMapOutput { + return o +} + +func (o NlbServiceMapOutput) ToNlbServiceMapOutputWithContext(ctx context.Context) NlbServiceMapOutput { + return o +} + +func (o NlbServiceMapOutput) MapIndex(k pulumi.StringInput) NlbServiceOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *NlbService { + return vs[0].(map[string]*NlbService)[vs[1].(string)] + }).(NlbServiceOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*NlbServiceInput)(nil)).Elem(), &NlbService{}) + pulumi.RegisterInputType(reflect.TypeOf((*NlbServiceArrayInput)(nil)).Elem(), NlbServiceArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*NlbServiceMapInput)(nil)).Elem(), NlbServiceMap{}) + pulumi.RegisterOutputType(NlbServiceOutput{}) + pulumi.RegisterOutputType(NlbServiceArrayOutput{}) + pulumi.RegisterOutputType(NlbServiceMapOutput{}) +} diff --git a/sdk/go/exoscale/nlbservice.go b/sdk/go/exoscale/nlbservice.go deleted file mode 100644 index 5b8d171c..00000000 --- a/sdk/go/exoscale/nlbservice.go +++ /dev/null @@ -1,388 +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 exoscale - -import ( - "context" - "reflect" - - "errors" - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" -) - -// ## Import -// -// An existing NLB service may be imported by `/@` -// -// ```sh -// -// $ pulumi import exoscale:index/nLBService:NLBService \ -// -// ``` -// -// exoscale_nlb_service.my_nlb_service \ -// -// f81d4fae-7dec-11d0-a765-00a0c91e6bf6/9ecc6b8b-73d4-4211-8ced-f7f29bb79524@ch-gva-2 -type NLBService struct { - pulumi.CustomResourceState - - // A free-form text describing the NLB service. - Description pulumi.StringPtrOutput `pulumi:"description"` - // The service health checking configuration. - Healthchecks NLBServiceHealthcheckArrayOutput `pulumi:"healthchecks"` - // ❗ The exoscale*instance*pool (ID) to forward traffic to. - InstancePoolId pulumi.StringOutput `pulumi:"instancePoolId"` - // The NLB service name. - Name pulumi.StringOutput `pulumi:"name"` - // ❗ The parent NLB ID. - NlbId pulumi.StringOutput `pulumi:"nlbId"` - // The NLB service (TCP/UDP) port. - Port pulumi.IntOutput `pulumi:"port"` - // The protocol (`tcp`|`udp`; default: `tcp`). - Protocol pulumi.StringPtrOutput `pulumi:"protocol"` - State pulumi.StringOutput `pulumi:"state"` - // The strategy (`round-robin`|`source-hash`; default: `round-robin`). - Strategy pulumi.StringPtrOutput `pulumi:"strategy"` - // The (TCP/UDP) port to forward traffic to (on target instance pool members). - TargetPort pulumi.IntOutput `pulumi:"targetPort"` - // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. - Zone pulumi.StringOutput `pulumi:"zone"` -} - -// NewNLBService registers a new resource with the given unique name, arguments, and options. -func NewNLBService(ctx *pulumi.Context, - name string, args *NLBServiceArgs, opts ...pulumi.ResourceOption) (*NLBService, error) { - if args == nil { - return nil, errors.New("missing one or more required arguments") - } - - if args.Healthchecks == nil { - return nil, errors.New("invalid value for required argument 'Healthchecks'") - } - if args.InstancePoolId == nil { - return nil, errors.New("invalid value for required argument 'InstancePoolId'") - } - if args.NlbId == nil { - return nil, errors.New("invalid value for required argument 'NlbId'") - } - if args.Port == nil { - return nil, errors.New("invalid value for required argument 'Port'") - } - if args.TargetPort == nil { - return nil, errors.New("invalid value for required argument 'TargetPort'") - } - if args.Zone == nil { - return nil, errors.New("invalid value for required argument 'Zone'") - } - opts = internal.PkgResourceDefaultOpts(opts) - var resource NLBService - err := ctx.RegisterResource("exoscale:index/nLBService:NLBService", name, args, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// GetNLBService gets an existing NLBService 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 GetNLBService(ctx *pulumi.Context, - name string, id pulumi.IDInput, state *NLBServiceState, opts ...pulumi.ResourceOption) (*NLBService, error) { - var resource NLBService - err := ctx.ReadResource("exoscale:index/nLBService:NLBService", name, id, state, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// Input properties used for looking up and filtering NLBService resources. -type nlbserviceState struct { - // A free-form text describing the NLB service. - Description *string `pulumi:"description"` - // The service health checking configuration. - Healthchecks []NLBServiceHealthcheck `pulumi:"healthchecks"` - // ❗ The exoscale*instance*pool (ID) to forward traffic to. - InstancePoolId *string `pulumi:"instancePoolId"` - // The NLB service name. - Name *string `pulumi:"name"` - // ❗ The parent NLB ID. - NlbId *string `pulumi:"nlbId"` - // The NLB service (TCP/UDP) port. - Port *int `pulumi:"port"` - // The protocol (`tcp`|`udp`; default: `tcp`). - Protocol *string `pulumi:"protocol"` - State *string `pulumi:"state"` - // The strategy (`round-robin`|`source-hash`; default: `round-robin`). - Strategy *string `pulumi:"strategy"` - // The (TCP/UDP) port to forward traffic to (on target instance pool members). - TargetPort *int `pulumi:"targetPort"` - // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. - Zone *string `pulumi:"zone"` -} - -type NLBServiceState struct { - // A free-form text describing the NLB service. - Description pulumi.StringPtrInput - // The service health checking configuration. - Healthchecks NLBServiceHealthcheckArrayInput - // ❗ The exoscale*instance*pool (ID) to forward traffic to. - InstancePoolId pulumi.StringPtrInput - // The NLB service name. - Name pulumi.StringPtrInput - // ❗ The parent NLB ID. - NlbId pulumi.StringPtrInput - // The NLB service (TCP/UDP) port. - Port pulumi.IntPtrInput - // The protocol (`tcp`|`udp`; default: `tcp`). - Protocol pulumi.StringPtrInput - State pulumi.StringPtrInput - // The strategy (`round-robin`|`source-hash`; default: `round-robin`). - Strategy pulumi.StringPtrInput - // The (TCP/UDP) port to forward traffic to (on target instance pool members). - TargetPort pulumi.IntPtrInput - // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. - Zone pulumi.StringPtrInput -} - -func (NLBServiceState) ElementType() reflect.Type { - return reflect.TypeOf((*nlbserviceState)(nil)).Elem() -} - -type nlbserviceArgs struct { - // A free-form text describing the NLB service. - Description *string `pulumi:"description"` - // The service health checking configuration. - Healthchecks []NLBServiceHealthcheck `pulumi:"healthchecks"` - // ❗ The exoscale*instance*pool (ID) to forward traffic to. - InstancePoolId string `pulumi:"instancePoolId"` - // The NLB service name. - Name *string `pulumi:"name"` - // ❗ The parent NLB ID. - NlbId string `pulumi:"nlbId"` - // The NLB service (TCP/UDP) port. - Port int `pulumi:"port"` - // The protocol (`tcp`|`udp`; default: `tcp`). - Protocol *string `pulumi:"protocol"` - // The strategy (`round-robin`|`source-hash`; default: `round-robin`). - Strategy *string `pulumi:"strategy"` - // The (TCP/UDP) port to forward traffic to (on target instance pool members). - TargetPort int `pulumi:"targetPort"` - // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. - Zone string `pulumi:"zone"` -} - -// The set of arguments for constructing a NLBService resource. -type NLBServiceArgs struct { - // A free-form text describing the NLB service. - Description pulumi.StringPtrInput - // The service health checking configuration. - Healthchecks NLBServiceHealthcheckArrayInput - // ❗ The exoscale*instance*pool (ID) to forward traffic to. - InstancePoolId pulumi.StringInput - // The NLB service name. - Name pulumi.StringPtrInput - // ❗ The parent NLB ID. - NlbId pulumi.StringInput - // The NLB service (TCP/UDP) port. - Port pulumi.IntInput - // The protocol (`tcp`|`udp`; default: `tcp`). - Protocol pulumi.StringPtrInput - // The strategy (`round-robin`|`source-hash`; default: `round-robin`). - Strategy pulumi.StringPtrInput - // The (TCP/UDP) port to forward traffic to (on target instance pool members). - TargetPort pulumi.IntInput - // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. - Zone pulumi.StringInput -} - -func (NLBServiceArgs) ElementType() reflect.Type { - return reflect.TypeOf((*nlbserviceArgs)(nil)).Elem() -} - -type NLBServiceInput interface { - pulumi.Input - - ToNLBServiceOutput() NLBServiceOutput - ToNLBServiceOutputWithContext(ctx context.Context) NLBServiceOutput -} - -func (*NLBService) ElementType() reflect.Type { - return reflect.TypeOf((**NLBService)(nil)).Elem() -} - -func (i *NLBService) ToNLBServiceOutput() NLBServiceOutput { - return i.ToNLBServiceOutputWithContext(context.Background()) -} - -func (i *NLBService) ToNLBServiceOutputWithContext(ctx context.Context) NLBServiceOutput { - return pulumi.ToOutputWithContext(ctx, i).(NLBServiceOutput) -} - -// NLBServiceArrayInput is an input type that accepts NLBServiceArray and NLBServiceArrayOutput values. -// You can construct a concrete instance of `NLBServiceArrayInput` via: -// -// NLBServiceArray{ NLBServiceArgs{...} } -type NLBServiceArrayInput interface { - pulumi.Input - - ToNLBServiceArrayOutput() NLBServiceArrayOutput - ToNLBServiceArrayOutputWithContext(context.Context) NLBServiceArrayOutput -} - -type NLBServiceArray []NLBServiceInput - -func (NLBServiceArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]*NLBService)(nil)).Elem() -} - -func (i NLBServiceArray) ToNLBServiceArrayOutput() NLBServiceArrayOutput { - return i.ToNLBServiceArrayOutputWithContext(context.Background()) -} - -func (i NLBServiceArray) ToNLBServiceArrayOutputWithContext(ctx context.Context) NLBServiceArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(NLBServiceArrayOutput) -} - -// NLBServiceMapInput is an input type that accepts NLBServiceMap and NLBServiceMapOutput values. -// You can construct a concrete instance of `NLBServiceMapInput` via: -// -// NLBServiceMap{ "key": NLBServiceArgs{...} } -type NLBServiceMapInput interface { - pulumi.Input - - ToNLBServiceMapOutput() NLBServiceMapOutput - ToNLBServiceMapOutputWithContext(context.Context) NLBServiceMapOutput -} - -type NLBServiceMap map[string]NLBServiceInput - -func (NLBServiceMap) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*NLBService)(nil)).Elem() -} - -func (i NLBServiceMap) ToNLBServiceMapOutput() NLBServiceMapOutput { - return i.ToNLBServiceMapOutputWithContext(context.Background()) -} - -func (i NLBServiceMap) ToNLBServiceMapOutputWithContext(ctx context.Context) NLBServiceMapOutput { - return pulumi.ToOutputWithContext(ctx, i).(NLBServiceMapOutput) -} - -type NLBServiceOutput struct{ *pulumi.OutputState } - -func (NLBServiceOutput) ElementType() reflect.Type { - return reflect.TypeOf((**NLBService)(nil)).Elem() -} - -func (o NLBServiceOutput) ToNLBServiceOutput() NLBServiceOutput { - return o -} - -func (o NLBServiceOutput) ToNLBServiceOutputWithContext(ctx context.Context) NLBServiceOutput { - return o -} - -// A free-form text describing the NLB service. -func (o NLBServiceOutput) Description() pulumi.StringPtrOutput { - return o.ApplyT(func(v *NLBService) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) -} - -// The service health checking configuration. -func (o NLBServiceOutput) Healthchecks() NLBServiceHealthcheckArrayOutput { - return o.ApplyT(func(v *NLBService) NLBServiceHealthcheckArrayOutput { return v.Healthchecks }).(NLBServiceHealthcheckArrayOutput) -} - -// ❗ The exoscale*instance*pool (ID) to forward traffic to. -func (o NLBServiceOutput) InstancePoolId() pulumi.StringOutput { - return o.ApplyT(func(v *NLBService) pulumi.StringOutput { return v.InstancePoolId }).(pulumi.StringOutput) -} - -// The NLB service name. -func (o NLBServiceOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v *NLBService) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) -} - -// ❗ The parent NLB ID. -func (o NLBServiceOutput) NlbId() pulumi.StringOutput { - return o.ApplyT(func(v *NLBService) pulumi.StringOutput { return v.NlbId }).(pulumi.StringOutput) -} - -// The NLB service (TCP/UDP) port. -func (o NLBServiceOutput) Port() pulumi.IntOutput { - return o.ApplyT(func(v *NLBService) pulumi.IntOutput { return v.Port }).(pulumi.IntOutput) -} - -// The protocol (`tcp`|`udp`; default: `tcp`). -func (o NLBServiceOutput) Protocol() pulumi.StringPtrOutput { - return o.ApplyT(func(v *NLBService) pulumi.StringPtrOutput { return v.Protocol }).(pulumi.StringPtrOutput) -} - -func (o NLBServiceOutput) State() pulumi.StringOutput { - return o.ApplyT(func(v *NLBService) pulumi.StringOutput { return v.State }).(pulumi.StringOutput) -} - -// The strategy (`round-robin`|`source-hash`; default: `round-robin`). -func (o NLBServiceOutput) Strategy() pulumi.StringPtrOutput { - return o.ApplyT(func(v *NLBService) pulumi.StringPtrOutput { return v.Strategy }).(pulumi.StringPtrOutput) -} - -// The (TCP/UDP) port to forward traffic to (on target instance pool members). -func (o NLBServiceOutput) TargetPort() pulumi.IntOutput { - return o.ApplyT(func(v *NLBService) pulumi.IntOutput { return v.TargetPort }).(pulumi.IntOutput) -} - -// ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. -func (o NLBServiceOutput) Zone() pulumi.StringOutput { - return o.ApplyT(func(v *NLBService) pulumi.StringOutput { return v.Zone }).(pulumi.StringOutput) -} - -type NLBServiceArrayOutput struct{ *pulumi.OutputState } - -func (NLBServiceArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]*NLBService)(nil)).Elem() -} - -func (o NLBServiceArrayOutput) ToNLBServiceArrayOutput() NLBServiceArrayOutput { - return o -} - -func (o NLBServiceArrayOutput) ToNLBServiceArrayOutputWithContext(ctx context.Context) NLBServiceArrayOutput { - return o -} - -func (o NLBServiceArrayOutput) Index(i pulumi.IntInput) NLBServiceOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) *NLBService { - return vs[0].([]*NLBService)[vs[1].(int)] - }).(NLBServiceOutput) -} - -type NLBServiceMapOutput struct{ *pulumi.OutputState } - -func (NLBServiceMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*NLBService)(nil)).Elem() -} - -func (o NLBServiceMapOutput) ToNLBServiceMapOutput() NLBServiceMapOutput { - return o -} - -func (o NLBServiceMapOutput) ToNLBServiceMapOutputWithContext(ctx context.Context) NLBServiceMapOutput { - return o -} - -func (o NLBServiceMapOutput) MapIndex(k pulumi.StringInput) NLBServiceOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) *NLBService { - return vs[0].(map[string]*NLBService)[vs[1].(string)] - }).(NLBServiceOutput) -} - -func init() { - pulumi.RegisterInputType(reflect.TypeOf((*NLBServiceInput)(nil)).Elem(), &NLBService{}) - pulumi.RegisterInputType(reflect.TypeOf((*NLBServiceArrayInput)(nil)).Elem(), NLBServiceArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*NLBServiceMapInput)(nil)).Elem(), NLBServiceMap{}) - pulumi.RegisterOutputType(NLBServiceOutput{}) - pulumi.RegisterOutputType(NLBServiceArrayOutput{}) - pulumi.RegisterOutputType(NLBServiceMapOutput{}) -} diff --git a/sdk/go/exoscale/privateNetwork.go b/sdk/go/exoscale/privateNetwork.go index bd21e621..1a114fa4 100644 --- a/sdk/go/exoscale/privateNetwork.go +++ b/sdk/go/exoscale/privateNetwork.go @@ -12,6 +12,70 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// Manage Exoscale [Private Networks](https://community.exoscale.com/documentation/compute/private-networks/). +// +// Corresponding data source: exoscale_private_network. +// +// ## Example Usage +// +// *Unmanaged* private network: +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := exoscale.NewPrivateNetwork(ctx, "myPrivateNetwork", &exoscale.PrivateNetworkArgs{ +// Zone: pulumi.String("ch-gva-2"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// *Managed* private network: +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := exoscale.NewPrivateNetwork(ctx, "myManagedPrivateNetwork", &exoscale.PrivateNetworkArgs{ +// EndIp: pulumi.String("10.0.0.253"), +// Netmask: pulumi.String("255.255.255.0"), +// StartIp: pulumi.String("10.0.0.20"), +// Zone: pulumi.String("ch-gva-2"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// Please refer to the examples +// directory for complete configuration examples. +// // ## Import // // An existing private network may be imported by `@` diff --git a/sdk/go/exoscale/pulumiTypes.go b/sdk/go/exoscale/pulumiTypes.go index 83b64c3c..0965fe66 100644 --- a/sdk/go/exoscale/pulumiTypes.go +++ b/sdk/go/exoscale/pulumiTypes.go @@ -2227,7 +2227,7 @@ func (o DatabaseTimeoutsPtrOutput) Update() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -type ElasticIPHealthcheck struct { +type ElasticIpHealthcheck struct { // The healthcheck interval (seconds; must be between `5` and `300`; default: `10`). Interval *int `pulumi:"interval"` // The healthcheck mode (`tcp`, `http` or `https`; may only be set at creation time). @@ -2248,18 +2248,18 @@ type ElasticIPHealthcheck struct { Uri *string `pulumi:"uri"` } -// ElasticIPHealthcheckInput is an input type that accepts ElasticIPHealthcheckArgs and ElasticIPHealthcheckOutput values. -// You can construct a concrete instance of `ElasticIPHealthcheckInput` via: +// ElasticIpHealthcheckInput is an input type that accepts ElasticIpHealthcheckArgs and ElasticIpHealthcheckOutput values. +// You can construct a concrete instance of `ElasticIpHealthcheckInput` via: // -// ElasticIPHealthcheckArgs{...} -type ElasticIPHealthcheckInput interface { +// ElasticIpHealthcheckArgs{...} +type ElasticIpHealthcheckInput interface { pulumi.Input - ToElasticIPHealthcheckOutput() ElasticIPHealthcheckOutput - ToElasticIPHealthcheckOutputWithContext(context.Context) ElasticIPHealthcheckOutput + ToElasticIpHealthcheckOutput() ElasticIpHealthcheckOutput + ToElasticIpHealthcheckOutputWithContext(context.Context) ElasticIpHealthcheckOutput } -type ElasticIPHealthcheckArgs struct { +type ElasticIpHealthcheckArgs struct { // The healthcheck interval (seconds; must be between `5` and `300`; default: `10`). Interval pulumi.IntPtrInput `pulumi:"interval"` // The healthcheck mode (`tcp`, `http` or `https`; may only be set at creation time). @@ -2280,155 +2280,155 @@ type ElasticIPHealthcheckArgs struct { Uri pulumi.StringPtrInput `pulumi:"uri"` } -func (ElasticIPHealthcheckArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ElasticIPHealthcheck)(nil)).Elem() +func (ElasticIpHealthcheckArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ElasticIpHealthcheck)(nil)).Elem() } -func (i ElasticIPHealthcheckArgs) ToElasticIPHealthcheckOutput() ElasticIPHealthcheckOutput { - return i.ToElasticIPHealthcheckOutputWithContext(context.Background()) +func (i ElasticIpHealthcheckArgs) ToElasticIpHealthcheckOutput() ElasticIpHealthcheckOutput { + return i.ToElasticIpHealthcheckOutputWithContext(context.Background()) } -func (i ElasticIPHealthcheckArgs) ToElasticIPHealthcheckOutputWithContext(ctx context.Context) ElasticIPHealthcheckOutput { - return pulumi.ToOutputWithContext(ctx, i).(ElasticIPHealthcheckOutput) +func (i ElasticIpHealthcheckArgs) ToElasticIpHealthcheckOutputWithContext(ctx context.Context) ElasticIpHealthcheckOutput { + return pulumi.ToOutputWithContext(ctx, i).(ElasticIpHealthcheckOutput) } -func (i ElasticIPHealthcheckArgs) ToElasticIPHealthcheckPtrOutput() ElasticIPHealthcheckPtrOutput { - return i.ToElasticIPHealthcheckPtrOutputWithContext(context.Background()) +func (i ElasticIpHealthcheckArgs) ToElasticIpHealthcheckPtrOutput() ElasticIpHealthcheckPtrOutput { + return i.ToElasticIpHealthcheckPtrOutputWithContext(context.Background()) } -func (i ElasticIPHealthcheckArgs) ToElasticIPHealthcheckPtrOutputWithContext(ctx context.Context) ElasticIPHealthcheckPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ElasticIPHealthcheckOutput).ToElasticIPHealthcheckPtrOutputWithContext(ctx) +func (i ElasticIpHealthcheckArgs) ToElasticIpHealthcheckPtrOutputWithContext(ctx context.Context) ElasticIpHealthcheckPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ElasticIpHealthcheckOutput).ToElasticIpHealthcheckPtrOutputWithContext(ctx) } -// ElasticIPHealthcheckPtrInput is an input type that accepts ElasticIPHealthcheckArgs, ElasticIPHealthcheckPtr and ElasticIPHealthcheckPtrOutput values. -// You can construct a concrete instance of `ElasticIPHealthcheckPtrInput` via: +// ElasticIpHealthcheckPtrInput is an input type that accepts ElasticIpHealthcheckArgs, ElasticIpHealthcheckPtr and ElasticIpHealthcheckPtrOutput values. +// You can construct a concrete instance of `ElasticIpHealthcheckPtrInput` via: // -// ElasticIPHealthcheckArgs{...} +// ElasticIpHealthcheckArgs{...} // // or: // // nil -type ElasticIPHealthcheckPtrInput interface { +type ElasticIpHealthcheckPtrInput interface { pulumi.Input - ToElasticIPHealthcheckPtrOutput() ElasticIPHealthcheckPtrOutput - ToElasticIPHealthcheckPtrOutputWithContext(context.Context) ElasticIPHealthcheckPtrOutput + ToElasticIpHealthcheckPtrOutput() ElasticIpHealthcheckPtrOutput + ToElasticIpHealthcheckPtrOutputWithContext(context.Context) ElasticIpHealthcheckPtrOutput } -type elasticIPHealthcheckPtrType ElasticIPHealthcheckArgs +type elasticIpHealthcheckPtrType ElasticIpHealthcheckArgs -func ElasticIPHealthcheckPtr(v *ElasticIPHealthcheckArgs) ElasticIPHealthcheckPtrInput { - return (*elasticIPHealthcheckPtrType)(v) +func ElasticIpHealthcheckPtr(v *ElasticIpHealthcheckArgs) ElasticIpHealthcheckPtrInput { + return (*elasticIpHealthcheckPtrType)(v) } -func (*elasticIPHealthcheckPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ElasticIPHealthcheck)(nil)).Elem() +func (*elasticIpHealthcheckPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ElasticIpHealthcheck)(nil)).Elem() } -func (i *elasticIPHealthcheckPtrType) ToElasticIPHealthcheckPtrOutput() ElasticIPHealthcheckPtrOutput { - return i.ToElasticIPHealthcheckPtrOutputWithContext(context.Background()) +func (i *elasticIpHealthcheckPtrType) ToElasticIpHealthcheckPtrOutput() ElasticIpHealthcheckPtrOutput { + return i.ToElasticIpHealthcheckPtrOutputWithContext(context.Background()) } -func (i *elasticIPHealthcheckPtrType) ToElasticIPHealthcheckPtrOutputWithContext(ctx context.Context) ElasticIPHealthcheckPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ElasticIPHealthcheckPtrOutput) +func (i *elasticIpHealthcheckPtrType) ToElasticIpHealthcheckPtrOutputWithContext(ctx context.Context) ElasticIpHealthcheckPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ElasticIpHealthcheckPtrOutput) } -type ElasticIPHealthcheckOutput struct{ *pulumi.OutputState } +type ElasticIpHealthcheckOutput struct{ *pulumi.OutputState } -func (ElasticIPHealthcheckOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ElasticIPHealthcheck)(nil)).Elem() +func (ElasticIpHealthcheckOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ElasticIpHealthcheck)(nil)).Elem() } -func (o ElasticIPHealthcheckOutput) ToElasticIPHealthcheckOutput() ElasticIPHealthcheckOutput { +func (o ElasticIpHealthcheckOutput) ToElasticIpHealthcheckOutput() ElasticIpHealthcheckOutput { return o } -func (o ElasticIPHealthcheckOutput) ToElasticIPHealthcheckOutputWithContext(ctx context.Context) ElasticIPHealthcheckOutput { +func (o ElasticIpHealthcheckOutput) ToElasticIpHealthcheckOutputWithContext(ctx context.Context) ElasticIpHealthcheckOutput { return o } -func (o ElasticIPHealthcheckOutput) ToElasticIPHealthcheckPtrOutput() ElasticIPHealthcheckPtrOutput { - return o.ToElasticIPHealthcheckPtrOutputWithContext(context.Background()) +func (o ElasticIpHealthcheckOutput) ToElasticIpHealthcheckPtrOutput() ElasticIpHealthcheckPtrOutput { + return o.ToElasticIpHealthcheckPtrOutputWithContext(context.Background()) } -func (o ElasticIPHealthcheckOutput) ToElasticIPHealthcheckPtrOutputWithContext(ctx context.Context) ElasticIPHealthcheckPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ElasticIPHealthcheck) *ElasticIPHealthcheck { +func (o ElasticIpHealthcheckOutput) ToElasticIpHealthcheckPtrOutputWithContext(ctx context.Context) ElasticIpHealthcheckPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ElasticIpHealthcheck) *ElasticIpHealthcheck { return &v - }).(ElasticIPHealthcheckPtrOutput) + }).(ElasticIpHealthcheckPtrOutput) } // The healthcheck interval (seconds; must be between `5` and `300`; default: `10`). -func (o ElasticIPHealthcheckOutput) Interval() pulumi.IntPtrOutput { - return o.ApplyT(func(v ElasticIPHealthcheck) *int { return v.Interval }).(pulumi.IntPtrOutput) +func (o ElasticIpHealthcheckOutput) Interval() pulumi.IntPtrOutput { + return o.ApplyT(func(v ElasticIpHealthcheck) *int { return v.Interval }).(pulumi.IntPtrOutput) } // The healthcheck mode (`tcp`, `http` or `https`; may only be set at creation time). -func (o ElasticIPHealthcheckOutput) Mode() pulumi.StringOutput { - return o.ApplyT(func(v ElasticIPHealthcheck) string { return v.Mode }).(pulumi.StringOutput) +func (o ElasticIpHealthcheckOutput) Mode() pulumi.StringOutput { + return o.ApplyT(func(v ElasticIpHealthcheck) string { return v.Mode }).(pulumi.StringOutput) } // The healthcheck target port (must be between `1` and `65535`). -func (o ElasticIPHealthcheckOutput) Port() pulumi.IntOutput { - return o.ApplyT(func(v ElasticIPHealthcheck) int { return v.Port }).(pulumi.IntOutput) +func (o ElasticIpHealthcheckOutput) Port() pulumi.IntOutput { + return o.ApplyT(func(v ElasticIpHealthcheck) int { return v.Port }).(pulumi.IntOutput) } // The number of failed healthcheck attempts before considering the target unhealthy (must be between `1` and `20`; default: `2`). -func (o ElasticIPHealthcheckOutput) StrikesFail() pulumi.IntPtrOutput { - return o.ApplyT(func(v ElasticIPHealthcheck) *int { return v.StrikesFail }).(pulumi.IntPtrOutput) +func (o ElasticIpHealthcheckOutput) StrikesFail() pulumi.IntPtrOutput { + return o.ApplyT(func(v ElasticIpHealthcheck) *int { return v.StrikesFail }).(pulumi.IntPtrOutput) } // The number of successful healthcheck attempts before considering the target healthy (must be between `1` and `20`; default: `3`). -func (o ElasticIPHealthcheckOutput) StrikesOk() pulumi.IntPtrOutput { - return o.ApplyT(func(v ElasticIPHealthcheck) *int { return v.StrikesOk }).(pulumi.IntPtrOutput) +func (o ElasticIpHealthcheckOutput) StrikesOk() pulumi.IntPtrOutput { + return o.ApplyT(func(v ElasticIpHealthcheck) *int { return v.StrikesOk }).(pulumi.IntPtrOutput) } // The time before considering a healthcheck probing failed (seconds; must be between `2` and `60`; default: `3`). -func (o ElasticIPHealthcheckOutput) Timeout() pulumi.IntPtrOutput { - return o.ApplyT(func(v ElasticIPHealthcheck) *int { return v.Timeout }).(pulumi.IntPtrOutput) +func (o ElasticIpHealthcheckOutput) Timeout() pulumi.IntPtrOutput { + return o.ApplyT(func(v ElasticIpHealthcheck) *int { return v.Timeout }).(pulumi.IntPtrOutput) } // Disable TLS certificate verification for healthcheck in `https` mode (boolean; default: `false`). -func (o ElasticIPHealthcheckOutput) TlsSkipVerify() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ElasticIPHealthcheck) *bool { return v.TlsSkipVerify }).(pulumi.BoolPtrOutput) +func (o ElasticIpHealthcheckOutput) TlsSkipVerify() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ElasticIpHealthcheck) *bool { return v.TlsSkipVerify }).(pulumi.BoolPtrOutput) } // The healthcheck server name to present with SNI in `https` mode. -func (o ElasticIPHealthcheckOutput) TlsSni() pulumi.StringPtrOutput { - return o.ApplyT(func(v ElasticIPHealthcheck) *string { return v.TlsSni }).(pulumi.StringPtrOutput) +func (o ElasticIpHealthcheckOutput) TlsSni() pulumi.StringPtrOutput { + return o.ApplyT(func(v ElasticIpHealthcheck) *string { return v.TlsSni }).(pulumi.StringPtrOutput) } // The healthcheck target URI (required in `http(s)` modes). -func (o ElasticIPHealthcheckOutput) Uri() pulumi.StringPtrOutput { - return o.ApplyT(func(v ElasticIPHealthcheck) *string { return v.Uri }).(pulumi.StringPtrOutput) +func (o ElasticIpHealthcheckOutput) Uri() pulumi.StringPtrOutput { + return o.ApplyT(func(v ElasticIpHealthcheck) *string { return v.Uri }).(pulumi.StringPtrOutput) } -type ElasticIPHealthcheckPtrOutput struct{ *pulumi.OutputState } +type ElasticIpHealthcheckPtrOutput struct{ *pulumi.OutputState } -func (ElasticIPHealthcheckPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ElasticIPHealthcheck)(nil)).Elem() +func (ElasticIpHealthcheckPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ElasticIpHealthcheck)(nil)).Elem() } -func (o ElasticIPHealthcheckPtrOutput) ToElasticIPHealthcheckPtrOutput() ElasticIPHealthcheckPtrOutput { +func (o ElasticIpHealthcheckPtrOutput) ToElasticIpHealthcheckPtrOutput() ElasticIpHealthcheckPtrOutput { return o } -func (o ElasticIPHealthcheckPtrOutput) ToElasticIPHealthcheckPtrOutputWithContext(ctx context.Context) ElasticIPHealthcheckPtrOutput { +func (o ElasticIpHealthcheckPtrOutput) ToElasticIpHealthcheckPtrOutputWithContext(ctx context.Context) ElasticIpHealthcheckPtrOutput { return o } -func (o ElasticIPHealthcheckPtrOutput) Elem() ElasticIPHealthcheckOutput { - return o.ApplyT(func(v *ElasticIPHealthcheck) ElasticIPHealthcheck { +func (o ElasticIpHealthcheckPtrOutput) Elem() ElasticIpHealthcheckOutput { + return o.ApplyT(func(v *ElasticIpHealthcheck) ElasticIpHealthcheck { if v != nil { return *v } - var ret ElasticIPHealthcheck + var ret ElasticIpHealthcheck return ret - }).(ElasticIPHealthcheckOutput) + }).(ElasticIpHealthcheckOutput) } // The healthcheck interval (seconds; must be between `5` and `300`; default: `10`). -func (o ElasticIPHealthcheckPtrOutput) Interval() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ElasticIPHealthcheck) *int { +func (o ElasticIpHealthcheckPtrOutput) Interval() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ElasticIpHealthcheck) *int { if v == nil { return nil } @@ -2437,8 +2437,8 @@ func (o ElasticIPHealthcheckPtrOutput) Interval() pulumi.IntPtrOutput { } // The healthcheck mode (`tcp`, `http` or `https`; may only be set at creation time). -func (o ElasticIPHealthcheckPtrOutput) Mode() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ElasticIPHealthcheck) *string { +func (o ElasticIpHealthcheckPtrOutput) Mode() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ElasticIpHealthcheck) *string { if v == nil { return nil } @@ -2447,8 +2447,8 @@ func (o ElasticIPHealthcheckPtrOutput) Mode() pulumi.StringPtrOutput { } // The healthcheck target port (must be between `1` and `65535`). -func (o ElasticIPHealthcheckPtrOutput) Port() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ElasticIPHealthcheck) *int { +func (o ElasticIpHealthcheckPtrOutput) Port() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ElasticIpHealthcheck) *int { if v == nil { return nil } @@ -2457,8 +2457,8 @@ func (o ElasticIPHealthcheckPtrOutput) Port() pulumi.IntPtrOutput { } // The number of failed healthcheck attempts before considering the target unhealthy (must be between `1` and `20`; default: `2`). -func (o ElasticIPHealthcheckPtrOutput) StrikesFail() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ElasticIPHealthcheck) *int { +func (o ElasticIpHealthcheckPtrOutput) StrikesFail() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ElasticIpHealthcheck) *int { if v == nil { return nil } @@ -2467,8 +2467,8 @@ func (o ElasticIPHealthcheckPtrOutput) StrikesFail() pulumi.IntPtrOutput { } // The number of successful healthcheck attempts before considering the target healthy (must be between `1` and `20`; default: `3`). -func (o ElasticIPHealthcheckPtrOutput) StrikesOk() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ElasticIPHealthcheck) *int { +func (o ElasticIpHealthcheckPtrOutput) StrikesOk() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ElasticIpHealthcheck) *int { if v == nil { return nil } @@ -2477,8 +2477,8 @@ func (o ElasticIPHealthcheckPtrOutput) StrikesOk() pulumi.IntPtrOutput { } // The time before considering a healthcheck probing failed (seconds; must be between `2` and `60`; default: `3`). -func (o ElasticIPHealthcheckPtrOutput) Timeout() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ElasticIPHealthcheck) *int { +func (o ElasticIpHealthcheckPtrOutput) Timeout() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ElasticIpHealthcheck) *int { if v == nil { return nil } @@ -2487,8 +2487,8 @@ func (o ElasticIPHealthcheckPtrOutput) Timeout() pulumi.IntPtrOutput { } // Disable TLS certificate verification for healthcheck in `https` mode (boolean; default: `false`). -func (o ElasticIPHealthcheckPtrOutput) TlsSkipVerify() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ElasticIPHealthcheck) *bool { +func (o ElasticIpHealthcheckPtrOutput) TlsSkipVerify() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ElasticIpHealthcheck) *bool { if v == nil { return nil } @@ -2497,8 +2497,8 @@ func (o ElasticIPHealthcheckPtrOutput) TlsSkipVerify() pulumi.BoolPtrOutput { } // The healthcheck server name to present with SNI in `https` mode. -func (o ElasticIPHealthcheckPtrOutput) TlsSni() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ElasticIPHealthcheck) *string { +func (o ElasticIpHealthcheckPtrOutput) TlsSni() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ElasticIpHealthcheck) *string { if v == nil { return nil } @@ -2507,8 +2507,8 @@ func (o ElasticIPHealthcheckPtrOutput) TlsSni() pulumi.StringPtrOutput { } // The healthcheck target URI (required in `http(s)` modes). -func (o ElasticIPHealthcheckPtrOutput) Uri() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ElasticIPHealthcheck) *string { +func (o ElasticIpHealthcheckPtrOutput) Uri() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ElasticIpHealthcheck) *string { if v == nil { return nil } @@ -2516,136 +2516,136 @@ func (o ElasticIPHealthcheckPtrOutput) Uri() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -type IAMAPIKeyTimeouts struct { +type IamApiKeyTimeouts struct { // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. Read *string `pulumi:"read"` } -// IAMAPIKeyTimeoutsInput is an input type that accepts IAMAPIKeyTimeoutsArgs and IAMAPIKeyTimeoutsOutput values. -// You can construct a concrete instance of `IAMAPIKeyTimeoutsInput` via: +// IamApiKeyTimeoutsInput is an input type that accepts IamApiKeyTimeoutsArgs and IamApiKeyTimeoutsOutput values. +// You can construct a concrete instance of `IamApiKeyTimeoutsInput` via: // -// IAMAPIKeyTimeoutsArgs{...} -type IAMAPIKeyTimeoutsInput interface { +// IamApiKeyTimeoutsArgs{...} +type IamApiKeyTimeoutsInput interface { pulumi.Input - ToIAMAPIKeyTimeoutsOutput() IAMAPIKeyTimeoutsOutput - ToIAMAPIKeyTimeoutsOutputWithContext(context.Context) IAMAPIKeyTimeoutsOutput + ToIamApiKeyTimeoutsOutput() IamApiKeyTimeoutsOutput + ToIamApiKeyTimeoutsOutputWithContext(context.Context) IamApiKeyTimeoutsOutput } -type IAMAPIKeyTimeoutsArgs struct { +type IamApiKeyTimeoutsArgs struct { // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. Read pulumi.StringPtrInput `pulumi:"read"` } -func (IAMAPIKeyTimeoutsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*IAMAPIKeyTimeouts)(nil)).Elem() +func (IamApiKeyTimeoutsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IamApiKeyTimeouts)(nil)).Elem() } -func (i IAMAPIKeyTimeoutsArgs) ToIAMAPIKeyTimeoutsOutput() IAMAPIKeyTimeoutsOutput { - return i.ToIAMAPIKeyTimeoutsOutputWithContext(context.Background()) +func (i IamApiKeyTimeoutsArgs) ToIamApiKeyTimeoutsOutput() IamApiKeyTimeoutsOutput { + return i.ToIamApiKeyTimeoutsOutputWithContext(context.Background()) } -func (i IAMAPIKeyTimeoutsArgs) ToIAMAPIKeyTimeoutsOutputWithContext(ctx context.Context) IAMAPIKeyTimeoutsOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMAPIKeyTimeoutsOutput) +func (i IamApiKeyTimeoutsArgs) ToIamApiKeyTimeoutsOutputWithContext(ctx context.Context) IamApiKeyTimeoutsOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamApiKeyTimeoutsOutput) } -func (i IAMAPIKeyTimeoutsArgs) ToIAMAPIKeyTimeoutsPtrOutput() IAMAPIKeyTimeoutsPtrOutput { - return i.ToIAMAPIKeyTimeoutsPtrOutputWithContext(context.Background()) +func (i IamApiKeyTimeoutsArgs) ToIamApiKeyTimeoutsPtrOutput() IamApiKeyTimeoutsPtrOutput { + return i.ToIamApiKeyTimeoutsPtrOutputWithContext(context.Background()) } -func (i IAMAPIKeyTimeoutsArgs) ToIAMAPIKeyTimeoutsPtrOutputWithContext(ctx context.Context) IAMAPIKeyTimeoutsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMAPIKeyTimeoutsOutput).ToIAMAPIKeyTimeoutsPtrOutputWithContext(ctx) +func (i IamApiKeyTimeoutsArgs) ToIamApiKeyTimeoutsPtrOutputWithContext(ctx context.Context) IamApiKeyTimeoutsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamApiKeyTimeoutsOutput).ToIamApiKeyTimeoutsPtrOutputWithContext(ctx) } -// IAMAPIKeyTimeoutsPtrInput is an input type that accepts IAMAPIKeyTimeoutsArgs, IAMAPIKeyTimeoutsPtr and IAMAPIKeyTimeoutsPtrOutput values. -// You can construct a concrete instance of `IAMAPIKeyTimeoutsPtrInput` via: +// IamApiKeyTimeoutsPtrInput is an input type that accepts IamApiKeyTimeoutsArgs, IamApiKeyTimeoutsPtr and IamApiKeyTimeoutsPtrOutput values. +// You can construct a concrete instance of `IamApiKeyTimeoutsPtrInput` via: // -// IAMAPIKeyTimeoutsArgs{...} +// IamApiKeyTimeoutsArgs{...} // // or: // // nil -type IAMAPIKeyTimeoutsPtrInput interface { +type IamApiKeyTimeoutsPtrInput interface { pulumi.Input - ToIAMAPIKeyTimeoutsPtrOutput() IAMAPIKeyTimeoutsPtrOutput - ToIAMAPIKeyTimeoutsPtrOutputWithContext(context.Context) IAMAPIKeyTimeoutsPtrOutput + ToIamApiKeyTimeoutsPtrOutput() IamApiKeyTimeoutsPtrOutput + ToIamApiKeyTimeoutsPtrOutputWithContext(context.Context) IamApiKeyTimeoutsPtrOutput } -type iamapikeyTimeoutsPtrType IAMAPIKeyTimeoutsArgs +type iamApiKeyTimeoutsPtrType IamApiKeyTimeoutsArgs -func IAMAPIKeyTimeoutsPtr(v *IAMAPIKeyTimeoutsArgs) IAMAPIKeyTimeoutsPtrInput { - return (*iamapikeyTimeoutsPtrType)(v) +func IamApiKeyTimeoutsPtr(v *IamApiKeyTimeoutsArgs) IamApiKeyTimeoutsPtrInput { + return (*iamApiKeyTimeoutsPtrType)(v) } -func (*iamapikeyTimeoutsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**IAMAPIKeyTimeouts)(nil)).Elem() +func (*iamApiKeyTimeoutsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**IamApiKeyTimeouts)(nil)).Elem() } -func (i *iamapikeyTimeoutsPtrType) ToIAMAPIKeyTimeoutsPtrOutput() IAMAPIKeyTimeoutsPtrOutput { - return i.ToIAMAPIKeyTimeoutsPtrOutputWithContext(context.Background()) +func (i *iamApiKeyTimeoutsPtrType) ToIamApiKeyTimeoutsPtrOutput() IamApiKeyTimeoutsPtrOutput { + return i.ToIamApiKeyTimeoutsPtrOutputWithContext(context.Background()) } -func (i *iamapikeyTimeoutsPtrType) ToIAMAPIKeyTimeoutsPtrOutputWithContext(ctx context.Context) IAMAPIKeyTimeoutsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMAPIKeyTimeoutsPtrOutput) +func (i *iamApiKeyTimeoutsPtrType) ToIamApiKeyTimeoutsPtrOutputWithContext(ctx context.Context) IamApiKeyTimeoutsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamApiKeyTimeoutsPtrOutput) } -type IAMAPIKeyTimeoutsOutput struct{ *pulumi.OutputState } +type IamApiKeyTimeoutsOutput struct{ *pulumi.OutputState } -func (IAMAPIKeyTimeoutsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*IAMAPIKeyTimeouts)(nil)).Elem() +func (IamApiKeyTimeoutsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IamApiKeyTimeouts)(nil)).Elem() } -func (o IAMAPIKeyTimeoutsOutput) ToIAMAPIKeyTimeoutsOutput() IAMAPIKeyTimeoutsOutput { +func (o IamApiKeyTimeoutsOutput) ToIamApiKeyTimeoutsOutput() IamApiKeyTimeoutsOutput { return o } -func (o IAMAPIKeyTimeoutsOutput) ToIAMAPIKeyTimeoutsOutputWithContext(ctx context.Context) IAMAPIKeyTimeoutsOutput { +func (o IamApiKeyTimeoutsOutput) ToIamApiKeyTimeoutsOutputWithContext(ctx context.Context) IamApiKeyTimeoutsOutput { return o } -func (o IAMAPIKeyTimeoutsOutput) ToIAMAPIKeyTimeoutsPtrOutput() IAMAPIKeyTimeoutsPtrOutput { - return o.ToIAMAPIKeyTimeoutsPtrOutputWithContext(context.Background()) +func (o IamApiKeyTimeoutsOutput) ToIamApiKeyTimeoutsPtrOutput() IamApiKeyTimeoutsPtrOutput { + return o.ToIamApiKeyTimeoutsPtrOutputWithContext(context.Background()) } -func (o IAMAPIKeyTimeoutsOutput) ToIAMAPIKeyTimeoutsPtrOutputWithContext(ctx context.Context) IAMAPIKeyTimeoutsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v IAMAPIKeyTimeouts) *IAMAPIKeyTimeouts { +func (o IamApiKeyTimeoutsOutput) ToIamApiKeyTimeoutsPtrOutputWithContext(ctx context.Context) IamApiKeyTimeoutsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v IamApiKeyTimeouts) *IamApiKeyTimeouts { return &v - }).(IAMAPIKeyTimeoutsPtrOutput) + }).(IamApiKeyTimeoutsPtrOutput) } // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. -func (o IAMAPIKeyTimeoutsOutput) Read() pulumi.StringPtrOutput { - return o.ApplyT(func(v IAMAPIKeyTimeouts) *string { return v.Read }).(pulumi.StringPtrOutput) +func (o IamApiKeyTimeoutsOutput) Read() pulumi.StringPtrOutput { + return o.ApplyT(func(v IamApiKeyTimeouts) *string { return v.Read }).(pulumi.StringPtrOutput) } -type IAMAPIKeyTimeoutsPtrOutput struct{ *pulumi.OutputState } +type IamApiKeyTimeoutsPtrOutput struct{ *pulumi.OutputState } -func (IAMAPIKeyTimeoutsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**IAMAPIKeyTimeouts)(nil)).Elem() +func (IamApiKeyTimeoutsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**IamApiKeyTimeouts)(nil)).Elem() } -func (o IAMAPIKeyTimeoutsPtrOutput) ToIAMAPIKeyTimeoutsPtrOutput() IAMAPIKeyTimeoutsPtrOutput { +func (o IamApiKeyTimeoutsPtrOutput) ToIamApiKeyTimeoutsPtrOutput() IamApiKeyTimeoutsPtrOutput { return o } -func (o IAMAPIKeyTimeoutsPtrOutput) ToIAMAPIKeyTimeoutsPtrOutputWithContext(ctx context.Context) IAMAPIKeyTimeoutsPtrOutput { +func (o IamApiKeyTimeoutsPtrOutput) ToIamApiKeyTimeoutsPtrOutputWithContext(ctx context.Context) IamApiKeyTimeoutsPtrOutput { return o } -func (o IAMAPIKeyTimeoutsPtrOutput) Elem() IAMAPIKeyTimeoutsOutput { - return o.ApplyT(func(v *IAMAPIKeyTimeouts) IAMAPIKeyTimeouts { +func (o IamApiKeyTimeoutsPtrOutput) Elem() IamApiKeyTimeoutsOutput { + return o.ApplyT(func(v *IamApiKeyTimeouts) IamApiKeyTimeouts { if v != nil { return *v } - var ret IAMAPIKeyTimeouts + var ret IamApiKeyTimeouts return ret - }).(IAMAPIKeyTimeoutsOutput) + }).(IamApiKeyTimeoutsOutput) } // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. -func (o IAMAPIKeyTimeoutsPtrOutput) Read() pulumi.StringPtrOutput { - return o.ApplyT(func(v *IAMAPIKeyTimeouts) *string { +func (o IamApiKeyTimeoutsPtrOutput) Read() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IamApiKeyTimeouts) *string { if v == nil { return nil } @@ -2653,113 +2653,113 @@ func (o IAMAPIKeyTimeoutsPtrOutput) Read() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -type IAMOrgPolicyServices struct { +type IamOrgPolicyServices struct { // List of IAM service rules (if type is `rules`). - Rules []IAMOrgPolicyServicesRule `pulumi:"rules"` + Rules []IamOrgPolicyServicesRule `pulumi:"rules"` // Service type (`rules`, `allow`, or `deny`). Type *string `pulumi:"type"` } -// IAMOrgPolicyServicesInput is an input type that accepts IAMOrgPolicyServicesArgs and IAMOrgPolicyServicesOutput values. -// You can construct a concrete instance of `IAMOrgPolicyServicesInput` via: +// IamOrgPolicyServicesInput is an input type that accepts IamOrgPolicyServicesArgs and IamOrgPolicyServicesOutput values. +// You can construct a concrete instance of `IamOrgPolicyServicesInput` via: // -// IAMOrgPolicyServicesArgs{...} -type IAMOrgPolicyServicesInput interface { +// IamOrgPolicyServicesArgs{...} +type IamOrgPolicyServicesInput interface { pulumi.Input - ToIAMOrgPolicyServicesOutput() IAMOrgPolicyServicesOutput - ToIAMOrgPolicyServicesOutputWithContext(context.Context) IAMOrgPolicyServicesOutput + ToIamOrgPolicyServicesOutput() IamOrgPolicyServicesOutput + ToIamOrgPolicyServicesOutputWithContext(context.Context) IamOrgPolicyServicesOutput } -type IAMOrgPolicyServicesArgs struct { +type IamOrgPolicyServicesArgs struct { // List of IAM service rules (if type is `rules`). - Rules IAMOrgPolicyServicesRuleArrayInput `pulumi:"rules"` + Rules IamOrgPolicyServicesRuleArrayInput `pulumi:"rules"` // Service type (`rules`, `allow`, or `deny`). Type pulumi.StringPtrInput `pulumi:"type"` } -func (IAMOrgPolicyServicesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*IAMOrgPolicyServices)(nil)).Elem() +func (IamOrgPolicyServicesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IamOrgPolicyServices)(nil)).Elem() } -func (i IAMOrgPolicyServicesArgs) ToIAMOrgPolicyServicesOutput() IAMOrgPolicyServicesOutput { - return i.ToIAMOrgPolicyServicesOutputWithContext(context.Background()) +func (i IamOrgPolicyServicesArgs) ToIamOrgPolicyServicesOutput() IamOrgPolicyServicesOutput { + return i.ToIamOrgPolicyServicesOutputWithContext(context.Background()) } -func (i IAMOrgPolicyServicesArgs) ToIAMOrgPolicyServicesOutputWithContext(ctx context.Context) IAMOrgPolicyServicesOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMOrgPolicyServicesOutput) +func (i IamOrgPolicyServicesArgs) ToIamOrgPolicyServicesOutputWithContext(ctx context.Context) IamOrgPolicyServicesOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamOrgPolicyServicesOutput) } -// IAMOrgPolicyServicesMapInput is an input type that accepts IAMOrgPolicyServicesMap and IAMOrgPolicyServicesMapOutput values. -// You can construct a concrete instance of `IAMOrgPolicyServicesMapInput` via: +// IamOrgPolicyServicesMapInput is an input type that accepts IamOrgPolicyServicesMap and IamOrgPolicyServicesMapOutput values. +// You can construct a concrete instance of `IamOrgPolicyServicesMapInput` via: // -// IAMOrgPolicyServicesMap{ "key": IAMOrgPolicyServicesArgs{...} } -type IAMOrgPolicyServicesMapInput interface { +// IamOrgPolicyServicesMap{ "key": IamOrgPolicyServicesArgs{...} } +type IamOrgPolicyServicesMapInput interface { pulumi.Input - ToIAMOrgPolicyServicesMapOutput() IAMOrgPolicyServicesMapOutput - ToIAMOrgPolicyServicesMapOutputWithContext(context.Context) IAMOrgPolicyServicesMapOutput + ToIamOrgPolicyServicesMapOutput() IamOrgPolicyServicesMapOutput + ToIamOrgPolicyServicesMapOutputWithContext(context.Context) IamOrgPolicyServicesMapOutput } -type IAMOrgPolicyServicesMap map[string]IAMOrgPolicyServicesInput +type IamOrgPolicyServicesMap map[string]IamOrgPolicyServicesInput -func (IAMOrgPolicyServicesMap) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]IAMOrgPolicyServices)(nil)).Elem() +func (IamOrgPolicyServicesMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]IamOrgPolicyServices)(nil)).Elem() } -func (i IAMOrgPolicyServicesMap) ToIAMOrgPolicyServicesMapOutput() IAMOrgPolicyServicesMapOutput { - return i.ToIAMOrgPolicyServicesMapOutputWithContext(context.Background()) +func (i IamOrgPolicyServicesMap) ToIamOrgPolicyServicesMapOutput() IamOrgPolicyServicesMapOutput { + return i.ToIamOrgPolicyServicesMapOutputWithContext(context.Background()) } -func (i IAMOrgPolicyServicesMap) ToIAMOrgPolicyServicesMapOutputWithContext(ctx context.Context) IAMOrgPolicyServicesMapOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMOrgPolicyServicesMapOutput) +func (i IamOrgPolicyServicesMap) ToIamOrgPolicyServicesMapOutputWithContext(ctx context.Context) IamOrgPolicyServicesMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamOrgPolicyServicesMapOutput) } -type IAMOrgPolicyServicesOutput struct{ *pulumi.OutputState } +type IamOrgPolicyServicesOutput struct{ *pulumi.OutputState } -func (IAMOrgPolicyServicesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*IAMOrgPolicyServices)(nil)).Elem() +func (IamOrgPolicyServicesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IamOrgPolicyServices)(nil)).Elem() } -func (o IAMOrgPolicyServicesOutput) ToIAMOrgPolicyServicesOutput() IAMOrgPolicyServicesOutput { +func (o IamOrgPolicyServicesOutput) ToIamOrgPolicyServicesOutput() IamOrgPolicyServicesOutput { return o } -func (o IAMOrgPolicyServicesOutput) ToIAMOrgPolicyServicesOutputWithContext(ctx context.Context) IAMOrgPolicyServicesOutput { +func (o IamOrgPolicyServicesOutput) ToIamOrgPolicyServicesOutputWithContext(ctx context.Context) IamOrgPolicyServicesOutput { return o } // List of IAM service rules (if type is `rules`). -func (o IAMOrgPolicyServicesOutput) Rules() IAMOrgPolicyServicesRuleArrayOutput { - return o.ApplyT(func(v IAMOrgPolicyServices) []IAMOrgPolicyServicesRule { return v.Rules }).(IAMOrgPolicyServicesRuleArrayOutput) +func (o IamOrgPolicyServicesOutput) Rules() IamOrgPolicyServicesRuleArrayOutput { + return o.ApplyT(func(v IamOrgPolicyServices) []IamOrgPolicyServicesRule { return v.Rules }).(IamOrgPolicyServicesRuleArrayOutput) } // Service type (`rules`, `allow`, or `deny`). -func (o IAMOrgPolicyServicesOutput) Type() pulumi.StringPtrOutput { - return o.ApplyT(func(v IAMOrgPolicyServices) *string { return v.Type }).(pulumi.StringPtrOutput) +func (o IamOrgPolicyServicesOutput) Type() pulumi.StringPtrOutput { + return o.ApplyT(func(v IamOrgPolicyServices) *string { return v.Type }).(pulumi.StringPtrOutput) } -type IAMOrgPolicyServicesMapOutput struct{ *pulumi.OutputState } +type IamOrgPolicyServicesMapOutput struct{ *pulumi.OutputState } -func (IAMOrgPolicyServicesMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]IAMOrgPolicyServices)(nil)).Elem() +func (IamOrgPolicyServicesMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]IamOrgPolicyServices)(nil)).Elem() } -func (o IAMOrgPolicyServicesMapOutput) ToIAMOrgPolicyServicesMapOutput() IAMOrgPolicyServicesMapOutput { +func (o IamOrgPolicyServicesMapOutput) ToIamOrgPolicyServicesMapOutput() IamOrgPolicyServicesMapOutput { return o } -func (o IAMOrgPolicyServicesMapOutput) ToIAMOrgPolicyServicesMapOutputWithContext(ctx context.Context) IAMOrgPolicyServicesMapOutput { +func (o IamOrgPolicyServicesMapOutput) ToIamOrgPolicyServicesMapOutputWithContext(ctx context.Context) IamOrgPolicyServicesMapOutput { return o } -func (o IAMOrgPolicyServicesMapOutput) MapIndex(k pulumi.StringInput) IAMOrgPolicyServicesOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) IAMOrgPolicyServices { - return vs[0].(map[string]IAMOrgPolicyServices)[vs[1].(string)] - }).(IAMOrgPolicyServicesOutput) +func (o IamOrgPolicyServicesMapOutput) MapIndex(k pulumi.StringInput) IamOrgPolicyServicesOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) IamOrgPolicyServices { + return vs[0].(map[string]IamOrgPolicyServices)[vs[1].(string)] + }).(IamOrgPolicyServicesOutput) } -type IAMOrgPolicyServicesRule struct { +type IamOrgPolicyServicesRule struct { // IAM policy rule action (`allow` or `deny`). Action *string `pulumi:"action"` // IAM policy rule expression. @@ -2768,18 +2768,18 @@ type IAMOrgPolicyServicesRule struct { Resources []string `pulumi:"resources"` } -// IAMOrgPolicyServicesRuleInput is an input type that accepts IAMOrgPolicyServicesRuleArgs and IAMOrgPolicyServicesRuleOutput values. -// You can construct a concrete instance of `IAMOrgPolicyServicesRuleInput` via: +// IamOrgPolicyServicesRuleInput is an input type that accepts IamOrgPolicyServicesRuleArgs and IamOrgPolicyServicesRuleOutput values. +// You can construct a concrete instance of `IamOrgPolicyServicesRuleInput` via: // -// IAMOrgPolicyServicesRuleArgs{...} -type IAMOrgPolicyServicesRuleInput interface { +// IamOrgPolicyServicesRuleArgs{...} +type IamOrgPolicyServicesRuleInput interface { pulumi.Input - ToIAMOrgPolicyServicesRuleOutput() IAMOrgPolicyServicesRuleOutput - ToIAMOrgPolicyServicesRuleOutputWithContext(context.Context) IAMOrgPolicyServicesRuleOutput + ToIamOrgPolicyServicesRuleOutput() IamOrgPolicyServicesRuleOutput + ToIamOrgPolicyServicesRuleOutputWithContext(context.Context) IamOrgPolicyServicesRuleOutput } -type IAMOrgPolicyServicesRuleArgs struct { +type IamOrgPolicyServicesRuleArgs struct { // IAM policy rule action (`allow` or `deny`). Action pulumi.StringPtrInput `pulumi:"action"` // IAM policy rule expression. @@ -2788,222 +2788,222 @@ type IAMOrgPolicyServicesRuleArgs struct { Resources pulumi.StringArrayInput `pulumi:"resources"` } -func (IAMOrgPolicyServicesRuleArgs) ElementType() reflect.Type { - return reflect.TypeOf((*IAMOrgPolicyServicesRule)(nil)).Elem() +func (IamOrgPolicyServicesRuleArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IamOrgPolicyServicesRule)(nil)).Elem() } -func (i IAMOrgPolicyServicesRuleArgs) ToIAMOrgPolicyServicesRuleOutput() IAMOrgPolicyServicesRuleOutput { - return i.ToIAMOrgPolicyServicesRuleOutputWithContext(context.Background()) +func (i IamOrgPolicyServicesRuleArgs) ToIamOrgPolicyServicesRuleOutput() IamOrgPolicyServicesRuleOutput { + return i.ToIamOrgPolicyServicesRuleOutputWithContext(context.Background()) } -func (i IAMOrgPolicyServicesRuleArgs) ToIAMOrgPolicyServicesRuleOutputWithContext(ctx context.Context) IAMOrgPolicyServicesRuleOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMOrgPolicyServicesRuleOutput) +func (i IamOrgPolicyServicesRuleArgs) ToIamOrgPolicyServicesRuleOutputWithContext(ctx context.Context) IamOrgPolicyServicesRuleOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamOrgPolicyServicesRuleOutput) } -// IAMOrgPolicyServicesRuleArrayInput is an input type that accepts IAMOrgPolicyServicesRuleArray and IAMOrgPolicyServicesRuleArrayOutput values. -// You can construct a concrete instance of `IAMOrgPolicyServicesRuleArrayInput` via: +// IamOrgPolicyServicesRuleArrayInput is an input type that accepts IamOrgPolicyServicesRuleArray and IamOrgPolicyServicesRuleArrayOutput values. +// You can construct a concrete instance of `IamOrgPolicyServicesRuleArrayInput` via: // -// IAMOrgPolicyServicesRuleArray{ IAMOrgPolicyServicesRuleArgs{...} } -type IAMOrgPolicyServicesRuleArrayInput interface { +// IamOrgPolicyServicesRuleArray{ IamOrgPolicyServicesRuleArgs{...} } +type IamOrgPolicyServicesRuleArrayInput interface { pulumi.Input - ToIAMOrgPolicyServicesRuleArrayOutput() IAMOrgPolicyServicesRuleArrayOutput - ToIAMOrgPolicyServicesRuleArrayOutputWithContext(context.Context) IAMOrgPolicyServicesRuleArrayOutput + ToIamOrgPolicyServicesRuleArrayOutput() IamOrgPolicyServicesRuleArrayOutput + ToIamOrgPolicyServicesRuleArrayOutputWithContext(context.Context) IamOrgPolicyServicesRuleArrayOutput } -type IAMOrgPolicyServicesRuleArray []IAMOrgPolicyServicesRuleInput +type IamOrgPolicyServicesRuleArray []IamOrgPolicyServicesRuleInput -func (IAMOrgPolicyServicesRuleArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]IAMOrgPolicyServicesRule)(nil)).Elem() +func (IamOrgPolicyServicesRuleArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]IamOrgPolicyServicesRule)(nil)).Elem() } -func (i IAMOrgPolicyServicesRuleArray) ToIAMOrgPolicyServicesRuleArrayOutput() IAMOrgPolicyServicesRuleArrayOutput { - return i.ToIAMOrgPolicyServicesRuleArrayOutputWithContext(context.Background()) +func (i IamOrgPolicyServicesRuleArray) ToIamOrgPolicyServicesRuleArrayOutput() IamOrgPolicyServicesRuleArrayOutput { + return i.ToIamOrgPolicyServicesRuleArrayOutputWithContext(context.Background()) } -func (i IAMOrgPolicyServicesRuleArray) ToIAMOrgPolicyServicesRuleArrayOutputWithContext(ctx context.Context) IAMOrgPolicyServicesRuleArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMOrgPolicyServicesRuleArrayOutput) +func (i IamOrgPolicyServicesRuleArray) ToIamOrgPolicyServicesRuleArrayOutputWithContext(ctx context.Context) IamOrgPolicyServicesRuleArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamOrgPolicyServicesRuleArrayOutput) } -type IAMOrgPolicyServicesRuleOutput struct{ *pulumi.OutputState } +type IamOrgPolicyServicesRuleOutput struct{ *pulumi.OutputState } -func (IAMOrgPolicyServicesRuleOutput) ElementType() reflect.Type { - return reflect.TypeOf((*IAMOrgPolicyServicesRule)(nil)).Elem() +func (IamOrgPolicyServicesRuleOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IamOrgPolicyServicesRule)(nil)).Elem() } -func (o IAMOrgPolicyServicesRuleOutput) ToIAMOrgPolicyServicesRuleOutput() IAMOrgPolicyServicesRuleOutput { +func (o IamOrgPolicyServicesRuleOutput) ToIamOrgPolicyServicesRuleOutput() IamOrgPolicyServicesRuleOutput { return o } -func (o IAMOrgPolicyServicesRuleOutput) ToIAMOrgPolicyServicesRuleOutputWithContext(ctx context.Context) IAMOrgPolicyServicesRuleOutput { +func (o IamOrgPolicyServicesRuleOutput) ToIamOrgPolicyServicesRuleOutputWithContext(ctx context.Context) IamOrgPolicyServicesRuleOutput { return o } // IAM policy rule action (`allow` or `deny`). -func (o IAMOrgPolicyServicesRuleOutput) Action() pulumi.StringPtrOutput { - return o.ApplyT(func(v IAMOrgPolicyServicesRule) *string { return v.Action }).(pulumi.StringPtrOutput) +func (o IamOrgPolicyServicesRuleOutput) Action() pulumi.StringPtrOutput { + return o.ApplyT(func(v IamOrgPolicyServicesRule) *string { return v.Action }).(pulumi.StringPtrOutput) } // IAM policy rule expression. -func (o IAMOrgPolicyServicesRuleOutput) Expression() pulumi.StringPtrOutput { - return o.ApplyT(func(v IAMOrgPolicyServicesRule) *string { return v.Expression }).(pulumi.StringPtrOutput) +func (o IamOrgPolicyServicesRuleOutput) Expression() pulumi.StringPtrOutput { + return o.ApplyT(func(v IamOrgPolicyServicesRule) *string { return v.Expression }).(pulumi.StringPtrOutput) } // Deprecated: This field is not suported. Specify resources using CEL expressions. -func (o IAMOrgPolicyServicesRuleOutput) Resources() pulumi.StringArrayOutput { - return o.ApplyT(func(v IAMOrgPolicyServicesRule) []string { return v.Resources }).(pulumi.StringArrayOutput) +func (o IamOrgPolicyServicesRuleOutput) Resources() pulumi.StringArrayOutput { + return o.ApplyT(func(v IamOrgPolicyServicesRule) []string { return v.Resources }).(pulumi.StringArrayOutput) } -type IAMOrgPolicyServicesRuleArrayOutput struct{ *pulumi.OutputState } +type IamOrgPolicyServicesRuleArrayOutput struct{ *pulumi.OutputState } -func (IAMOrgPolicyServicesRuleArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]IAMOrgPolicyServicesRule)(nil)).Elem() +func (IamOrgPolicyServicesRuleArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]IamOrgPolicyServicesRule)(nil)).Elem() } -func (o IAMOrgPolicyServicesRuleArrayOutput) ToIAMOrgPolicyServicesRuleArrayOutput() IAMOrgPolicyServicesRuleArrayOutput { +func (o IamOrgPolicyServicesRuleArrayOutput) ToIamOrgPolicyServicesRuleArrayOutput() IamOrgPolicyServicesRuleArrayOutput { return o } -func (o IAMOrgPolicyServicesRuleArrayOutput) ToIAMOrgPolicyServicesRuleArrayOutputWithContext(ctx context.Context) IAMOrgPolicyServicesRuleArrayOutput { +func (o IamOrgPolicyServicesRuleArrayOutput) ToIamOrgPolicyServicesRuleArrayOutputWithContext(ctx context.Context) IamOrgPolicyServicesRuleArrayOutput { return o } -func (o IAMOrgPolicyServicesRuleArrayOutput) Index(i pulumi.IntInput) IAMOrgPolicyServicesRuleOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) IAMOrgPolicyServicesRule { - return vs[0].([]IAMOrgPolicyServicesRule)[vs[1].(int)] - }).(IAMOrgPolicyServicesRuleOutput) +func (o IamOrgPolicyServicesRuleArrayOutput) Index(i pulumi.IntInput) IamOrgPolicyServicesRuleOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) IamOrgPolicyServicesRule { + return vs[0].([]IamOrgPolicyServicesRule)[vs[1].(int)] + }).(IamOrgPolicyServicesRuleOutput) } -type IAMOrgPolicyTimeouts struct { +type IamOrgPolicyTimeouts struct { // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. Read *string `pulumi:"read"` } -// IAMOrgPolicyTimeoutsInput is an input type that accepts IAMOrgPolicyTimeoutsArgs and IAMOrgPolicyTimeoutsOutput values. -// You can construct a concrete instance of `IAMOrgPolicyTimeoutsInput` via: +// IamOrgPolicyTimeoutsInput is an input type that accepts IamOrgPolicyTimeoutsArgs and IamOrgPolicyTimeoutsOutput values. +// You can construct a concrete instance of `IamOrgPolicyTimeoutsInput` via: // -// IAMOrgPolicyTimeoutsArgs{...} -type IAMOrgPolicyTimeoutsInput interface { +// IamOrgPolicyTimeoutsArgs{...} +type IamOrgPolicyTimeoutsInput interface { pulumi.Input - ToIAMOrgPolicyTimeoutsOutput() IAMOrgPolicyTimeoutsOutput - ToIAMOrgPolicyTimeoutsOutputWithContext(context.Context) IAMOrgPolicyTimeoutsOutput + ToIamOrgPolicyTimeoutsOutput() IamOrgPolicyTimeoutsOutput + ToIamOrgPolicyTimeoutsOutputWithContext(context.Context) IamOrgPolicyTimeoutsOutput } -type IAMOrgPolicyTimeoutsArgs struct { +type IamOrgPolicyTimeoutsArgs struct { // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. Read pulumi.StringPtrInput `pulumi:"read"` } -func (IAMOrgPolicyTimeoutsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*IAMOrgPolicyTimeouts)(nil)).Elem() +func (IamOrgPolicyTimeoutsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IamOrgPolicyTimeouts)(nil)).Elem() } -func (i IAMOrgPolicyTimeoutsArgs) ToIAMOrgPolicyTimeoutsOutput() IAMOrgPolicyTimeoutsOutput { - return i.ToIAMOrgPolicyTimeoutsOutputWithContext(context.Background()) +func (i IamOrgPolicyTimeoutsArgs) ToIamOrgPolicyTimeoutsOutput() IamOrgPolicyTimeoutsOutput { + return i.ToIamOrgPolicyTimeoutsOutputWithContext(context.Background()) } -func (i IAMOrgPolicyTimeoutsArgs) ToIAMOrgPolicyTimeoutsOutputWithContext(ctx context.Context) IAMOrgPolicyTimeoutsOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMOrgPolicyTimeoutsOutput) +func (i IamOrgPolicyTimeoutsArgs) ToIamOrgPolicyTimeoutsOutputWithContext(ctx context.Context) IamOrgPolicyTimeoutsOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamOrgPolicyTimeoutsOutput) } -func (i IAMOrgPolicyTimeoutsArgs) ToIAMOrgPolicyTimeoutsPtrOutput() IAMOrgPolicyTimeoutsPtrOutput { - return i.ToIAMOrgPolicyTimeoutsPtrOutputWithContext(context.Background()) +func (i IamOrgPolicyTimeoutsArgs) ToIamOrgPolicyTimeoutsPtrOutput() IamOrgPolicyTimeoutsPtrOutput { + return i.ToIamOrgPolicyTimeoutsPtrOutputWithContext(context.Background()) } -func (i IAMOrgPolicyTimeoutsArgs) ToIAMOrgPolicyTimeoutsPtrOutputWithContext(ctx context.Context) IAMOrgPolicyTimeoutsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMOrgPolicyTimeoutsOutput).ToIAMOrgPolicyTimeoutsPtrOutputWithContext(ctx) +func (i IamOrgPolicyTimeoutsArgs) ToIamOrgPolicyTimeoutsPtrOutputWithContext(ctx context.Context) IamOrgPolicyTimeoutsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamOrgPolicyTimeoutsOutput).ToIamOrgPolicyTimeoutsPtrOutputWithContext(ctx) } -// IAMOrgPolicyTimeoutsPtrInput is an input type that accepts IAMOrgPolicyTimeoutsArgs, IAMOrgPolicyTimeoutsPtr and IAMOrgPolicyTimeoutsPtrOutput values. -// You can construct a concrete instance of `IAMOrgPolicyTimeoutsPtrInput` via: +// IamOrgPolicyTimeoutsPtrInput is an input type that accepts IamOrgPolicyTimeoutsArgs, IamOrgPolicyTimeoutsPtr and IamOrgPolicyTimeoutsPtrOutput values. +// You can construct a concrete instance of `IamOrgPolicyTimeoutsPtrInput` via: // -// IAMOrgPolicyTimeoutsArgs{...} +// IamOrgPolicyTimeoutsArgs{...} // // or: // // nil -type IAMOrgPolicyTimeoutsPtrInput interface { +type IamOrgPolicyTimeoutsPtrInput interface { pulumi.Input - ToIAMOrgPolicyTimeoutsPtrOutput() IAMOrgPolicyTimeoutsPtrOutput - ToIAMOrgPolicyTimeoutsPtrOutputWithContext(context.Context) IAMOrgPolicyTimeoutsPtrOutput + ToIamOrgPolicyTimeoutsPtrOutput() IamOrgPolicyTimeoutsPtrOutput + ToIamOrgPolicyTimeoutsPtrOutputWithContext(context.Context) IamOrgPolicyTimeoutsPtrOutput } -type iamorgPolicyTimeoutsPtrType IAMOrgPolicyTimeoutsArgs +type iamOrgPolicyTimeoutsPtrType IamOrgPolicyTimeoutsArgs -func IAMOrgPolicyTimeoutsPtr(v *IAMOrgPolicyTimeoutsArgs) IAMOrgPolicyTimeoutsPtrInput { - return (*iamorgPolicyTimeoutsPtrType)(v) +func IamOrgPolicyTimeoutsPtr(v *IamOrgPolicyTimeoutsArgs) IamOrgPolicyTimeoutsPtrInput { + return (*iamOrgPolicyTimeoutsPtrType)(v) } -func (*iamorgPolicyTimeoutsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**IAMOrgPolicyTimeouts)(nil)).Elem() +func (*iamOrgPolicyTimeoutsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**IamOrgPolicyTimeouts)(nil)).Elem() } -func (i *iamorgPolicyTimeoutsPtrType) ToIAMOrgPolicyTimeoutsPtrOutput() IAMOrgPolicyTimeoutsPtrOutput { - return i.ToIAMOrgPolicyTimeoutsPtrOutputWithContext(context.Background()) +func (i *iamOrgPolicyTimeoutsPtrType) ToIamOrgPolicyTimeoutsPtrOutput() IamOrgPolicyTimeoutsPtrOutput { + return i.ToIamOrgPolicyTimeoutsPtrOutputWithContext(context.Background()) } -func (i *iamorgPolicyTimeoutsPtrType) ToIAMOrgPolicyTimeoutsPtrOutputWithContext(ctx context.Context) IAMOrgPolicyTimeoutsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMOrgPolicyTimeoutsPtrOutput) +func (i *iamOrgPolicyTimeoutsPtrType) ToIamOrgPolicyTimeoutsPtrOutputWithContext(ctx context.Context) IamOrgPolicyTimeoutsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamOrgPolicyTimeoutsPtrOutput) } -type IAMOrgPolicyTimeoutsOutput struct{ *pulumi.OutputState } +type IamOrgPolicyTimeoutsOutput struct{ *pulumi.OutputState } -func (IAMOrgPolicyTimeoutsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*IAMOrgPolicyTimeouts)(nil)).Elem() +func (IamOrgPolicyTimeoutsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IamOrgPolicyTimeouts)(nil)).Elem() } -func (o IAMOrgPolicyTimeoutsOutput) ToIAMOrgPolicyTimeoutsOutput() IAMOrgPolicyTimeoutsOutput { +func (o IamOrgPolicyTimeoutsOutput) ToIamOrgPolicyTimeoutsOutput() IamOrgPolicyTimeoutsOutput { return o } -func (o IAMOrgPolicyTimeoutsOutput) ToIAMOrgPolicyTimeoutsOutputWithContext(ctx context.Context) IAMOrgPolicyTimeoutsOutput { +func (o IamOrgPolicyTimeoutsOutput) ToIamOrgPolicyTimeoutsOutputWithContext(ctx context.Context) IamOrgPolicyTimeoutsOutput { return o } -func (o IAMOrgPolicyTimeoutsOutput) ToIAMOrgPolicyTimeoutsPtrOutput() IAMOrgPolicyTimeoutsPtrOutput { - return o.ToIAMOrgPolicyTimeoutsPtrOutputWithContext(context.Background()) +func (o IamOrgPolicyTimeoutsOutput) ToIamOrgPolicyTimeoutsPtrOutput() IamOrgPolicyTimeoutsPtrOutput { + return o.ToIamOrgPolicyTimeoutsPtrOutputWithContext(context.Background()) } -func (o IAMOrgPolicyTimeoutsOutput) ToIAMOrgPolicyTimeoutsPtrOutputWithContext(ctx context.Context) IAMOrgPolicyTimeoutsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v IAMOrgPolicyTimeouts) *IAMOrgPolicyTimeouts { +func (o IamOrgPolicyTimeoutsOutput) ToIamOrgPolicyTimeoutsPtrOutputWithContext(ctx context.Context) IamOrgPolicyTimeoutsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v IamOrgPolicyTimeouts) *IamOrgPolicyTimeouts { return &v - }).(IAMOrgPolicyTimeoutsPtrOutput) + }).(IamOrgPolicyTimeoutsPtrOutput) } // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. -func (o IAMOrgPolicyTimeoutsOutput) Read() pulumi.StringPtrOutput { - return o.ApplyT(func(v IAMOrgPolicyTimeouts) *string { return v.Read }).(pulumi.StringPtrOutput) +func (o IamOrgPolicyTimeoutsOutput) Read() pulumi.StringPtrOutput { + return o.ApplyT(func(v IamOrgPolicyTimeouts) *string { return v.Read }).(pulumi.StringPtrOutput) } -type IAMOrgPolicyTimeoutsPtrOutput struct{ *pulumi.OutputState } +type IamOrgPolicyTimeoutsPtrOutput struct{ *pulumi.OutputState } -func (IAMOrgPolicyTimeoutsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**IAMOrgPolicyTimeouts)(nil)).Elem() +func (IamOrgPolicyTimeoutsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**IamOrgPolicyTimeouts)(nil)).Elem() } -func (o IAMOrgPolicyTimeoutsPtrOutput) ToIAMOrgPolicyTimeoutsPtrOutput() IAMOrgPolicyTimeoutsPtrOutput { +func (o IamOrgPolicyTimeoutsPtrOutput) ToIamOrgPolicyTimeoutsPtrOutput() IamOrgPolicyTimeoutsPtrOutput { return o } -func (o IAMOrgPolicyTimeoutsPtrOutput) ToIAMOrgPolicyTimeoutsPtrOutputWithContext(ctx context.Context) IAMOrgPolicyTimeoutsPtrOutput { +func (o IamOrgPolicyTimeoutsPtrOutput) ToIamOrgPolicyTimeoutsPtrOutputWithContext(ctx context.Context) IamOrgPolicyTimeoutsPtrOutput { return o } -func (o IAMOrgPolicyTimeoutsPtrOutput) Elem() IAMOrgPolicyTimeoutsOutput { - return o.ApplyT(func(v *IAMOrgPolicyTimeouts) IAMOrgPolicyTimeouts { +func (o IamOrgPolicyTimeoutsPtrOutput) Elem() IamOrgPolicyTimeoutsOutput { + return o.ApplyT(func(v *IamOrgPolicyTimeouts) IamOrgPolicyTimeouts { if v != nil { return *v } - var ret IAMOrgPolicyTimeouts + var ret IamOrgPolicyTimeouts return ret - }).(IAMOrgPolicyTimeoutsOutput) + }).(IamOrgPolicyTimeoutsOutput) } // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. -func (o IAMOrgPolicyTimeoutsPtrOutput) Read() pulumi.StringPtrOutput { - return o.ApplyT(func(v *IAMOrgPolicyTimeouts) *string { +func (o IamOrgPolicyTimeoutsPtrOutput) Read() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IamOrgPolicyTimeouts) *string { if v == nil { return nil } @@ -3011,145 +3011,145 @@ func (o IAMOrgPolicyTimeoutsPtrOutput) Read() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -type IAMRolePolicy struct { +type IamRolePolicy struct { // Default service strategy (`allow` or `deny`). DefaultServiceStrategy *string `pulumi:"defaultServiceStrategy"` // IAM policy services. - Services map[string]IAMRolePolicyServices `pulumi:"services"` + Services map[string]IamRolePolicyServices `pulumi:"services"` } -// IAMRolePolicyInput is an input type that accepts IAMRolePolicyArgs and IAMRolePolicyOutput values. -// You can construct a concrete instance of `IAMRolePolicyInput` via: +// IamRolePolicyInput is an input type that accepts IamRolePolicyArgs and IamRolePolicyOutput values. +// You can construct a concrete instance of `IamRolePolicyInput` via: // -// IAMRolePolicyArgs{...} -type IAMRolePolicyInput interface { +// IamRolePolicyArgs{...} +type IamRolePolicyInput interface { pulumi.Input - ToIAMRolePolicyOutput() IAMRolePolicyOutput - ToIAMRolePolicyOutputWithContext(context.Context) IAMRolePolicyOutput + ToIamRolePolicyOutput() IamRolePolicyOutput + ToIamRolePolicyOutputWithContext(context.Context) IamRolePolicyOutput } -type IAMRolePolicyArgs struct { +type IamRolePolicyArgs struct { // Default service strategy (`allow` or `deny`). DefaultServiceStrategy pulumi.StringPtrInput `pulumi:"defaultServiceStrategy"` // IAM policy services. - Services IAMRolePolicyServicesMapInput `pulumi:"services"` + Services IamRolePolicyServicesMapInput `pulumi:"services"` } -func (IAMRolePolicyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*IAMRolePolicy)(nil)).Elem() +func (IamRolePolicyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IamRolePolicy)(nil)).Elem() } -func (i IAMRolePolicyArgs) ToIAMRolePolicyOutput() IAMRolePolicyOutput { - return i.ToIAMRolePolicyOutputWithContext(context.Background()) +func (i IamRolePolicyArgs) ToIamRolePolicyOutput() IamRolePolicyOutput { + return i.ToIamRolePolicyOutputWithContext(context.Background()) } -func (i IAMRolePolicyArgs) ToIAMRolePolicyOutputWithContext(ctx context.Context) IAMRolePolicyOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMRolePolicyOutput) +func (i IamRolePolicyArgs) ToIamRolePolicyOutputWithContext(ctx context.Context) IamRolePolicyOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamRolePolicyOutput) } -func (i IAMRolePolicyArgs) ToIAMRolePolicyPtrOutput() IAMRolePolicyPtrOutput { - return i.ToIAMRolePolicyPtrOutputWithContext(context.Background()) +func (i IamRolePolicyArgs) ToIamRolePolicyPtrOutput() IamRolePolicyPtrOutput { + return i.ToIamRolePolicyPtrOutputWithContext(context.Background()) } -func (i IAMRolePolicyArgs) ToIAMRolePolicyPtrOutputWithContext(ctx context.Context) IAMRolePolicyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMRolePolicyOutput).ToIAMRolePolicyPtrOutputWithContext(ctx) +func (i IamRolePolicyArgs) ToIamRolePolicyPtrOutputWithContext(ctx context.Context) IamRolePolicyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamRolePolicyOutput).ToIamRolePolicyPtrOutputWithContext(ctx) } -// IAMRolePolicyPtrInput is an input type that accepts IAMRolePolicyArgs, IAMRolePolicyPtr and IAMRolePolicyPtrOutput values. -// You can construct a concrete instance of `IAMRolePolicyPtrInput` via: +// IamRolePolicyPtrInput is an input type that accepts IamRolePolicyArgs, IamRolePolicyPtr and IamRolePolicyPtrOutput values. +// You can construct a concrete instance of `IamRolePolicyPtrInput` via: // -// IAMRolePolicyArgs{...} +// IamRolePolicyArgs{...} // // or: // // nil -type IAMRolePolicyPtrInput interface { +type IamRolePolicyPtrInput interface { pulumi.Input - ToIAMRolePolicyPtrOutput() IAMRolePolicyPtrOutput - ToIAMRolePolicyPtrOutputWithContext(context.Context) IAMRolePolicyPtrOutput + ToIamRolePolicyPtrOutput() IamRolePolicyPtrOutput + ToIamRolePolicyPtrOutputWithContext(context.Context) IamRolePolicyPtrOutput } -type iamrolePolicyPtrType IAMRolePolicyArgs +type iamRolePolicyPtrType IamRolePolicyArgs -func IAMRolePolicyPtr(v *IAMRolePolicyArgs) IAMRolePolicyPtrInput { - return (*iamrolePolicyPtrType)(v) +func IamRolePolicyPtr(v *IamRolePolicyArgs) IamRolePolicyPtrInput { + return (*iamRolePolicyPtrType)(v) } -func (*iamrolePolicyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**IAMRolePolicy)(nil)).Elem() +func (*iamRolePolicyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**IamRolePolicy)(nil)).Elem() } -func (i *iamrolePolicyPtrType) ToIAMRolePolicyPtrOutput() IAMRolePolicyPtrOutput { - return i.ToIAMRolePolicyPtrOutputWithContext(context.Background()) +func (i *iamRolePolicyPtrType) ToIamRolePolicyPtrOutput() IamRolePolicyPtrOutput { + return i.ToIamRolePolicyPtrOutputWithContext(context.Background()) } -func (i *iamrolePolicyPtrType) ToIAMRolePolicyPtrOutputWithContext(ctx context.Context) IAMRolePolicyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMRolePolicyPtrOutput) +func (i *iamRolePolicyPtrType) ToIamRolePolicyPtrOutputWithContext(ctx context.Context) IamRolePolicyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamRolePolicyPtrOutput) } -type IAMRolePolicyOutput struct{ *pulumi.OutputState } +type IamRolePolicyOutput struct{ *pulumi.OutputState } -func (IAMRolePolicyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*IAMRolePolicy)(nil)).Elem() +func (IamRolePolicyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IamRolePolicy)(nil)).Elem() } -func (o IAMRolePolicyOutput) ToIAMRolePolicyOutput() IAMRolePolicyOutput { +func (o IamRolePolicyOutput) ToIamRolePolicyOutput() IamRolePolicyOutput { return o } -func (o IAMRolePolicyOutput) ToIAMRolePolicyOutputWithContext(ctx context.Context) IAMRolePolicyOutput { +func (o IamRolePolicyOutput) ToIamRolePolicyOutputWithContext(ctx context.Context) IamRolePolicyOutput { return o } -func (o IAMRolePolicyOutput) ToIAMRolePolicyPtrOutput() IAMRolePolicyPtrOutput { - return o.ToIAMRolePolicyPtrOutputWithContext(context.Background()) +func (o IamRolePolicyOutput) ToIamRolePolicyPtrOutput() IamRolePolicyPtrOutput { + return o.ToIamRolePolicyPtrOutputWithContext(context.Background()) } -func (o IAMRolePolicyOutput) ToIAMRolePolicyPtrOutputWithContext(ctx context.Context) IAMRolePolicyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v IAMRolePolicy) *IAMRolePolicy { +func (o IamRolePolicyOutput) ToIamRolePolicyPtrOutputWithContext(ctx context.Context) IamRolePolicyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v IamRolePolicy) *IamRolePolicy { return &v - }).(IAMRolePolicyPtrOutput) + }).(IamRolePolicyPtrOutput) } // Default service strategy (`allow` or `deny`). -func (o IAMRolePolicyOutput) DefaultServiceStrategy() pulumi.StringPtrOutput { - return o.ApplyT(func(v IAMRolePolicy) *string { return v.DefaultServiceStrategy }).(pulumi.StringPtrOutput) +func (o IamRolePolicyOutput) DefaultServiceStrategy() pulumi.StringPtrOutput { + return o.ApplyT(func(v IamRolePolicy) *string { return v.DefaultServiceStrategy }).(pulumi.StringPtrOutput) } // IAM policy services. -func (o IAMRolePolicyOutput) Services() IAMRolePolicyServicesMapOutput { - return o.ApplyT(func(v IAMRolePolicy) map[string]IAMRolePolicyServices { return v.Services }).(IAMRolePolicyServicesMapOutput) +func (o IamRolePolicyOutput) Services() IamRolePolicyServicesMapOutput { + return o.ApplyT(func(v IamRolePolicy) map[string]IamRolePolicyServices { return v.Services }).(IamRolePolicyServicesMapOutput) } -type IAMRolePolicyPtrOutput struct{ *pulumi.OutputState } +type IamRolePolicyPtrOutput struct{ *pulumi.OutputState } -func (IAMRolePolicyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**IAMRolePolicy)(nil)).Elem() +func (IamRolePolicyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**IamRolePolicy)(nil)).Elem() } -func (o IAMRolePolicyPtrOutput) ToIAMRolePolicyPtrOutput() IAMRolePolicyPtrOutput { +func (o IamRolePolicyPtrOutput) ToIamRolePolicyPtrOutput() IamRolePolicyPtrOutput { return o } -func (o IAMRolePolicyPtrOutput) ToIAMRolePolicyPtrOutputWithContext(ctx context.Context) IAMRolePolicyPtrOutput { +func (o IamRolePolicyPtrOutput) ToIamRolePolicyPtrOutputWithContext(ctx context.Context) IamRolePolicyPtrOutput { return o } -func (o IAMRolePolicyPtrOutput) Elem() IAMRolePolicyOutput { - return o.ApplyT(func(v *IAMRolePolicy) IAMRolePolicy { +func (o IamRolePolicyPtrOutput) Elem() IamRolePolicyOutput { + return o.ApplyT(func(v *IamRolePolicy) IamRolePolicy { if v != nil { return *v } - var ret IAMRolePolicy + var ret IamRolePolicy return ret - }).(IAMRolePolicyOutput) + }).(IamRolePolicyOutput) } // Default service strategy (`allow` or `deny`). -func (o IAMRolePolicyPtrOutput) DefaultServiceStrategy() pulumi.StringPtrOutput { - return o.ApplyT(func(v *IAMRolePolicy) *string { +func (o IamRolePolicyPtrOutput) DefaultServiceStrategy() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IamRolePolicy) *string { if v == nil { return nil } @@ -3158,122 +3158,122 @@ func (o IAMRolePolicyPtrOutput) DefaultServiceStrategy() pulumi.StringPtrOutput } // IAM policy services. -func (o IAMRolePolicyPtrOutput) Services() IAMRolePolicyServicesMapOutput { - return o.ApplyT(func(v *IAMRolePolicy) map[string]IAMRolePolicyServices { +func (o IamRolePolicyPtrOutput) Services() IamRolePolicyServicesMapOutput { + return o.ApplyT(func(v *IamRolePolicy) map[string]IamRolePolicyServices { if v == nil { return nil } return v.Services - }).(IAMRolePolicyServicesMapOutput) + }).(IamRolePolicyServicesMapOutput) } -type IAMRolePolicyServices struct { +type IamRolePolicyServices struct { // List of IAM service rules (if type is `rules`). - Rules []IAMRolePolicyServicesRule `pulumi:"rules"` + Rules []IamRolePolicyServicesRule `pulumi:"rules"` // Service type (`rules`, `allow`, or `deny`). Type *string `pulumi:"type"` } -// IAMRolePolicyServicesInput is an input type that accepts IAMRolePolicyServicesArgs and IAMRolePolicyServicesOutput values. -// You can construct a concrete instance of `IAMRolePolicyServicesInput` via: +// IamRolePolicyServicesInput is an input type that accepts IamRolePolicyServicesArgs and IamRolePolicyServicesOutput values. +// You can construct a concrete instance of `IamRolePolicyServicesInput` via: // -// IAMRolePolicyServicesArgs{...} -type IAMRolePolicyServicesInput interface { +// IamRolePolicyServicesArgs{...} +type IamRolePolicyServicesInput interface { pulumi.Input - ToIAMRolePolicyServicesOutput() IAMRolePolicyServicesOutput - ToIAMRolePolicyServicesOutputWithContext(context.Context) IAMRolePolicyServicesOutput + ToIamRolePolicyServicesOutput() IamRolePolicyServicesOutput + ToIamRolePolicyServicesOutputWithContext(context.Context) IamRolePolicyServicesOutput } -type IAMRolePolicyServicesArgs struct { +type IamRolePolicyServicesArgs struct { // List of IAM service rules (if type is `rules`). - Rules IAMRolePolicyServicesRuleArrayInput `pulumi:"rules"` + Rules IamRolePolicyServicesRuleArrayInput `pulumi:"rules"` // Service type (`rules`, `allow`, or `deny`). Type pulumi.StringPtrInput `pulumi:"type"` } -func (IAMRolePolicyServicesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*IAMRolePolicyServices)(nil)).Elem() +func (IamRolePolicyServicesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IamRolePolicyServices)(nil)).Elem() } -func (i IAMRolePolicyServicesArgs) ToIAMRolePolicyServicesOutput() IAMRolePolicyServicesOutput { - return i.ToIAMRolePolicyServicesOutputWithContext(context.Background()) +func (i IamRolePolicyServicesArgs) ToIamRolePolicyServicesOutput() IamRolePolicyServicesOutput { + return i.ToIamRolePolicyServicesOutputWithContext(context.Background()) } -func (i IAMRolePolicyServicesArgs) ToIAMRolePolicyServicesOutputWithContext(ctx context.Context) IAMRolePolicyServicesOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMRolePolicyServicesOutput) +func (i IamRolePolicyServicesArgs) ToIamRolePolicyServicesOutputWithContext(ctx context.Context) IamRolePolicyServicesOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamRolePolicyServicesOutput) } -// IAMRolePolicyServicesMapInput is an input type that accepts IAMRolePolicyServicesMap and IAMRolePolicyServicesMapOutput values. -// You can construct a concrete instance of `IAMRolePolicyServicesMapInput` via: +// IamRolePolicyServicesMapInput is an input type that accepts IamRolePolicyServicesMap and IamRolePolicyServicesMapOutput values. +// You can construct a concrete instance of `IamRolePolicyServicesMapInput` via: // -// IAMRolePolicyServicesMap{ "key": IAMRolePolicyServicesArgs{...} } -type IAMRolePolicyServicesMapInput interface { +// IamRolePolicyServicesMap{ "key": IamRolePolicyServicesArgs{...} } +type IamRolePolicyServicesMapInput interface { pulumi.Input - ToIAMRolePolicyServicesMapOutput() IAMRolePolicyServicesMapOutput - ToIAMRolePolicyServicesMapOutputWithContext(context.Context) IAMRolePolicyServicesMapOutput + ToIamRolePolicyServicesMapOutput() IamRolePolicyServicesMapOutput + ToIamRolePolicyServicesMapOutputWithContext(context.Context) IamRolePolicyServicesMapOutput } -type IAMRolePolicyServicesMap map[string]IAMRolePolicyServicesInput +type IamRolePolicyServicesMap map[string]IamRolePolicyServicesInput -func (IAMRolePolicyServicesMap) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]IAMRolePolicyServices)(nil)).Elem() +func (IamRolePolicyServicesMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]IamRolePolicyServices)(nil)).Elem() } -func (i IAMRolePolicyServicesMap) ToIAMRolePolicyServicesMapOutput() IAMRolePolicyServicesMapOutput { - return i.ToIAMRolePolicyServicesMapOutputWithContext(context.Background()) +func (i IamRolePolicyServicesMap) ToIamRolePolicyServicesMapOutput() IamRolePolicyServicesMapOutput { + return i.ToIamRolePolicyServicesMapOutputWithContext(context.Background()) } -func (i IAMRolePolicyServicesMap) ToIAMRolePolicyServicesMapOutputWithContext(ctx context.Context) IAMRolePolicyServicesMapOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMRolePolicyServicesMapOutput) +func (i IamRolePolicyServicesMap) ToIamRolePolicyServicesMapOutputWithContext(ctx context.Context) IamRolePolicyServicesMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamRolePolicyServicesMapOutput) } -type IAMRolePolicyServicesOutput struct{ *pulumi.OutputState } +type IamRolePolicyServicesOutput struct{ *pulumi.OutputState } -func (IAMRolePolicyServicesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*IAMRolePolicyServices)(nil)).Elem() +func (IamRolePolicyServicesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IamRolePolicyServices)(nil)).Elem() } -func (o IAMRolePolicyServicesOutput) ToIAMRolePolicyServicesOutput() IAMRolePolicyServicesOutput { +func (o IamRolePolicyServicesOutput) ToIamRolePolicyServicesOutput() IamRolePolicyServicesOutput { return o } -func (o IAMRolePolicyServicesOutput) ToIAMRolePolicyServicesOutputWithContext(ctx context.Context) IAMRolePolicyServicesOutput { +func (o IamRolePolicyServicesOutput) ToIamRolePolicyServicesOutputWithContext(ctx context.Context) IamRolePolicyServicesOutput { return o } // List of IAM service rules (if type is `rules`). -func (o IAMRolePolicyServicesOutput) Rules() IAMRolePolicyServicesRuleArrayOutput { - return o.ApplyT(func(v IAMRolePolicyServices) []IAMRolePolicyServicesRule { return v.Rules }).(IAMRolePolicyServicesRuleArrayOutput) +func (o IamRolePolicyServicesOutput) Rules() IamRolePolicyServicesRuleArrayOutput { + return o.ApplyT(func(v IamRolePolicyServices) []IamRolePolicyServicesRule { return v.Rules }).(IamRolePolicyServicesRuleArrayOutput) } // Service type (`rules`, `allow`, or `deny`). -func (o IAMRolePolicyServicesOutput) Type() pulumi.StringPtrOutput { - return o.ApplyT(func(v IAMRolePolicyServices) *string { return v.Type }).(pulumi.StringPtrOutput) +func (o IamRolePolicyServicesOutput) Type() pulumi.StringPtrOutput { + return o.ApplyT(func(v IamRolePolicyServices) *string { return v.Type }).(pulumi.StringPtrOutput) } -type IAMRolePolicyServicesMapOutput struct{ *pulumi.OutputState } +type IamRolePolicyServicesMapOutput struct{ *pulumi.OutputState } -func (IAMRolePolicyServicesMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]IAMRolePolicyServices)(nil)).Elem() +func (IamRolePolicyServicesMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]IamRolePolicyServices)(nil)).Elem() } -func (o IAMRolePolicyServicesMapOutput) ToIAMRolePolicyServicesMapOutput() IAMRolePolicyServicesMapOutput { +func (o IamRolePolicyServicesMapOutput) ToIamRolePolicyServicesMapOutput() IamRolePolicyServicesMapOutput { return o } -func (o IAMRolePolicyServicesMapOutput) ToIAMRolePolicyServicesMapOutputWithContext(ctx context.Context) IAMRolePolicyServicesMapOutput { +func (o IamRolePolicyServicesMapOutput) ToIamRolePolicyServicesMapOutputWithContext(ctx context.Context) IamRolePolicyServicesMapOutput { return o } -func (o IAMRolePolicyServicesMapOutput) MapIndex(k pulumi.StringInput) IAMRolePolicyServicesOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) IAMRolePolicyServices { - return vs[0].(map[string]IAMRolePolicyServices)[vs[1].(string)] - }).(IAMRolePolicyServicesOutput) +func (o IamRolePolicyServicesMapOutput) MapIndex(k pulumi.StringInput) IamRolePolicyServicesOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) IamRolePolicyServices { + return vs[0].(map[string]IamRolePolicyServices)[vs[1].(string)] + }).(IamRolePolicyServicesOutput) } -type IAMRolePolicyServicesRule struct { +type IamRolePolicyServicesRule struct { // IAM policy rule action (`allow` or `deny`). Action *string `pulumi:"action"` // IAM policy rule expression. @@ -3282,18 +3282,18 @@ type IAMRolePolicyServicesRule struct { Resources []string `pulumi:"resources"` } -// IAMRolePolicyServicesRuleInput is an input type that accepts IAMRolePolicyServicesRuleArgs and IAMRolePolicyServicesRuleOutput values. -// You can construct a concrete instance of `IAMRolePolicyServicesRuleInput` via: +// IamRolePolicyServicesRuleInput is an input type that accepts IamRolePolicyServicesRuleArgs and IamRolePolicyServicesRuleOutput values. +// You can construct a concrete instance of `IamRolePolicyServicesRuleInput` via: // -// IAMRolePolicyServicesRuleArgs{...} -type IAMRolePolicyServicesRuleInput interface { +// IamRolePolicyServicesRuleArgs{...} +type IamRolePolicyServicesRuleInput interface { pulumi.Input - ToIAMRolePolicyServicesRuleOutput() IAMRolePolicyServicesRuleOutput - ToIAMRolePolicyServicesRuleOutputWithContext(context.Context) IAMRolePolicyServicesRuleOutput + ToIamRolePolicyServicesRuleOutput() IamRolePolicyServicesRuleOutput + ToIamRolePolicyServicesRuleOutputWithContext(context.Context) IamRolePolicyServicesRuleOutput } -type IAMRolePolicyServicesRuleArgs struct { +type IamRolePolicyServicesRuleArgs struct { // IAM policy rule action (`allow` or `deny`). Action pulumi.StringPtrInput `pulumi:"action"` // IAM policy rule expression. @@ -3302,222 +3302,222 @@ type IAMRolePolicyServicesRuleArgs struct { Resources pulumi.StringArrayInput `pulumi:"resources"` } -func (IAMRolePolicyServicesRuleArgs) ElementType() reflect.Type { - return reflect.TypeOf((*IAMRolePolicyServicesRule)(nil)).Elem() +func (IamRolePolicyServicesRuleArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IamRolePolicyServicesRule)(nil)).Elem() } -func (i IAMRolePolicyServicesRuleArgs) ToIAMRolePolicyServicesRuleOutput() IAMRolePolicyServicesRuleOutput { - return i.ToIAMRolePolicyServicesRuleOutputWithContext(context.Background()) +func (i IamRolePolicyServicesRuleArgs) ToIamRolePolicyServicesRuleOutput() IamRolePolicyServicesRuleOutput { + return i.ToIamRolePolicyServicesRuleOutputWithContext(context.Background()) } -func (i IAMRolePolicyServicesRuleArgs) ToIAMRolePolicyServicesRuleOutputWithContext(ctx context.Context) IAMRolePolicyServicesRuleOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMRolePolicyServicesRuleOutput) +func (i IamRolePolicyServicesRuleArgs) ToIamRolePolicyServicesRuleOutputWithContext(ctx context.Context) IamRolePolicyServicesRuleOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamRolePolicyServicesRuleOutput) } -// IAMRolePolicyServicesRuleArrayInput is an input type that accepts IAMRolePolicyServicesRuleArray and IAMRolePolicyServicesRuleArrayOutput values. -// You can construct a concrete instance of `IAMRolePolicyServicesRuleArrayInput` via: +// IamRolePolicyServicesRuleArrayInput is an input type that accepts IamRolePolicyServicesRuleArray and IamRolePolicyServicesRuleArrayOutput values. +// You can construct a concrete instance of `IamRolePolicyServicesRuleArrayInput` via: // -// IAMRolePolicyServicesRuleArray{ IAMRolePolicyServicesRuleArgs{...} } -type IAMRolePolicyServicesRuleArrayInput interface { +// IamRolePolicyServicesRuleArray{ IamRolePolicyServicesRuleArgs{...} } +type IamRolePolicyServicesRuleArrayInput interface { pulumi.Input - ToIAMRolePolicyServicesRuleArrayOutput() IAMRolePolicyServicesRuleArrayOutput - ToIAMRolePolicyServicesRuleArrayOutputWithContext(context.Context) IAMRolePolicyServicesRuleArrayOutput + ToIamRolePolicyServicesRuleArrayOutput() IamRolePolicyServicesRuleArrayOutput + ToIamRolePolicyServicesRuleArrayOutputWithContext(context.Context) IamRolePolicyServicesRuleArrayOutput } -type IAMRolePolicyServicesRuleArray []IAMRolePolicyServicesRuleInput +type IamRolePolicyServicesRuleArray []IamRolePolicyServicesRuleInput -func (IAMRolePolicyServicesRuleArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]IAMRolePolicyServicesRule)(nil)).Elem() +func (IamRolePolicyServicesRuleArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]IamRolePolicyServicesRule)(nil)).Elem() } -func (i IAMRolePolicyServicesRuleArray) ToIAMRolePolicyServicesRuleArrayOutput() IAMRolePolicyServicesRuleArrayOutput { - return i.ToIAMRolePolicyServicesRuleArrayOutputWithContext(context.Background()) +func (i IamRolePolicyServicesRuleArray) ToIamRolePolicyServicesRuleArrayOutput() IamRolePolicyServicesRuleArrayOutput { + return i.ToIamRolePolicyServicesRuleArrayOutputWithContext(context.Background()) } -func (i IAMRolePolicyServicesRuleArray) ToIAMRolePolicyServicesRuleArrayOutputWithContext(ctx context.Context) IAMRolePolicyServicesRuleArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMRolePolicyServicesRuleArrayOutput) +func (i IamRolePolicyServicesRuleArray) ToIamRolePolicyServicesRuleArrayOutputWithContext(ctx context.Context) IamRolePolicyServicesRuleArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamRolePolicyServicesRuleArrayOutput) } -type IAMRolePolicyServicesRuleOutput struct{ *pulumi.OutputState } +type IamRolePolicyServicesRuleOutput struct{ *pulumi.OutputState } -func (IAMRolePolicyServicesRuleOutput) ElementType() reflect.Type { - return reflect.TypeOf((*IAMRolePolicyServicesRule)(nil)).Elem() +func (IamRolePolicyServicesRuleOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IamRolePolicyServicesRule)(nil)).Elem() } -func (o IAMRolePolicyServicesRuleOutput) ToIAMRolePolicyServicesRuleOutput() IAMRolePolicyServicesRuleOutput { +func (o IamRolePolicyServicesRuleOutput) ToIamRolePolicyServicesRuleOutput() IamRolePolicyServicesRuleOutput { return o } -func (o IAMRolePolicyServicesRuleOutput) ToIAMRolePolicyServicesRuleOutputWithContext(ctx context.Context) IAMRolePolicyServicesRuleOutput { +func (o IamRolePolicyServicesRuleOutput) ToIamRolePolicyServicesRuleOutputWithContext(ctx context.Context) IamRolePolicyServicesRuleOutput { return o } // IAM policy rule action (`allow` or `deny`). -func (o IAMRolePolicyServicesRuleOutput) Action() pulumi.StringPtrOutput { - return o.ApplyT(func(v IAMRolePolicyServicesRule) *string { return v.Action }).(pulumi.StringPtrOutput) +func (o IamRolePolicyServicesRuleOutput) Action() pulumi.StringPtrOutput { + return o.ApplyT(func(v IamRolePolicyServicesRule) *string { return v.Action }).(pulumi.StringPtrOutput) } // IAM policy rule expression. -func (o IAMRolePolicyServicesRuleOutput) Expression() pulumi.StringPtrOutput { - return o.ApplyT(func(v IAMRolePolicyServicesRule) *string { return v.Expression }).(pulumi.StringPtrOutput) +func (o IamRolePolicyServicesRuleOutput) Expression() pulumi.StringPtrOutput { + return o.ApplyT(func(v IamRolePolicyServicesRule) *string { return v.Expression }).(pulumi.StringPtrOutput) } // Deprecated: This field is not suported. Specify resources using CEL expressions. -func (o IAMRolePolicyServicesRuleOutput) Resources() pulumi.StringArrayOutput { - return o.ApplyT(func(v IAMRolePolicyServicesRule) []string { return v.Resources }).(pulumi.StringArrayOutput) +func (o IamRolePolicyServicesRuleOutput) Resources() pulumi.StringArrayOutput { + return o.ApplyT(func(v IamRolePolicyServicesRule) []string { return v.Resources }).(pulumi.StringArrayOutput) } -type IAMRolePolicyServicesRuleArrayOutput struct{ *pulumi.OutputState } +type IamRolePolicyServicesRuleArrayOutput struct{ *pulumi.OutputState } -func (IAMRolePolicyServicesRuleArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]IAMRolePolicyServicesRule)(nil)).Elem() +func (IamRolePolicyServicesRuleArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]IamRolePolicyServicesRule)(nil)).Elem() } -func (o IAMRolePolicyServicesRuleArrayOutput) ToIAMRolePolicyServicesRuleArrayOutput() IAMRolePolicyServicesRuleArrayOutput { +func (o IamRolePolicyServicesRuleArrayOutput) ToIamRolePolicyServicesRuleArrayOutput() IamRolePolicyServicesRuleArrayOutput { return o } -func (o IAMRolePolicyServicesRuleArrayOutput) ToIAMRolePolicyServicesRuleArrayOutputWithContext(ctx context.Context) IAMRolePolicyServicesRuleArrayOutput { +func (o IamRolePolicyServicesRuleArrayOutput) ToIamRolePolicyServicesRuleArrayOutputWithContext(ctx context.Context) IamRolePolicyServicesRuleArrayOutput { return o } -func (o IAMRolePolicyServicesRuleArrayOutput) Index(i pulumi.IntInput) IAMRolePolicyServicesRuleOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) IAMRolePolicyServicesRule { - return vs[0].([]IAMRolePolicyServicesRule)[vs[1].(int)] - }).(IAMRolePolicyServicesRuleOutput) +func (o IamRolePolicyServicesRuleArrayOutput) Index(i pulumi.IntInput) IamRolePolicyServicesRuleOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) IamRolePolicyServicesRule { + return vs[0].([]IamRolePolicyServicesRule)[vs[1].(int)] + }).(IamRolePolicyServicesRuleOutput) } -type IAMRoleTimeouts struct { +type IamRoleTimeouts struct { // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. Read *string `pulumi:"read"` } -// IAMRoleTimeoutsInput is an input type that accepts IAMRoleTimeoutsArgs and IAMRoleTimeoutsOutput values. -// You can construct a concrete instance of `IAMRoleTimeoutsInput` via: +// IamRoleTimeoutsInput is an input type that accepts IamRoleTimeoutsArgs and IamRoleTimeoutsOutput values. +// You can construct a concrete instance of `IamRoleTimeoutsInput` via: // -// IAMRoleTimeoutsArgs{...} -type IAMRoleTimeoutsInput interface { +// IamRoleTimeoutsArgs{...} +type IamRoleTimeoutsInput interface { pulumi.Input - ToIAMRoleTimeoutsOutput() IAMRoleTimeoutsOutput - ToIAMRoleTimeoutsOutputWithContext(context.Context) IAMRoleTimeoutsOutput + ToIamRoleTimeoutsOutput() IamRoleTimeoutsOutput + ToIamRoleTimeoutsOutputWithContext(context.Context) IamRoleTimeoutsOutput } -type IAMRoleTimeoutsArgs struct { +type IamRoleTimeoutsArgs struct { // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. Read pulumi.StringPtrInput `pulumi:"read"` } -func (IAMRoleTimeoutsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*IAMRoleTimeouts)(nil)).Elem() +func (IamRoleTimeoutsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IamRoleTimeouts)(nil)).Elem() } -func (i IAMRoleTimeoutsArgs) ToIAMRoleTimeoutsOutput() IAMRoleTimeoutsOutput { - return i.ToIAMRoleTimeoutsOutputWithContext(context.Background()) +func (i IamRoleTimeoutsArgs) ToIamRoleTimeoutsOutput() IamRoleTimeoutsOutput { + return i.ToIamRoleTimeoutsOutputWithContext(context.Background()) } -func (i IAMRoleTimeoutsArgs) ToIAMRoleTimeoutsOutputWithContext(ctx context.Context) IAMRoleTimeoutsOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMRoleTimeoutsOutput) +func (i IamRoleTimeoutsArgs) ToIamRoleTimeoutsOutputWithContext(ctx context.Context) IamRoleTimeoutsOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamRoleTimeoutsOutput) } -func (i IAMRoleTimeoutsArgs) ToIAMRoleTimeoutsPtrOutput() IAMRoleTimeoutsPtrOutput { - return i.ToIAMRoleTimeoutsPtrOutputWithContext(context.Background()) +func (i IamRoleTimeoutsArgs) ToIamRoleTimeoutsPtrOutput() IamRoleTimeoutsPtrOutput { + return i.ToIamRoleTimeoutsPtrOutputWithContext(context.Background()) } -func (i IAMRoleTimeoutsArgs) ToIAMRoleTimeoutsPtrOutputWithContext(ctx context.Context) IAMRoleTimeoutsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMRoleTimeoutsOutput).ToIAMRoleTimeoutsPtrOutputWithContext(ctx) +func (i IamRoleTimeoutsArgs) ToIamRoleTimeoutsPtrOutputWithContext(ctx context.Context) IamRoleTimeoutsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamRoleTimeoutsOutput).ToIamRoleTimeoutsPtrOutputWithContext(ctx) } -// IAMRoleTimeoutsPtrInput is an input type that accepts IAMRoleTimeoutsArgs, IAMRoleTimeoutsPtr and IAMRoleTimeoutsPtrOutput values. -// You can construct a concrete instance of `IAMRoleTimeoutsPtrInput` via: +// IamRoleTimeoutsPtrInput is an input type that accepts IamRoleTimeoutsArgs, IamRoleTimeoutsPtr and IamRoleTimeoutsPtrOutput values. +// You can construct a concrete instance of `IamRoleTimeoutsPtrInput` via: // -// IAMRoleTimeoutsArgs{...} +// IamRoleTimeoutsArgs{...} // // or: // // nil -type IAMRoleTimeoutsPtrInput interface { +type IamRoleTimeoutsPtrInput interface { pulumi.Input - ToIAMRoleTimeoutsPtrOutput() IAMRoleTimeoutsPtrOutput - ToIAMRoleTimeoutsPtrOutputWithContext(context.Context) IAMRoleTimeoutsPtrOutput + ToIamRoleTimeoutsPtrOutput() IamRoleTimeoutsPtrOutput + ToIamRoleTimeoutsPtrOutputWithContext(context.Context) IamRoleTimeoutsPtrOutput } -type iamroleTimeoutsPtrType IAMRoleTimeoutsArgs +type iamRoleTimeoutsPtrType IamRoleTimeoutsArgs -func IAMRoleTimeoutsPtr(v *IAMRoleTimeoutsArgs) IAMRoleTimeoutsPtrInput { - return (*iamroleTimeoutsPtrType)(v) +func IamRoleTimeoutsPtr(v *IamRoleTimeoutsArgs) IamRoleTimeoutsPtrInput { + return (*iamRoleTimeoutsPtrType)(v) } -func (*iamroleTimeoutsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**IAMRoleTimeouts)(nil)).Elem() +func (*iamRoleTimeoutsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**IamRoleTimeouts)(nil)).Elem() } -func (i *iamroleTimeoutsPtrType) ToIAMRoleTimeoutsPtrOutput() IAMRoleTimeoutsPtrOutput { - return i.ToIAMRoleTimeoutsPtrOutputWithContext(context.Background()) +func (i *iamRoleTimeoutsPtrType) ToIamRoleTimeoutsPtrOutput() IamRoleTimeoutsPtrOutput { + return i.ToIamRoleTimeoutsPtrOutputWithContext(context.Background()) } -func (i *iamroleTimeoutsPtrType) ToIAMRoleTimeoutsPtrOutputWithContext(ctx context.Context) IAMRoleTimeoutsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(IAMRoleTimeoutsPtrOutput) +func (i *iamRoleTimeoutsPtrType) ToIamRoleTimeoutsPtrOutputWithContext(ctx context.Context) IamRoleTimeoutsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IamRoleTimeoutsPtrOutput) } -type IAMRoleTimeoutsOutput struct{ *pulumi.OutputState } +type IamRoleTimeoutsOutput struct{ *pulumi.OutputState } -func (IAMRoleTimeoutsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*IAMRoleTimeouts)(nil)).Elem() +func (IamRoleTimeoutsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IamRoleTimeouts)(nil)).Elem() } -func (o IAMRoleTimeoutsOutput) ToIAMRoleTimeoutsOutput() IAMRoleTimeoutsOutput { +func (o IamRoleTimeoutsOutput) ToIamRoleTimeoutsOutput() IamRoleTimeoutsOutput { return o } -func (o IAMRoleTimeoutsOutput) ToIAMRoleTimeoutsOutputWithContext(ctx context.Context) IAMRoleTimeoutsOutput { +func (o IamRoleTimeoutsOutput) ToIamRoleTimeoutsOutputWithContext(ctx context.Context) IamRoleTimeoutsOutput { return o } -func (o IAMRoleTimeoutsOutput) ToIAMRoleTimeoutsPtrOutput() IAMRoleTimeoutsPtrOutput { - return o.ToIAMRoleTimeoutsPtrOutputWithContext(context.Background()) +func (o IamRoleTimeoutsOutput) ToIamRoleTimeoutsPtrOutput() IamRoleTimeoutsPtrOutput { + return o.ToIamRoleTimeoutsPtrOutputWithContext(context.Background()) } -func (o IAMRoleTimeoutsOutput) ToIAMRoleTimeoutsPtrOutputWithContext(ctx context.Context) IAMRoleTimeoutsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v IAMRoleTimeouts) *IAMRoleTimeouts { +func (o IamRoleTimeoutsOutput) ToIamRoleTimeoutsPtrOutputWithContext(ctx context.Context) IamRoleTimeoutsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v IamRoleTimeouts) *IamRoleTimeouts { return &v - }).(IAMRoleTimeoutsPtrOutput) + }).(IamRoleTimeoutsPtrOutput) } // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. -func (o IAMRoleTimeoutsOutput) Read() pulumi.StringPtrOutput { - return o.ApplyT(func(v IAMRoleTimeouts) *string { return v.Read }).(pulumi.StringPtrOutput) +func (o IamRoleTimeoutsOutput) Read() pulumi.StringPtrOutput { + return o.ApplyT(func(v IamRoleTimeouts) *string { return v.Read }).(pulumi.StringPtrOutput) } -type IAMRoleTimeoutsPtrOutput struct{ *pulumi.OutputState } +type IamRoleTimeoutsPtrOutput struct{ *pulumi.OutputState } -func (IAMRoleTimeoutsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**IAMRoleTimeouts)(nil)).Elem() +func (IamRoleTimeoutsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**IamRoleTimeouts)(nil)).Elem() } -func (o IAMRoleTimeoutsPtrOutput) ToIAMRoleTimeoutsPtrOutput() IAMRoleTimeoutsPtrOutput { +func (o IamRoleTimeoutsPtrOutput) ToIamRoleTimeoutsPtrOutput() IamRoleTimeoutsPtrOutput { return o } -func (o IAMRoleTimeoutsPtrOutput) ToIAMRoleTimeoutsPtrOutputWithContext(ctx context.Context) IAMRoleTimeoutsPtrOutput { +func (o IamRoleTimeoutsPtrOutput) ToIamRoleTimeoutsPtrOutputWithContext(ctx context.Context) IamRoleTimeoutsPtrOutput { return o } -func (o IAMRoleTimeoutsPtrOutput) Elem() IAMRoleTimeoutsOutput { - return o.ApplyT(func(v *IAMRoleTimeouts) IAMRoleTimeouts { +func (o IamRoleTimeoutsPtrOutput) Elem() IamRoleTimeoutsOutput { + return o.ApplyT(func(v *IamRoleTimeouts) IamRoleTimeouts { if v != nil { return *v } - var ret IAMRoleTimeouts + var ret IamRoleTimeouts return ret - }).(IAMRoleTimeoutsOutput) + }).(IamRoleTimeoutsOutput) } // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. -func (o IAMRoleTimeoutsPtrOutput) Read() pulumi.StringPtrOutput { - return o.ApplyT(func(v *IAMRoleTimeouts) *string { +func (o IamRoleTimeoutsPtrOutput) Read() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IamRoleTimeouts) *string { if v == nil { return nil } @@ -3649,7 +3649,7 @@ func (o InstancePoolInstanceArrayOutput) Index(i pulumi.IntInput) InstancePoolIn }).(InstancePoolInstanceOutput) } -type NLBServiceHealthcheck struct { +type NlbServiceHealthcheck struct { // The healthcheck interval in seconds (default: `10`). Interval *int `pulumi:"interval"` // The healthcheck mode (`tcp`|`http`|`https`; default: `tcp`). @@ -3666,18 +3666,18 @@ type NLBServiceHealthcheck struct { Uri *string `pulumi:"uri"` } -// NLBServiceHealthcheckInput is an input type that accepts NLBServiceHealthcheckArgs and NLBServiceHealthcheckOutput values. -// You can construct a concrete instance of `NLBServiceHealthcheckInput` via: +// NlbServiceHealthcheckInput is an input type that accepts NlbServiceHealthcheckArgs and NlbServiceHealthcheckOutput values. +// You can construct a concrete instance of `NlbServiceHealthcheckInput` via: // -// NLBServiceHealthcheckArgs{...} -type NLBServiceHealthcheckInput interface { +// NlbServiceHealthcheckArgs{...} +type NlbServiceHealthcheckInput interface { pulumi.Input - ToNLBServiceHealthcheckOutput() NLBServiceHealthcheckOutput - ToNLBServiceHealthcheckOutputWithContext(context.Context) NLBServiceHealthcheckOutput + ToNlbServiceHealthcheckOutput() NlbServiceHealthcheckOutput + ToNlbServiceHealthcheckOutputWithContext(context.Context) NlbServiceHealthcheckOutput } -type NLBServiceHealthcheckArgs struct { +type NlbServiceHealthcheckArgs struct { // The healthcheck interval in seconds (default: `10`). Interval pulumi.IntPtrInput `pulumi:"interval"` // The healthcheck mode (`tcp`|`http`|`https`; default: `tcp`). @@ -3694,113 +3694,113 @@ type NLBServiceHealthcheckArgs struct { Uri pulumi.StringPtrInput `pulumi:"uri"` } -func (NLBServiceHealthcheckArgs) ElementType() reflect.Type { - return reflect.TypeOf((*NLBServiceHealthcheck)(nil)).Elem() +func (NlbServiceHealthcheckArgs) ElementType() reflect.Type { + return reflect.TypeOf((*NlbServiceHealthcheck)(nil)).Elem() } -func (i NLBServiceHealthcheckArgs) ToNLBServiceHealthcheckOutput() NLBServiceHealthcheckOutput { - return i.ToNLBServiceHealthcheckOutputWithContext(context.Background()) +func (i NlbServiceHealthcheckArgs) ToNlbServiceHealthcheckOutput() NlbServiceHealthcheckOutput { + return i.ToNlbServiceHealthcheckOutputWithContext(context.Background()) } -func (i NLBServiceHealthcheckArgs) ToNLBServiceHealthcheckOutputWithContext(ctx context.Context) NLBServiceHealthcheckOutput { - return pulumi.ToOutputWithContext(ctx, i).(NLBServiceHealthcheckOutput) +func (i NlbServiceHealthcheckArgs) ToNlbServiceHealthcheckOutputWithContext(ctx context.Context) NlbServiceHealthcheckOutput { + return pulumi.ToOutputWithContext(ctx, i).(NlbServiceHealthcheckOutput) } -// NLBServiceHealthcheckArrayInput is an input type that accepts NLBServiceHealthcheckArray and NLBServiceHealthcheckArrayOutput values. -// You can construct a concrete instance of `NLBServiceHealthcheckArrayInput` via: +// NlbServiceHealthcheckArrayInput is an input type that accepts NlbServiceHealthcheckArray and NlbServiceHealthcheckArrayOutput values. +// You can construct a concrete instance of `NlbServiceHealthcheckArrayInput` via: // -// NLBServiceHealthcheckArray{ NLBServiceHealthcheckArgs{...} } -type NLBServiceHealthcheckArrayInput interface { +// NlbServiceHealthcheckArray{ NlbServiceHealthcheckArgs{...} } +type NlbServiceHealthcheckArrayInput interface { pulumi.Input - ToNLBServiceHealthcheckArrayOutput() NLBServiceHealthcheckArrayOutput - ToNLBServiceHealthcheckArrayOutputWithContext(context.Context) NLBServiceHealthcheckArrayOutput + ToNlbServiceHealthcheckArrayOutput() NlbServiceHealthcheckArrayOutput + ToNlbServiceHealthcheckArrayOutputWithContext(context.Context) NlbServiceHealthcheckArrayOutput } -type NLBServiceHealthcheckArray []NLBServiceHealthcheckInput +type NlbServiceHealthcheckArray []NlbServiceHealthcheckInput -func (NLBServiceHealthcheckArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]NLBServiceHealthcheck)(nil)).Elem() +func (NlbServiceHealthcheckArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]NlbServiceHealthcheck)(nil)).Elem() } -func (i NLBServiceHealthcheckArray) ToNLBServiceHealthcheckArrayOutput() NLBServiceHealthcheckArrayOutput { - return i.ToNLBServiceHealthcheckArrayOutputWithContext(context.Background()) +func (i NlbServiceHealthcheckArray) ToNlbServiceHealthcheckArrayOutput() NlbServiceHealthcheckArrayOutput { + return i.ToNlbServiceHealthcheckArrayOutputWithContext(context.Background()) } -func (i NLBServiceHealthcheckArray) ToNLBServiceHealthcheckArrayOutputWithContext(ctx context.Context) NLBServiceHealthcheckArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(NLBServiceHealthcheckArrayOutput) +func (i NlbServiceHealthcheckArray) ToNlbServiceHealthcheckArrayOutputWithContext(ctx context.Context) NlbServiceHealthcheckArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(NlbServiceHealthcheckArrayOutput) } -type NLBServiceHealthcheckOutput struct{ *pulumi.OutputState } +type NlbServiceHealthcheckOutput struct{ *pulumi.OutputState } -func (NLBServiceHealthcheckOutput) ElementType() reflect.Type { - return reflect.TypeOf((*NLBServiceHealthcheck)(nil)).Elem() +func (NlbServiceHealthcheckOutput) ElementType() reflect.Type { + return reflect.TypeOf((*NlbServiceHealthcheck)(nil)).Elem() } -func (o NLBServiceHealthcheckOutput) ToNLBServiceHealthcheckOutput() NLBServiceHealthcheckOutput { +func (o NlbServiceHealthcheckOutput) ToNlbServiceHealthcheckOutput() NlbServiceHealthcheckOutput { return o } -func (o NLBServiceHealthcheckOutput) ToNLBServiceHealthcheckOutputWithContext(ctx context.Context) NLBServiceHealthcheckOutput { +func (o NlbServiceHealthcheckOutput) ToNlbServiceHealthcheckOutputWithContext(ctx context.Context) NlbServiceHealthcheckOutput { return o } // The healthcheck interval in seconds (default: `10`). -func (o NLBServiceHealthcheckOutput) Interval() pulumi.IntPtrOutput { - return o.ApplyT(func(v NLBServiceHealthcheck) *int { return v.Interval }).(pulumi.IntPtrOutput) +func (o NlbServiceHealthcheckOutput) Interval() pulumi.IntPtrOutput { + return o.ApplyT(func(v NlbServiceHealthcheck) *int { return v.Interval }).(pulumi.IntPtrOutput) } // The healthcheck mode (`tcp`|`http`|`https`; default: `tcp`). -func (o NLBServiceHealthcheckOutput) Mode() pulumi.StringPtrOutput { - return o.ApplyT(func(v NLBServiceHealthcheck) *string { return v.Mode }).(pulumi.StringPtrOutput) +func (o NlbServiceHealthcheckOutput) Mode() pulumi.StringPtrOutput { + return o.ApplyT(func(v NlbServiceHealthcheck) *string { return v.Mode }).(pulumi.StringPtrOutput) } // The NLB service (TCP/UDP) port. -func (o NLBServiceHealthcheckOutput) Port() pulumi.IntOutput { - return o.ApplyT(func(v NLBServiceHealthcheck) int { return v.Port }).(pulumi.IntOutput) +func (o NlbServiceHealthcheckOutput) Port() pulumi.IntOutput { + return o.ApplyT(func(v NlbServiceHealthcheck) int { return v.Port }).(pulumi.IntOutput) } // The healthcheck retries (default: `1`). -func (o NLBServiceHealthcheckOutput) Retries() pulumi.IntPtrOutput { - return o.ApplyT(func(v NLBServiceHealthcheck) *int { return v.Retries }).(pulumi.IntPtrOutput) +func (o NlbServiceHealthcheckOutput) Retries() pulumi.IntPtrOutput { + return o.ApplyT(func(v NlbServiceHealthcheck) *int { return v.Retries }).(pulumi.IntPtrOutput) } // The healthcheck timeout (seconds; default: `5`). -func (o NLBServiceHealthcheckOutput) Timeout() pulumi.IntPtrOutput { - return o.ApplyT(func(v NLBServiceHealthcheck) *int { return v.Timeout }).(pulumi.IntPtrOutput) +func (o NlbServiceHealthcheckOutput) Timeout() pulumi.IntPtrOutput { + return o.ApplyT(func(v NlbServiceHealthcheck) *int { return v.Timeout }).(pulumi.IntPtrOutput) } // The healthcheck TLS SNI server name (only if `mode` is `https`). -func (o NLBServiceHealthcheckOutput) TlsSni() pulumi.StringPtrOutput { - return o.ApplyT(func(v NLBServiceHealthcheck) *string { return v.TlsSni }).(pulumi.StringPtrOutput) +func (o NlbServiceHealthcheckOutput) TlsSni() pulumi.StringPtrOutput { + return o.ApplyT(func(v NlbServiceHealthcheck) *string { return v.TlsSni }).(pulumi.StringPtrOutput) } // The healthcheck URI (must be set only if `mode` is `http(s)`). -func (o NLBServiceHealthcheckOutput) Uri() pulumi.StringPtrOutput { - return o.ApplyT(func(v NLBServiceHealthcheck) *string { return v.Uri }).(pulumi.StringPtrOutput) +func (o NlbServiceHealthcheckOutput) Uri() pulumi.StringPtrOutput { + return o.ApplyT(func(v NlbServiceHealthcheck) *string { return v.Uri }).(pulumi.StringPtrOutput) } -type NLBServiceHealthcheckArrayOutput struct{ *pulumi.OutputState } +type NlbServiceHealthcheckArrayOutput struct{ *pulumi.OutputState } -func (NLBServiceHealthcheckArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]NLBServiceHealthcheck)(nil)).Elem() +func (NlbServiceHealthcheckArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]NlbServiceHealthcheck)(nil)).Elem() } -func (o NLBServiceHealthcheckArrayOutput) ToNLBServiceHealthcheckArrayOutput() NLBServiceHealthcheckArrayOutput { +func (o NlbServiceHealthcheckArrayOutput) ToNlbServiceHealthcheckArrayOutput() NlbServiceHealthcheckArrayOutput { return o } -func (o NLBServiceHealthcheckArrayOutput) ToNLBServiceHealthcheckArrayOutputWithContext(ctx context.Context) NLBServiceHealthcheckArrayOutput { +func (o NlbServiceHealthcheckArrayOutput) ToNlbServiceHealthcheckArrayOutputWithContext(ctx context.Context) NlbServiceHealthcheckArrayOutput { return o } -func (o NLBServiceHealthcheckArrayOutput) Index(i pulumi.IntInput) NLBServiceHealthcheckOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) NLBServiceHealthcheck { - return vs[0].([]NLBServiceHealthcheck)[vs[1].(int)] - }).(NLBServiceHealthcheckOutput) +func (o NlbServiceHealthcheckArrayOutput) Index(i pulumi.IntInput) NlbServiceHealthcheckOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) NlbServiceHealthcheck { + return vs[0].([]NlbServiceHealthcheck)[vs[1].(int)] + }).(NlbServiceHealthcheckOutput) } -type SKSClusterOidc struct { +type SksClusterOidc struct { // The OpenID client ID. ClientId string `pulumi:"clientId"` // An OpenID JWT claim to use as the user's group. @@ -3817,18 +3817,18 @@ type SKSClusterOidc struct { UsernamePrefix *string `pulumi:"usernamePrefix"` } -// SKSClusterOidcInput is an input type that accepts SKSClusterOidcArgs and SKSClusterOidcOutput values. -// You can construct a concrete instance of `SKSClusterOidcInput` via: +// SksClusterOidcInput is an input type that accepts SksClusterOidcArgs and SksClusterOidcOutput values. +// You can construct a concrete instance of `SksClusterOidcInput` via: // -// SKSClusterOidcArgs{...} -type SKSClusterOidcInput interface { +// SksClusterOidcArgs{...} +type SksClusterOidcInput interface { pulumi.Input - ToSKSClusterOidcOutput() SKSClusterOidcOutput - ToSKSClusterOidcOutputWithContext(context.Context) SKSClusterOidcOutput + ToSksClusterOidcOutput() SksClusterOidcOutput + ToSksClusterOidcOutputWithContext(context.Context) SksClusterOidcOutput } -type SKSClusterOidcArgs struct { +type SksClusterOidcArgs struct { // The OpenID client ID. ClientId pulumi.StringInput `pulumi:"clientId"` // An OpenID JWT claim to use as the user's group. @@ -3845,145 +3845,145 @@ type SKSClusterOidcArgs struct { UsernamePrefix pulumi.StringPtrInput `pulumi:"usernamePrefix"` } -func (SKSClusterOidcArgs) ElementType() reflect.Type { - return reflect.TypeOf((*SKSClusterOidc)(nil)).Elem() +func (SksClusterOidcArgs) ElementType() reflect.Type { + return reflect.TypeOf((*SksClusterOidc)(nil)).Elem() } -func (i SKSClusterOidcArgs) ToSKSClusterOidcOutput() SKSClusterOidcOutput { - return i.ToSKSClusterOidcOutputWithContext(context.Background()) +func (i SksClusterOidcArgs) ToSksClusterOidcOutput() SksClusterOidcOutput { + return i.ToSksClusterOidcOutputWithContext(context.Background()) } -func (i SKSClusterOidcArgs) ToSKSClusterOidcOutputWithContext(ctx context.Context) SKSClusterOidcOutput { - return pulumi.ToOutputWithContext(ctx, i).(SKSClusterOidcOutput) +func (i SksClusterOidcArgs) ToSksClusterOidcOutputWithContext(ctx context.Context) SksClusterOidcOutput { + return pulumi.ToOutputWithContext(ctx, i).(SksClusterOidcOutput) } -func (i SKSClusterOidcArgs) ToSKSClusterOidcPtrOutput() SKSClusterOidcPtrOutput { - return i.ToSKSClusterOidcPtrOutputWithContext(context.Background()) +func (i SksClusterOidcArgs) ToSksClusterOidcPtrOutput() SksClusterOidcPtrOutput { + return i.ToSksClusterOidcPtrOutputWithContext(context.Background()) } -func (i SKSClusterOidcArgs) ToSKSClusterOidcPtrOutputWithContext(ctx context.Context) SKSClusterOidcPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(SKSClusterOidcOutput).ToSKSClusterOidcPtrOutputWithContext(ctx) +func (i SksClusterOidcArgs) ToSksClusterOidcPtrOutputWithContext(ctx context.Context) SksClusterOidcPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(SksClusterOidcOutput).ToSksClusterOidcPtrOutputWithContext(ctx) } -// SKSClusterOidcPtrInput is an input type that accepts SKSClusterOidcArgs, SKSClusterOidcPtr and SKSClusterOidcPtrOutput values. -// You can construct a concrete instance of `SKSClusterOidcPtrInput` via: +// SksClusterOidcPtrInput is an input type that accepts SksClusterOidcArgs, SksClusterOidcPtr and SksClusterOidcPtrOutput values. +// You can construct a concrete instance of `SksClusterOidcPtrInput` via: // -// SKSClusterOidcArgs{...} +// SksClusterOidcArgs{...} // // or: // // nil -type SKSClusterOidcPtrInput interface { +type SksClusterOidcPtrInput interface { pulumi.Input - ToSKSClusterOidcPtrOutput() SKSClusterOidcPtrOutput - ToSKSClusterOidcPtrOutputWithContext(context.Context) SKSClusterOidcPtrOutput + ToSksClusterOidcPtrOutput() SksClusterOidcPtrOutput + ToSksClusterOidcPtrOutputWithContext(context.Context) SksClusterOidcPtrOutput } -type sksclusterOidcPtrType SKSClusterOidcArgs +type sksClusterOidcPtrType SksClusterOidcArgs -func SKSClusterOidcPtr(v *SKSClusterOidcArgs) SKSClusterOidcPtrInput { - return (*sksclusterOidcPtrType)(v) +func SksClusterOidcPtr(v *SksClusterOidcArgs) SksClusterOidcPtrInput { + return (*sksClusterOidcPtrType)(v) } -func (*sksclusterOidcPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**SKSClusterOidc)(nil)).Elem() +func (*sksClusterOidcPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**SksClusterOidc)(nil)).Elem() } -func (i *sksclusterOidcPtrType) ToSKSClusterOidcPtrOutput() SKSClusterOidcPtrOutput { - return i.ToSKSClusterOidcPtrOutputWithContext(context.Background()) +func (i *sksClusterOidcPtrType) ToSksClusterOidcPtrOutput() SksClusterOidcPtrOutput { + return i.ToSksClusterOidcPtrOutputWithContext(context.Background()) } -func (i *sksclusterOidcPtrType) ToSKSClusterOidcPtrOutputWithContext(ctx context.Context) SKSClusterOidcPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(SKSClusterOidcPtrOutput) +func (i *sksClusterOidcPtrType) ToSksClusterOidcPtrOutputWithContext(ctx context.Context) SksClusterOidcPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(SksClusterOidcPtrOutput) } -type SKSClusterOidcOutput struct{ *pulumi.OutputState } +type SksClusterOidcOutput struct{ *pulumi.OutputState } -func (SKSClusterOidcOutput) ElementType() reflect.Type { - return reflect.TypeOf((*SKSClusterOidc)(nil)).Elem() +func (SksClusterOidcOutput) ElementType() reflect.Type { + return reflect.TypeOf((*SksClusterOidc)(nil)).Elem() } -func (o SKSClusterOidcOutput) ToSKSClusterOidcOutput() SKSClusterOidcOutput { +func (o SksClusterOidcOutput) ToSksClusterOidcOutput() SksClusterOidcOutput { return o } -func (o SKSClusterOidcOutput) ToSKSClusterOidcOutputWithContext(ctx context.Context) SKSClusterOidcOutput { +func (o SksClusterOidcOutput) ToSksClusterOidcOutputWithContext(ctx context.Context) SksClusterOidcOutput { return o } -func (o SKSClusterOidcOutput) ToSKSClusterOidcPtrOutput() SKSClusterOidcPtrOutput { - return o.ToSKSClusterOidcPtrOutputWithContext(context.Background()) +func (o SksClusterOidcOutput) ToSksClusterOidcPtrOutput() SksClusterOidcPtrOutput { + return o.ToSksClusterOidcPtrOutputWithContext(context.Background()) } -func (o SKSClusterOidcOutput) ToSKSClusterOidcPtrOutputWithContext(ctx context.Context) SKSClusterOidcPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v SKSClusterOidc) *SKSClusterOidc { +func (o SksClusterOidcOutput) ToSksClusterOidcPtrOutputWithContext(ctx context.Context) SksClusterOidcPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v SksClusterOidc) *SksClusterOidc { return &v - }).(SKSClusterOidcPtrOutput) + }).(SksClusterOidcPtrOutput) } // The OpenID client ID. -func (o SKSClusterOidcOutput) ClientId() pulumi.StringOutput { - return o.ApplyT(func(v SKSClusterOidc) string { return v.ClientId }).(pulumi.StringOutput) +func (o SksClusterOidcOutput) ClientId() pulumi.StringOutput { + return o.ApplyT(func(v SksClusterOidc) string { return v.ClientId }).(pulumi.StringOutput) } // An OpenID JWT claim to use as the user's group. -func (o SKSClusterOidcOutput) GroupsClaim() pulumi.StringPtrOutput { - return o.ApplyT(func(v SKSClusterOidc) *string { return v.GroupsClaim }).(pulumi.StringPtrOutput) +func (o SksClusterOidcOutput) GroupsClaim() pulumi.StringPtrOutput { + return o.ApplyT(func(v SksClusterOidc) *string { return v.GroupsClaim }).(pulumi.StringPtrOutput) } // An OpenID prefix prepended to group claims. -func (o SKSClusterOidcOutput) GroupsPrefix() pulumi.StringPtrOutput { - return o.ApplyT(func(v SKSClusterOidc) *string { return v.GroupsPrefix }).(pulumi.StringPtrOutput) +func (o SksClusterOidcOutput) GroupsPrefix() pulumi.StringPtrOutput { + return o.ApplyT(func(v SksClusterOidc) *string { return v.GroupsPrefix }).(pulumi.StringPtrOutput) } // The OpenID provider URL. -func (o SKSClusterOidcOutput) IssuerUrl() pulumi.StringOutput { - return o.ApplyT(func(v SKSClusterOidc) string { return v.IssuerUrl }).(pulumi.StringOutput) +func (o SksClusterOidcOutput) IssuerUrl() pulumi.StringOutput { + return o.ApplyT(func(v SksClusterOidc) string { return v.IssuerUrl }).(pulumi.StringOutput) } // A map of key/value pairs that describes a required claim in the OpenID Token. -func (o SKSClusterOidcOutput) RequiredClaim() pulumi.StringMapOutput { - return o.ApplyT(func(v SKSClusterOidc) map[string]string { return v.RequiredClaim }).(pulumi.StringMapOutput) +func (o SksClusterOidcOutput) RequiredClaim() pulumi.StringMapOutput { + return o.ApplyT(func(v SksClusterOidc) map[string]string { return v.RequiredClaim }).(pulumi.StringMapOutput) } // An OpenID JWT claim to use as the user name. -func (o SKSClusterOidcOutput) UsernameClaim() pulumi.StringPtrOutput { - return o.ApplyT(func(v SKSClusterOidc) *string { return v.UsernameClaim }).(pulumi.StringPtrOutput) +func (o SksClusterOidcOutput) UsernameClaim() pulumi.StringPtrOutput { + return o.ApplyT(func(v SksClusterOidc) *string { return v.UsernameClaim }).(pulumi.StringPtrOutput) } // An OpenID prefix prepended to username claims. -func (o SKSClusterOidcOutput) UsernamePrefix() pulumi.StringPtrOutput { - return o.ApplyT(func(v SKSClusterOidc) *string { return v.UsernamePrefix }).(pulumi.StringPtrOutput) +func (o SksClusterOidcOutput) UsernamePrefix() pulumi.StringPtrOutput { + return o.ApplyT(func(v SksClusterOidc) *string { return v.UsernamePrefix }).(pulumi.StringPtrOutput) } -type SKSClusterOidcPtrOutput struct{ *pulumi.OutputState } +type SksClusterOidcPtrOutput struct{ *pulumi.OutputState } -func (SKSClusterOidcPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**SKSClusterOidc)(nil)).Elem() +func (SksClusterOidcPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**SksClusterOidc)(nil)).Elem() } -func (o SKSClusterOidcPtrOutput) ToSKSClusterOidcPtrOutput() SKSClusterOidcPtrOutput { +func (o SksClusterOidcPtrOutput) ToSksClusterOidcPtrOutput() SksClusterOidcPtrOutput { return o } -func (o SKSClusterOidcPtrOutput) ToSKSClusterOidcPtrOutputWithContext(ctx context.Context) SKSClusterOidcPtrOutput { +func (o SksClusterOidcPtrOutput) ToSksClusterOidcPtrOutputWithContext(ctx context.Context) SksClusterOidcPtrOutput { return o } -func (o SKSClusterOidcPtrOutput) Elem() SKSClusterOidcOutput { - return o.ApplyT(func(v *SKSClusterOidc) SKSClusterOidc { +func (o SksClusterOidcPtrOutput) Elem() SksClusterOidcOutput { + return o.ApplyT(func(v *SksClusterOidc) SksClusterOidc { if v != nil { return *v } - var ret SKSClusterOidc + var ret SksClusterOidc return ret - }).(SKSClusterOidcOutput) + }).(SksClusterOidcOutput) } // The OpenID client ID. -func (o SKSClusterOidcPtrOutput) ClientId() pulumi.StringPtrOutput { - return o.ApplyT(func(v *SKSClusterOidc) *string { +func (o SksClusterOidcPtrOutput) ClientId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *SksClusterOidc) *string { if v == nil { return nil } @@ -3992,8 +3992,8 @@ func (o SKSClusterOidcPtrOutput) ClientId() pulumi.StringPtrOutput { } // An OpenID JWT claim to use as the user's group. -func (o SKSClusterOidcPtrOutput) GroupsClaim() pulumi.StringPtrOutput { - return o.ApplyT(func(v *SKSClusterOidc) *string { +func (o SksClusterOidcPtrOutput) GroupsClaim() pulumi.StringPtrOutput { + return o.ApplyT(func(v *SksClusterOidc) *string { if v == nil { return nil } @@ -4002,8 +4002,8 @@ func (o SKSClusterOidcPtrOutput) GroupsClaim() pulumi.StringPtrOutput { } // An OpenID prefix prepended to group claims. -func (o SKSClusterOidcPtrOutput) GroupsPrefix() pulumi.StringPtrOutput { - return o.ApplyT(func(v *SKSClusterOidc) *string { +func (o SksClusterOidcPtrOutput) GroupsPrefix() pulumi.StringPtrOutput { + return o.ApplyT(func(v *SksClusterOidc) *string { if v == nil { return nil } @@ -4012,8 +4012,8 @@ func (o SKSClusterOidcPtrOutput) GroupsPrefix() pulumi.StringPtrOutput { } // The OpenID provider URL. -func (o SKSClusterOidcPtrOutput) IssuerUrl() pulumi.StringPtrOutput { - return o.ApplyT(func(v *SKSClusterOidc) *string { +func (o SksClusterOidcPtrOutput) IssuerUrl() pulumi.StringPtrOutput { + return o.ApplyT(func(v *SksClusterOidc) *string { if v == nil { return nil } @@ -4022,8 +4022,8 @@ func (o SKSClusterOidcPtrOutput) IssuerUrl() pulumi.StringPtrOutput { } // A map of key/value pairs that describes a required claim in the OpenID Token. -func (o SKSClusterOidcPtrOutput) RequiredClaim() pulumi.StringMapOutput { - return o.ApplyT(func(v *SKSClusterOidc) map[string]string { +func (o SksClusterOidcPtrOutput) RequiredClaim() pulumi.StringMapOutput { + return o.ApplyT(func(v *SksClusterOidc) map[string]string { if v == nil { return nil } @@ -4032,8 +4032,8 @@ func (o SKSClusterOidcPtrOutput) RequiredClaim() pulumi.StringMapOutput { } // An OpenID JWT claim to use as the user name. -func (o SKSClusterOidcPtrOutput) UsernameClaim() pulumi.StringPtrOutput { - return o.ApplyT(func(v *SKSClusterOidc) *string { +func (o SksClusterOidcPtrOutput) UsernameClaim() pulumi.StringPtrOutput { + return o.ApplyT(func(v *SksClusterOidc) *string { if v == nil { return nil } @@ -4042,8 +4042,8 @@ func (o SKSClusterOidcPtrOutput) UsernameClaim() pulumi.StringPtrOutput { } // An OpenID prefix prepended to username claims. -func (o SKSClusterOidcPtrOutput) UsernamePrefix() pulumi.StringPtrOutput { - return o.ApplyT(func(v *SKSClusterOidc) *string { +func (o SksClusterOidcPtrOutput) UsernamePrefix() pulumi.StringPtrOutput { + return o.ApplyT(func(v *SksClusterOidc) *string { if v == nil { return nil } @@ -4271,136 +4271,136 @@ func (o GetComputeInstanceListInstanceArrayOutput) Index(i pulumi.IntInput) GetC }).(GetComputeInstanceListInstanceOutput) } -type GetDatabaseURITimeouts struct { +type GetDatabaseUriTimeouts struct { // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. Read *string `pulumi:"read"` } -// GetDatabaseURITimeoutsInput is an input type that accepts GetDatabaseURITimeoutsArgs and GetDatabaseURITimeoutsOutput values. -// You can construct a concrete instance of `GetDatabaseURITimeoutsInput` via: +// GetDatabaseUriTimeoutsInput is an input type that accepts GetDatabaseUriTimeoutsArgs and GetDatabaseUriTimeoutsOutput values. +// You can construct a concrete instance of `GetDatabaseUriTimeoutsInput` via: // -// GetDatabaseURITimeoutsArgs{...} -type GetDatabaseURITimeoutsInput interface { +// GetDatabaseUriTimeoutsArgs{...} +type GetDatabaseUriTimeoutsInput interface { pulumi.Input - ToGetDatabaseURITimeoutsOutput() GetDatabaseURITimeoutsOutput - ToGetDatabaseURITimeoutsOutputWithContext(context.Context) GetDatabaseURITimeoutsOutput + ToGetDatabaseUriTimeoutsOutput() GetDatabaseUriTimeoutsOutput + ToGetDatabaseUriTimeoutsOutputWithContext(context.Context) GetDatabaseUriTimeoutsOutput } -type GetDatabaseURITimeoutsArgs struct { +type GetDatabaseUriTimeoutsArgs struct { // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. Read pulumi.StringPtrInput `pulumi:"read"` } -func (GetDatabaseURITimeoutsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetDatabaseURITimeouts)(nil)).Elem() +func (GetDatabaseUriTimeoutsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetDatabaseUriTimeouts)(nil)).Elem() } -func (i GetDatabaseURITimeoutsArgs) ToGetDatabaseURITimeoutsOutput() GetDatabaseURITimeoutsOutput { - return i.ToGetDatabaseURITimeoutsOutputWithContext(context.Background()) +func (i GetDatabaseUriTimeoutsArgs) ToGetDatabaseUriTimeoutsOutput() GetDatabaseUriTimeoutsOutput { + return i.ToGetDatabaseUriTimeoutsOutputWithContext(context.Background()) } -func (i GetDatabaseURITimeoutsArgs) ToGetDatabaseURITimeoutsOutputWithContext(ctx context.Context) GetDatabaseURITimeoutsOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetDatabaseURITimeoutsOutput) +func (i GetDatabaseUriTimeoutsArgs) ToGetDatabaseUriTimeoutsOutputWithContext(ctx context.Context) GetDatabaseUriTimeoutsOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetDatabaseUriTimeoutsOutput) } -func (i GetDatabaseURITimeoutsArgs) ToGetDatabaseURITimeoutsPtrOutput() GetDatabaseURITimeoutsPtrOutput { - return i.ToGetDatabaseURITimeoutsPtrOutputWithContext(context.Background()) +func (i GetDatabaseUriTimeoutsArgs) ToGetDatabaseUriTimeoutsPtrOutput() GetDatabaseUriTimeoutsPtrOutput { + return i.ToGetDatabaseUriTimeoutsPtrOutputWithContext(context.Background()) } -func (i GetDatabaseURITimeoutsArgs) ToGetDatabaseURITimeoutsPtrOutputWithContext(ctx context.Context) GetDatabaseURITimeoutsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetDatabaseURITimeoutsOutput).ToGetDatabaseURITimeoutsPtrOutputWithContext(ctx) +func (i GetDatabaseUriTimeoutsArgs) ToGetDatabaseUriTimeoutsPtrOutputWithContext(ctx context.Context) GetDatabaseUriTimeoutsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetDatabaseUriTimeoutsOutput).ToGetDatabaseUriTimeoutsPtrOutputWithContext(ctx) } -// GetDatabaseURITimeoutsPtrInput is an input type that accepts GetDatabaseURITimeoutsArgs, GetDatabaseURITimeoutsPtr and GetDatabaseURITimeoutsPtrOutput values. -// You can construct a concrete instance of `GetDatabaseURITimeoutsPtrInput` via: +// GetDatabaseUriTimeoutsPtrInput is an input type that accepts GetDatabaseUriTimeoutsArgs, GetDatabaseUriTimeoutsPtr and GetDatabaseUriTimeoutsPtrOutput values. +// You can construct a concrete instance of `GetDatabaseUriTimeoutsPtrInput` via: // -// GetDatabaseURITimeoutsArgs{...} +// GetDatabaseUriTimeoutsArgs{...} // // or: // // nil -type GetDatabaseURITimeoutsPtrInput interface { +type GetDatabaseUriTimeoutsPtrInput interface { pulumi.Input - ToGetDatabaseURITimeoutsPtrOutput() GetDatabaseURITimeoutsPtrOutput - ToGetDatabaseURITimeoutsPtrOutputWithContext(context.Context) GetDatabaseURITimeoutsPtrOutput + ToGetDatabaseUriTimeoutsPtrOutput() GetDatabaseUriTimeoutsPtrOutput + ToGetDatabaseUriTimeoutsPtrOutputWithContext(context.Context) GetDatabaseUriTimeoutsPtrOutput } -type getDatabaseURITimeoutsPtrType GetDatabaseURITimeoutsArgs +type getDatabaseUriTimeoutsPtrType GetDatabaseUriTimeoutsArgs -func GetDatabaseURITimeoutsPtr(v *GetDatabaseURITimeoutsArgs) GetDatabaseURITimeoutsPtrInput { - return (*getDatabaseURITimeoutsPtrType)(v) +func GetDatabaseUriTimeoutsPtr(v *GetDatabaseUriTimeoutsArgs) GetDatabaseUriTimeoutsPtrInput { + return (*getDatabaseUriTimeoutsPtrType)(v) } -func (*getDatabaseURITimeoutsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GetDatabaseURITimeouts)(nil)).Elem() +func (*getDatabaseUriTimeoutsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetDatabaseUriTimeouts)(nil)).Elem() } -func (i *getDatabaseURITimeoutsPtrType) ToGetDatabaseURITimeoutsPtrOutput() GetDatabaseURITimeoutsPtrOutput { - return i.ToGetDatabaseURITimeoutsPtrOutputWithContext(context.Background()) +func (i *getDatabaseUriTimeoutsPtrType) ToGetDatabaseUriTimeoutsPtrOutput() GetDatabaseUriTimeoutsPtrOutput { + return i.ToGetDatabaseUriTimeoutsPtrOutputWithContext(context.Background()) } -func (i *getDatabaseURITimeoutsPtrType) ToGetDatabaseURITimeoutsPtrOutputWithContext(ctx context.Context) GetDatabaseURITimeoutsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetDatabaseURITimeoutsPtrOutput) +func (i *getDatabaseUriTimeoutsPtrType) ToGetDatabaseUriTimeoutsPtrOutputWithContext(ctx context.Context) GetDatabaseUriTimeoutsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetDatabaseUriTimeoutsPtrOutput) } -type GetDatabaseURITimeoutsOutput struct{ *pulumi.OutputState } +type GetDatabaseUriTimeoutsOutput struct{ *pulumi.OutputState } -func (GetDatabaseURITimeoutsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetDatabaseURITimeouts)(nil)).Elem() +func (GetDatabaseUriTimeoutsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetDatabaseUriTimeouts)(nil)).Elem() } -func (o GetDatabaseURITimeoutsOutput) ToGetDatabaseURITimeoutsOutput() GetDatabaseURITimeoutsOutput { +func (o GetDatabaseUriTimeoutsOutput) ToGetDatabaseUriTimeoutsOutput() GetDatabaseUriTimeoutsOutput { return o } -func (o GetDatabaseURITimeoutsOutput) ToGetDatabaseURITimeoutsOutputWithContext(ctx context.Context) GetDatabaseURITimeoutsOutput { +func (o GetDatabaseUriTimeoutsOutput) ToGetDatabaseUriTimeoutsOutputWithContext(ctx context.Context) GetDatabaseUriTimeoutsOutput { return o } -func (o GetDatabaseURITimeoutsOutput) ToGetDatabaseURITimeoutsPtrOutput() GetDatabaseURITimeoutsPtrOutput { - return o.ToGetDatabaseURITimeoutsPtrOutputWithContext(context.Background()) +func (o GetDatabaseUriTimeoutsOutput) ToGetDatabaseUriTimeoutsPtrOutput() GetDatabaseUriTimeoutsPtrOutput { + return o.ToGetDatabaseUriTimeoutsPtrOutputWithContext(context.Background()) } -func (o GetDatabaseURITimeoutsOutput) ToGetDatabaseURITimeoutsPtrOutputWithContext(ctx context.Context) GetDatabaseURITimeoutsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GetDatabaseURITimeouts) *GetDatabaseURITimeouts { +func (o GetDatabaseUriTimeoutsOutput) ToGetDatabaseUriTimeoutsPtrOutputWithContext(ctx context.Context) GetDatabaseUriTimeoutsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetDatabaseUriTimeouts) *GetDatabaseUriTimeouts { return &v - }).(GetDatabaseURITimeoutsPtrOutput) + }).(GetDatabaseUriTimeoutsPtrOutput) } // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. -func (o GetDatabaseURITimeoutsOutput) Read() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetDatabaseURITimeouts) *string { return v.Read }).(pulumi.StringPtrOutput) +func (o GetDatabaseUriTimeoutsOutput) Read() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetDatabaseUriTimeouts) *string { return v.Read }).(pulumi.StringPtrOutput) } -type GetDatabaseURITimeoutsPtrOutput struct{ *pulumi.OutputState } +type GetDatabaseUriTimeoutsPtrOutput struct{ *pulumi.OutputState } -func (GetDatabaseURITimeoutsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GetDatabaseURITimeouts)(nil)).Elem() +func (GetDatabaseUriTimeoutsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetDatabaseUriTimeouts)(nil)).Elem() } -func (o GetDatabaseURITimeoutsPtrOutput) ToGetDatabaseURITimeoutsPtrOutput() GetDatabaseURITimeoutsPtrOutput { +func (o GetDatabaseUriTimeoutsPtrOutput) ToGetDatabaseUriTimeoutsPtrOutput() GetDatabaseUriTimeoutsPtrOutput { return o } -func (o GetDatabaseURITimeoutsPtrOutput) ToGetDatabaseURITimeoutsPtrOutputWithContext(ctx context.Context) GetDatabaseURITimeoutsPtrOutput { +func (o GetDatabaseUriTimeoutsPtrOutput) ToGetDatabaseUriTimeoutsPtrOutputWithContext(ctx context.Context) GetDatabaseUriTimeoutsPtrOutput { return o } -func (o GetDatabaseURITimeoutsPtrOutput) Elem() GetDatabaseURITimeoutsOutput { - return o.ApplyT(func(v *GetDatabaseURITimeouts) GetDatabaseURITimeouts { +func (o GetDatabaseUriTimeoutsPtrOutput) Elem() GetDatabaseUriTimeoutsOutput { + return o.ApplyT(func(v *GetDatabaseUriTimeouts) GetDatabaseUriTimeouts { if v != nil { return *v } - var ret GetDatabaseURITimeouts + var ret GetDatabaseUriTimeouts return ret - }).(GetDatabaseURITimeoutsOutput) + }).(GetDatabaseUriTimeoutsOutput) } // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. -func (o GetDatabaseURITimeoutsPtrOutput) Read() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetDatabaseURITimeouts) *string { +func (o GetDatabaseUriTimeoutsPtrOutput) Read() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetDatabaseUriTimeouts) *string { if v == nil { return nil } @@ -4617,7 +4617,7 @@ func (o GetDomainRecordRecordArrayOutput) Index(i pulumi.IntInput) GetDomainReco }).(GetDomainRecordRecordOutput) } -type GetElasticIPHealthcheck struct { +type GetElasticIpHealthcheck struct { Interval int `pulumi:"interval"` Mode string `pulumi:"mode"` Port int `pulumi:"port"` @@ -4629,18 +4629,18 @@ type GetElasticIPHealthcheck struct { Uri string `pulumi:"uri"` } -// GetElasticIPHealthcheckInput is an input type that accepts GetElasticIPHealthcheckArgs and GetElasticIPHealthcheckOutput values. -// You can construct a concrete instance of `GetElasticIPHealthcheckInput` via: +// GetElasticIpHealthcheckInput is an input type that accepts GetElasticIpHealthcheckArgs and GetElasticIpHealthcheckOutput values. +// You can construct a concrete instance of `GetElasticIpHealthcheckInput` via: // -// GetElasticIPHealthcheckArgs{...} -type GetElasticIPHealthcheckInput interface { +// GetElasticIpHealthcheckArgs{...} +type GetElasticIpHealthcheckInput interface { pulumi.Input - ToGetElasticIPHealthcheckOutput() GetElasticIPHealthcheckOutput - ToGetElasticIPHealthcheckOutputWithContext(context.Context) GetElasticIPHealthcheckOutput + ToGetElasticIpHealthcheckOutput() GetElasticIpHealthcheckOutput + ToGetElasticIpHealthcheckOutputWithContext(context.Context) GetElasticIpHealthcheckOutput } -type GetElasticIPHealthcheckArgs struct { +type GetElasticIpHealthcheckArgs struct { Interval pulumi.IntInput `pulumi:"interval"` Mode pulumi.StringInput `pulumi:"mode"` Port pulumi.IntInput `pulumi:"port"` @@ -4652,243 +4652,243 @@ type GetElasticIPHealthcheckArgs struct { Uri pulumi.StringInput `pulumi:"uri"` } -func (GetElasticIPHealthcheckArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetElasticIPHealthcheck)(nil)).Elem() +func (GetElasticIpHealthcheckArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetElasticIpHealthcheck)(nil)).Elem() } -func (i GetElasticIPHealthcheckArgs) ToGetElasticIPHealthcheckOutput() GetElasticIPHealthcheckOutput { - return i.ToGetElasticIPHealthcheckOutputWithContext(context.Background()) +func (i GetElasticIpHealthcheckArgs) ToGetElasticIpHealthcheckOutput() GetElasticIpHealthcheckOutput { + return i.ToGetElasticIpHealthcheckOutputWithContext(context.Background()) } -func (i GetElasticIPHealthcheckArgs) ToGetElasticIPHealthcheckOutputWithContext(ctx context.Context) GetElasticIPHealthcheckOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetElasticIPHealthcheckOutput) +func (i GetElasticIpHealthcheckArgs) ToGetElasticIpHealthcheckOutputWithContext(ctx context.Context) GetElasticIpHealthcheckOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetElasticIpHealthcheckOutput) } -// GetElasticIPHealthcheckArrayInput is an input type that accepts GetElasticIPHealthcheckArray and GetElasticIPHealthcheckArrayOutput values. -// You can construct a concrete instance of `GetElasticIPHealthcheckArrayInput` via: +// GetElasticIpHealthcheckArrayInput is an input type that accepts GetElasticIpHealthcheckArray and GetElasticIpHealthcheckArrayOutput values. +// You can construct a concrete instance of `GetElasticIpHealthcheckArrayInput` via: // -// GetElasticIPHealthcheckArray{ GetElasticIPHealthcheckArgs{...} } -type GetElasticIPHealthcheckArrayInput interface { +// GetElasticIpHealthcheckArray{ GetElasticIpHealthcheckArgs{...} } +type GetElasticIpHealthcheckArrayInput interface { pulumi.Input - ToGetElasticIPHealthcheckArrayOutput() GetElasticIPHealthcheckArrayOutput - ToGetElasticIPHealthcheckArrayOutputWithContext(context.Context) GetElasticIPHealthcheckArrayOutput + ToGetElasticIpHealthcheckArrayOutput() GetElasticIpHealthcheckArrayOutput + ToGetElasticIpHealthcheckArrayOutputWithContext(context.Context) GetElasticIpHealthcheckArrayOutput } -type GetElasticIPHealthcheckArray []GetElasticIPHealthcheckInput +type GetElasticIpHealthcheckArray []GetElasticIpHealthcheckInput -func (GetElasticIPHealthcheckArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetElasticIPHealthcheck)(nil)).Elem() +func (GetElasticIpHealthcheckArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetElasticIpHealthcheck)(nil)).Elem() } -func (i GetElasticIPHealthcheckArray) ToGetElasticIPHealthcheckArrayOutput() GetElasticIPHealthcheckArrayOutput { - return i.ToGetElasticIPHealthcheckArrayOutputWithContext(context.Background()) +func (i GetElasticIpHealthcheckArray) ToGetElasticIpHealthcheckArrayOutput() GetElasticIpHealthcheckArrayOutput { + return i.ToGetElasticIpHealthcheckArrayOutputWithContext(context.Background()) } -func (i GetElasticIPHealthcheckArray) ToGetElasticIPHealthcheckArrayOutputWithContext(ctx context.Context) GetElasticIPHealthcheckArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetElasticIPHealthcheckArrayOutput) +func (i GetElasticIpHealthcheckArray) ToGetElasticIpHealthcheckArrayOutputWithContext(ctx context.Context) GetElasticIpHealthcheckArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetElasticIpHealthcheckArrayOutput) } -type GetElasticIPHealthcheckOutput struct{ *pulumi.OutputState } +type GetElasticIpHealthcheckOutput struct{ *pulumi.OutputState } -func (GetElasticIPHealthcheckOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetElasticIPHealthcheck)(nil)).Elem() +func (GetElasticIpHealthcheckOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetElasticIpHealthcheck)(nil)).Elem() } -func (o GetElasticIPHealthcheckOutput) ToGetElasticIPHealthcheckOutput() GetElasticIPHealthcheckOutput { +func (o GetElasticIpHealthcheckOutput) ToGetElasticIpHealthcheckOutput() GetElasticIpHealthcheckOutput { return o } -func (o GetElasticIPHealthcheckOutput) ToGetElasticIPHealthcheckOutputWithContext(ctx context.Context) GetElasticIPHealthcheckOutput { +func (o GetElasticIpHealthcheckOutput) ToGetElasticIpHealthcheckOutputWithContext(ctx context.Context) GetElasticIpHealthcheckOutput { return o } -func (o GetElasticIPHealthcheckOutput) Interval() pulumi.IntOutput { - return o.ApplyT(func(v GetElasticIPHealthcheck) int { return v.Interval }).(pulumi.IntOutput) +func (o GetElasticIpHealthcheckOutput) Interval() pulumi.IntOutput { + return o.ApplyT(func(v GetElasticIpHealthcheck) int { return v.Interval }).(pulumi.IntOutput) } -func (o GetElasticIPHealthcheckOutput) Mode() pulumi.StringOutput { - return o.ApplyT(func(v GetElasticIPHealthcheck) string { return v.Mode }).(pulumi.StringOutput) +func (o GetElasticIpHealthcheckOutput) Mode() pulumi.StringOutput { + return o.ApplyT(func(v GetElasticIpHealthcheck) string { return v.Mode }).(pulumi.StringOutput) } -func (o GetElasticIPHealthcheckOutput) Port() pulumi.IntOutput { - return o.ApplyT(func(v GetElasticIPHealthcheck) int { return v.Port }).(pulumi.IntOutput) +func (o GetElasticIpHealthcheckOutput) Port() pulumi.IntOutput { + return o.ApplyT(func(v GetElasticIpHealthcheck) int { return v.Port }).(pulumi.IntOutput) } -func (o GetElasticIPHealthcheckOutput) StrikesFail() pulumi.IntOutput { - return o.ApplyT(func(v GetElasticIPHealthcheck) int { return v.StrikesFail }).(pulumi.IntOutput) +func (o GetElasticIpHealthcheckOutput) StrikesFail() pulumi.IntOutput { + return o.ApplyT(func(v GetElasticIpHealthcheck) int { return v.StrikesFail }).(pulumi.IntOutput) } -func (o GetElasticIPHealthcheckOutput) StrikesOk() pulumi.IntOutput { - return o.ApplyT(func(v GetElasticIPHealthcheck) int { return v.StrikesOk }).(pulumi.IntOutput) +func (o GetElasticIpHealthcheckOutput) StrikesOk() pulumi.IntOutput { + return o.ApplyT(func(v GetElasticIpHealthcheck) int { return v.StrikesOk }).(pulumi.IntOutput) } -func (o GetElasticIPHealthcheckOutput) Timeout() pulumi.IntOutput { - return o.ApplyT(func(v GetElasticIPHealthcheck) int { return v.Timeout }).(pulumi.IntOutput) +func (o GetElasticIpHealthcheckOutput) Timeout() pulumi.IntOutput { + return o.ApplyT(func(v GetElasticIpHealthcheck) int { return v.Timeout }).(pulumi.IntOutput) } -func (o GetElasticIPHealthcheckOutput) TlsSkipVerify() pulumi.BoolOutput { - return o.ApplyT(func(v GetElasticIPHealthcheck) bool { return v.TlsSkipVerify }).(pulumi.BoolOutput) +func (o GetElasticIpHealthcheckOutput) TlsSkipVerify() pulumi.BoolOutput { + return o.ApplyT(func(v GetElasticIpHealthcheck) bool { return v.TlsSkipVerify }).(pulumi.BoolOutput) } -func (o GetElasticIPHealthcheckOutput) TlsSni() pulumi.StringOutput { - return o.ApplyT(func(v GetElasticIPHealthcheck) string { return v.TlsSni }).(pulumi.StringOutput) +func (o GetElasticIpHealthcheckOutput) TlsSni() pulumi.StringOutput { + return o.ApplyT(func(v GetElasticIpHealthcheck) string { return v.TlsSni }).(pulumi.StringOutput) } -func (o GetElasticIPHealthcheckOutput) Uri() pulumi.StringOutput { - return o.ApplyT(func(v GetElasticIPHealthcheck) string { return v.Uri }).(pulumi.StringOutput) +func (o GetElasticIpHealthcheckOutput) Uri() pulumi.StringOutput { + return o.ApplyT(func(v GetElasticIpHealthcheck) string { return v.Uri }).(pulumi.StringOutput) } -type GetElasticIPHealthcheckArrayOutput struct{ *pulumi.OutputState } +type GetElasticIpHealthcheckArrayOutput struct{ *pulumi.OutputState } -func (GetElasticIPHealthcheckArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetElasticIPHealthcheck)(nil)).Elem() +func (GetElasticIpHealthcheckArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetElasticIpHealthcheck)(nil)).Elem() } -func (o GetElasticIPHealthcheckArrayOutput) ToGetElasticIPHealthcheckArrayOutput() GetElasticIPHealthcheckArrayOutput { +func (o GetElasticIpHealthcheckArrayOutput) ToGetElasticIpHealthcheckArrayOutput() GetElasticIpHealthcheckArrayOutput { return o } -func (o GetElasticIPHealthcheckArrayOutput) ToGetElasticIPHealthcheckArrayOutputWithContext(ctx context.Context) GetElasticIPHealthcheckArrayOutput { +func (o GetElasticIpHealthcheckArrayOutput) ToGetElasticIpHealthcheckArrayOutputWithContext(ctx context.Context) GetElasticIpHealthcheckArrayOutput { return o } -func (o GetElasticIPHealthcheckArrayOutput) Index(i pulumi.IntInput) GetElasticIPHealthcheckOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetElasticIPHealthcheck { - return vs[0].([]GetElasticIPHealthcheck)[vs[1].(int)] - }).(GetElasticIPHealthcheckOutput) +func (o GetElasticIpHealthcheckArrayOutput) Index(i pulumi.IntInput) GetElasticIpHealthcheckOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetElasticIpHealthcheck { + return vs[0].([]GetElasticIpHealthcheck)[vs[1].(int)] + }).(GetElasticIpHealthcheckOutput) } -type GetIAMAPIKeyTimeouts struct { +type GetIamApiKeyTimeouts struct { // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. Read *string `pulumi:"read"` } -// GetIAMAPIKeyTimeoutsInput is an input type that accepts GetIAMAPIKeyTimeoutsArgs and GetIAMAPIKeyTimeoutsOutput values. -// You can construct a concrete instance of `GetIAMAPIKeyTimeoutsInput` via: +// GetIamApiKeyTimeoutsInput is an input type that accepts GetIamApiKeyTimeoutsArgs and GetIamApiKeyTimeoutsOutput values. +// You can construct a concrete instance of `GetIamApiKeyTimeoutsInput` via: // -// GetIAMAPIKeyTimeoutsArgs{...} -type GetIAMAPIKeyTimeoutsInput interface { +// GetIamApiKeyTimeoutsArgs{...} +type GetIamApiKeyTimeoutsInput interface { pulumi.Input - ToGetIAMAPIKeyTimeoutsOutput() GetIAMAPIKeyTimeoutsOutput - ToGetIAMAPIKeyTimeoutsOutputWithContext(context.Context) GetIAMAPIKeyTimeoutsOutput + ToGetIamApiKeyTimeoutsOutput() GetIamApiKeyTimeoutsOutput + ToGetIamApiKeyTimeoutsOutputWithContext(context.Context) GetIamApiKeyTimeoutsOutput } -type GetIAMAPIKeyTimeoutsArgs struct { +type GetIamApiKeyTimeoutsArgs struct { // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. Read pulumi.StringPtrInput `pulumi:"read"` } -func (GetIAMAPIKeyTimeoutsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetIAMAPIKeyTimeouts)(nil)).Elem() +func (GetIamApiKeyTimeoutsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetIamApiKeyTimeouts)(nil)).Elem() } -func (i GetIAMAPIKeyTimeoutsArgs) ToGetIAMAPIKeyTimeoutsOutput() GetIAMAPIKeyTimeoutsOutput { - return i.ToGetIAMAPIKeyTimeoutsOutputWithContext(context.Background()) +func (i GetIamApiKeyTimeoutsArgs) ToGetIamApiKeyTimeoutsOutput() GetIamApiKeyTimeoutsOutput { + return i.ToGetIamApiKeyTimeoutsOutputWithContext(context.Background()) } -func (i GetIAMAPIKeyTimeoutsArgs) ToGetIAMAPIKeyTimeoutsOutputWithContext(ctx context.Context) GetIAMAPIKeyTimeoutsOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetIAMAPIKeyTimeoutsOutput) +func (i GetIamApiKeyTimeoutsArgs) ToGetIamApiKeyTimeoutsOutputWithContext(ctx context.Context) GetIamApiKeyTimeoutsOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetIamApiKeyTimeoutsOutput) } -func (i GetIAMAPIKeyTimeoutsArgs) ToGetIAMAPIKeyTimeoutsPtrOutput() GetIAMAPIKeyTimeoutsPtrOutput { - return i.ToGetIAMAPIKeyTimeoutsPtrOutputWithContext(context.Background()) +func (i GetIamApiKeyTimeoutsArgs) ToGetIamApiKeyTimeoutsPtrOutput() GetIamApiKeyTimeoutsPtrOutput { + return i.ToGetIamApiKeyTimeoutsPtrOutputWithContext(context.Background()) } -func (i GetIAMAPIKeyTimeoutsArgs) ToGetIAMAPIKeyTimeoutsPtrOutputWithContext(ctx context.Context) GetIAMAPIKeyTimeoutsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetIAMAPIKeyTimeoutsOutput).ToGetIAMAPIKeyTimeoutsPtrOutputWithContext(ctx) +func (i GetIamApiKeyTimeoutsArgs) ToGetIamApiKeyTimeoutsPtrOutputWithContext(ctx context.Context) GetIamApiKeyTimeoutsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetIamApiKeyTimeoutsOutput).ToGetIamApiKeyTimeoutsPtrOutputWithContext(ctx) } -// GetIAMAPIKeyTimeoutsPtrInput is an input type that accepts GetIAMAPIKeyTimeoutsArgs, GetIAMAPIKeyTimeoutsPtr and GetIAMAPIKeyTimeoutsPtrOutput values. -// You can construct a concrete instance of `GetIAMAPIKeyTimeoutsPtrInput` via: +// GetIamApiKeyTimeoutsPtrInput is an input type that accepts GetIamApiKeyTimeoutsArgs, GetIamApiKeyTimeoutsPtr and GetIamApiKeyTimeoutsPtrOutput values. +// You can construct a concrete instance of `GetIamApiKeyTimeoutsPtrInput` via: // -// GetIAMAPIKeyTimeoutsArgs{...} +// GetIamApiKeyTimeoutsArgs{...} // // or: // // nil -type GetIAMAPIKeyTimeoutsPtrInput interface { +type GetIamApiKeyTimeoutsPtrInput interface { pulumi.Input - ToGetIAMAPIKeyTimeoutsPtrOutput() GetIAMAPIKeyTimeoutsPtrOutput - ToGetIAMAPIKeyTimeoutsPtrOutputWithContext(context.Context) GetIAMAPIKeyTimeoutsPtrOutput + ToGetIamApiKeyTimeoutsPtrOutput() GetIamApiKeyTimeoutsPtrOutput + ToGetIamApiKeyTimeoutsPtrOutputWithContext(context.Context) GetIamApiKeyTimeoutsPtrOutput } -type getIAMAPIKeyTimeoutsPtrType GetIAMAPIKeyTimeoutsArgs +type getIamApiKeyTimeoutsPtrType GetIamApiKeyTimeoutsArgs -func GetIAMAPIKeyTimeoutsPtr(v *GetIAMAPIKeyTimeoutsArgs) GetIAMAPIKeyTimeoutsPtrInput { - return (*getIAMAPIKeyTimeoutsPtrType)(v) +func GetIamApiKeyTimeoutsPtr(v *GetIamApiKeyTimeoutsArgs) GetIamApiKeyTimeoutsPtrInput { + return (*getIamApiKeyTimeoutsPtrType)(v) } -func (*getIAMAPIKeyTimeoutsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GetIAMAPIKeyTimeouts)(nil)).Elem() +func (*getIamApiKeyTimeoutsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetIamApiKeyTimeouts)(nil)).Elem() } -func (i *getIAMAPIKeyTimeoutsPtrType) ToGetIAMAPIKeyTimeoutsPtrOutput() GetIAMAPIKeyTimeoutsPtrOutput { - return i.ToGetIAMAPIKeyTimeoutsPtrOutputWithContext(context.Background()) +func (i *getIamApiKeyTimeoutsPtrType) ToGetIamApiKeyTimeoutsPtrOutput() GetIamApiKeyTimeoutsPtrOutput { + return i.ToGetIamApiKeyTimeoutsPtrOutputWithContext(context.Background()) } -func (i *getIAMAPIKeyTimeoutsPtrType) ToGetIAMAPIKeyTimeoutsPtrOutputWithContext(ctx context.Context) GetIAMAPIKeyTimeoutsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetIAMAPIKeyTimeoutsPtrOutput) +func (i *getIamApiKeyTimeoutsPtrType) ToGetIamApiKeyTimeoutsPtrOutputWithContext(ctx context.Context) GetIamApiKeyTimeoutsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetIamApiKeyTimeoutsPtrOutput) } -type GetIAMAPIKeyTimeoutsOutput struct{ *pulumi.OutputState } +type GetIamApiKeyTimeoutsOutput struct{ *pulumi.OutputState } -func (GetIAMAPIKeyTimeoutsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetIAMAPIKeyTimeouts)(nil)).Elem() +func (GetIamApiKeyTimeoutsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetIamApiKeyTimeouts)(nil)).Elem() } -func (o GetIAMAPIKeyTimeoutsOutput) ToGetIAMAPIKeyTimeoutsOutput() GetIAMAPIKeyTimeoutsOutput { +func (o GetIamApiKeyTimeoutsOutput) ToGetIamApiKeyTimeoutsOutput() GetIamApiKeyTimeoutsOutput { return o } -func (o GetIAMAPIKeyTimeoutsOutput) ToGetIAMAPIKeyTimeoutsOutputWithContext(ctx context.Context) GetIAMAPIKeyTimeoutsOutput { +func (o GetIamApiKeyTimeoutsOutput) ToGetIamApiKeyTimeoutsOutputWithContext(ctx context.Context) GetIamApiKeyTimeoutsOutput { return o } -func (o GetIAMAPIKeyTimeoutsOutput) ToGetIAMAPIKeyTimeoutsPtrOutput() GetIAMAPIKeyTimeoutsPtrOutput { - return o.ToGetIAMAPIKeyTimeoutsPtrOutputWithContext(context.Background()) +func (o GetIamApiKeyTimeoutsOutput) ToGetIamApiKeyTimeoutsPtrOutput() GetIamApiKeyTimeoutsPtrOutput { + return o.ToGetIamApiKeyTimeoutsPtrOutputWithContext(context.Background()) } -func (o GetIAMAPIKeyTimeoutsOutput) ToGetIAMAPIKeyTimeoutsPtrOutputWithContext(ctx context.Context) GetIAMAPIKeyTimeoutsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GetIAMAPIKeyTimeouts) *GetIAMAPIKeyTimeouts { +func (o GetIamApiKeyTimeoutsOutput) ToGetIamApiKeyTimeoutsPtrOutputWithContext(ctx context.Context) GetIamApiKeyTimeoutsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetIamApiKeyTimeouts) *GetIamApiKeyTimeouts { return &v - }).(GetIAMAPIKeyTimeoutsPtrOutput) + }).(GetIamApiKeyTimeoutsPtrOutput) } // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. -func (o GetIAMAPIKeyTimeoutsOutput) Read() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetIAMAPIKeyTimeouts) *string { return v.Read }).(pulumi.StringPtrOutput) +func (o GetIamApiKeyTimeoutsOutput) Read() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetIamApiKeyTimeouts) *string { return v.Read }).(pulumi.StringPtrOutput) } -type GetIAMAPIKeyTimeoutsPtrOutput struct{ *pulumi.OutputState } +type GetIamApiKeyTimeoutsPtrOutput struct{ *pulumi.OutputState } -func (GetIAMAPIKeyTimeoutsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GetIAMAPIKeyTimeouts)(nil)).Elem() +func (GetIamApiKeyTimeoutsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetIamApiKeyTimeouts)(nil)).Elem() } -func (o GetIAMAPIKeyTimeoutsPtrOutput) ToGetIAMAPIKeyTimeoutsPtrOutput() GetIAMAPIKeyTimeoutsPtrOutput { +func (o GetIamApiKeyTimeoutsPtrOutput) ToGetIamApiKeyTimeoutsPtrOutput() GetIamApiKeyTimeoutsPtrOutput { return o } -func (o GetIAMAPIKeyTimeoutsPtrOutput) ToGetIAMAPIKeyTimeoutsPtrOutputWithContext(ctx context.Context) GetIAMAPIKeyTimeoutsPtrOutput { +func (o GetIamApiKeyTimeoutsPtrOutput) ToGetIamApiKeyTimeoutsPtrOutputWithContext(ctx context.Context) GetIamApiKeyTimeoutsPtrOutput { return o } -func (o GetIAMAPIKeyTimeoutsPtrOutput) Elem() GetIAMAPIKeyTimeoutsOutput { - return o.ApplyT(func(v *GetIAMAPIKeyTimeouts) GetIAMAPIKeyTimeouts { +func (o GetIamApiKeyTimeoutsPtrOutput) Elem() GetIamApiKeyTimeoutsOutput { + return o.ApplyT(func(v *GetIamApiKeyTimeouts) GetIamApiKeyTimeouts { if v != nil { return *v } - var ret GetIAMAPIKeyTimeouts + var ret GetIamApiKeyTimeouts return ret - }).(GetIAMAPIKeyTimeoutsOutput) + }).(GetIamApiKeyTimeoutsOutput) } // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. -func (o GetIAMAPIKeyTimeoutsPtrOutput) Read() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetIAMAPIKeyTimeouts) *string { +func (o GetIamApiKeyTimeoutsPtrOutput) Read() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetIamApiKeyTimeouts) *string { if v == nil { return nil } @@ -4896,113 +4896,113 @@ func (o GetIAMAPIKeyTimeoutsPtrOutput) Read() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -type GetIAMOrgPolicyServices struct { +type GetIamOrgPolicyServices struct { // List of IAM service rules (if type is `rules`). - Rules []GetIAMOrgPolicyServicesRule `pulumi:"rules"` + Rules []GetIamOrgPolicyServicesRule `pulumi:"rules"` // Service type (`rules`, `allow`, or `deny`). Type string `pulumi:"type"` } -// GetIAMOrgPolicyServicesInput is an input type that accepts GetIAMOrgPolicyServicesArgs and GetIAMOrgPolicyServicesOutput values. -// You can construct a concrete instance of `GetIAMOrgPolicyServicesInput` via: +// GetIamOrgPolicyServicesInput is an input type that accepts GetIamOrgPolicyServicesArgs and GetIamOrgPolicyServicesOutput values. +// You can construct a concrete instance of `GetIamOrgPolicyServicesInput` via: // -// GetIAMOrgPolicyServicesArgs{...} -type GetIAMOrgPolicyServicesInput interface { +// GetIamOrgPolicyServicesArgs{...} +type GetIamOrgPolicyServicesInput interface { pulumi.Input - ToGetIAMOrgPolicyServicesOutput() GetIAMOrgPolicyServicesOutput - ToGetIAMOrgPolicyServicesOutputWithContext(context.Context) GetIAMOrgPolicyServicesOutput + ToGetIamOrgPolicyServicesOutput() GetIamOrgPolicyServicesOutput + ToGetIamOrgPolicyServicesOutputWithContext(context.Context) GetIamOrgPolicyServicesOutput } -type GetIAMOrgPolicyServicesArgs struct { +type GetIamOrgPolicyServicesArgs struct { // List of IAM service rules (if type is `rules`). - Rules GetIAMOrgPolicyServicesRuleArrayInput `pulumi:"rules"` + Rules GetIamOrgPolicyServicesRuleArrayInput `pulumi:"rules"` // Service type (`rules`, `allow`, or `deny`). Type pulumi.StringInput `pulumi:"type"` } -func (GetIAMOrgPolicyServicesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetIAMOrgPolicyServices)(nil)).Elem() +func (GetIamOrgPolicyServicesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetIamOrgPolicyServices)(nil)).Elem() } -func (i GetIAMOrgPolicyServicesArgs) ToGetIAMOrgPolicyServicesOutput() GetIAMOrgPolicyServicesOutput { - return i.ToGetIAMOrgPolicyServicesOutputWithContext(context.Background()) +func (i GetIamOrgPolicyServicesArgs) ToGetIamOrgPolicyServicesOutput() GetIamOrgPolicyServicesOutput { + return i.ToGetIamOrgPolicyServicesOutputWithContext(context.Background()) } -func (i GetIAMOrgPolicyServicesArgs) ToGetIAMOrgPolicyServicesOutputWithContext(ctx context.Context) GetIAMOrgPolicyServicesOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetIAMOrgPolicyServicesOutput) +func (i GetIamOrgPolicyServicesArgs) ToGetIamOrgPolicyServicesOutputWithContext(ctx context.Context) GetIamOrgPolicyServicesOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetIamOrgPolicyServicesOutput) } -// GetIAMOrgPolicyServicesMapInput is an input type that accepts GetIAMOrgPolicyServicesMap and GetIAMOrgPolicyServicesMapOutput values. -// You can construct a concrete instance of `GetIAMOrgPolicyServicesMapInput` via: +// GetIamOrgPolicyServicesMapInput is an input type that accepts GetIamOrgPolicyServicesMap and GetIamOrgPolicyServicesMapOutput values. +// You can construct a concrete instance of `GetIamOrgPolicyServicesMapInput` via: // -// GetIAMOrgPolicyServicesMap{ "key": GetIAMOrgPolicyServicesArgs{...} } -type GetIAMOrgPolicyServicesMapInput interface { +// GetIamOrgPolicyServicesMap{ "key": GetIamOrgPolicyServicesArgs{...} } +type GetIamOrgPolicyServicesMapInput interface { pulumi.Input - ToGetIAMOrgPolicyServicesMapOutput() GetIAMOrgPolicyServicesMapOutput - ToGetIAMOrgPolicyServicesMapOutputWithContext(context.Context) GetIAMOrgPolicyServicesMapOutput + ToGetIamOrgPolicyServicesMapOutput() GetIamOrgPolicyServicesMapOutput + ToGetIamOrgPolicyServicesMapOutputWithContext(context.Context) GetIamOrgPolicyServicesMapOutput } -type GetIAMOrgPolicyServicesMap map[string]GetIAMOrgPolicyServicesInput +type GetIamOrgPolicyServicesMap map[string]GetIamOrgPolicyServicesInput -func (GetIAMOrgPolicyServicesMap) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]GetIAMOrgPolicyServices)(nil)).Elem() +func (GetIamOrgPolicyServicesMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]GetIamOrgPolicyServices)(nil)).Elem() } -func (i GetIAMOrgPolicyServicesMap) ToGetIAMOrgPolicyServicesMapOutput() GetIAMOrgPolicyServicesMapOutput { - return i.ToGetIAMOrgPolicyServicesMapOutputWithContext(context.Background()) +func (i GetIamOrgPolicyServicesMap) ToGetIamOrgPolicyServicesMapOutput() GetIamOrgPolicyServicesMapOutput { + return i.ToGetIamOrgPolicyServicesMapOutputWithContext(context.Background()) } -func (i GetIAMOrgPolicyServicesMap) ToGetIAMOrgPolicyServicesMapOutputWithContext(ctx context.Context) GetIAMOrgPolicyServicesMapOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetIAMOrgPolicyServicesMapOutput) +func (i GetIamOrgPolicyServicesMap) ToGetIamOrgPolicyServicesMapOutputWithContext(ctx context.Context) GetIamOrgPolicyServicesMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetIamOrgPolicyServicesMapOutput) } -type GetIAMOrgPolicyServicesOutput struct{ *pulumi.OutputState } +type GetIamOrgPolicyServicesOutput struct{ *pulumi.OutputState } -func (GetIAMOrgPolicyServicesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetIAMOrgPolicyServices)(nil)).Elem() +func (GetIamOrgPolicyServicesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetIamOrgPolicyServices)(nil)).Elem() } -func (o GetIAMOrgPolicyServicesOutput) ToGetIAMOrgPolicyServicesOutput() GetIAMOrgPolicyServicesOutput { +func (o GetIamOrgPolicyServicesOutput) ToGetIamOrgPolicyServicesOutput() GetIamOrgPolicyServicesOutput { return o } -func (o GetIAMOrgPolicyServicesOutput) ToGetIAMOrgPolicyServicesOutputWithContext(ctx context.Context) GetIAMOrgPolicyServicesOutput { +func (o GetIamOrgPolicyServicesOutput) ToGetIamOrgPolicyServicesOutputWithContext(ctx context.Context) GetIamOrgPolicyServicesOutput { return o } // List of IAM service rules (if type is `rules`). -func (o GetIAMOrgPolicyServicesOutput) Rules() GetIAMOrgPolicyServicesRuleArrayOutput { - return o.ApplyT(func(v GetIAMOrgPolicyServices) []GetIAMOrgPolicyServicesRule { return v.Rules }).(GetIAMOrgPolicyServicesRuleArrayOutput) +func (o GetIamOrgPolicyServicesOutput) Rules() GetIamOrgPolicyServicesRuleArrayOutput { + return o.ApplyT(func(v GetIamOrgPolicyServices) []GetIamOrgPolicyServicesRule { return v.Rules }).(GetIamOrgPolicyServicesRuleArrayOutput) } // Service type (`rules`, `allow`, or `deny`). -func (o GetIAMOrgPolicyServicesOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v GetIAMOrgPolicyServices) string { return v.Type }).(pulumi.StringOutput) +func (o GetIamOrgPolicyServicesOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v GetIamOrgPolicyServices) string { return v.Type }).(pulumi.StringOutput) } -type GetIAMOrgPolicyServicesMapOutput struct{ *pulumi.OutputState } +type GetIamOrgPolicyServicesMapOutput struct{ *pulumi.OutputState } -func (GetIAMOrgPolicyServicesMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]GetIAMOrgPolicyServices)(nil)).Elem() +func (GetIamOrgPolicyServicesMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]GetIamOrgPolicyServices)(nil)).Elem() } -func (o GetIAMOrgPolicyServicesMapOutput) ToGetIAMOrgPolicyServicesMapOutput() GetIAMOrgPolicyServicesMapOutput { +func (o GetIamOrgPolicyServicesMapOutput) ToGetIamOrgPolicyServicesMapOutput() GetIamOrgPolicyServicesMapOutput { return o } -func (o GetIAMOrgPolicyServicesMapOutput) ToGetIAMOrgPolicyServicesMapOutputWithContext(ctx context.Context) GetIAMOrgPolicyServicesMapOutput { +func (o GetIamOrgPolicyServicesMapOutput) ToGetIamOrgPolicyServicesMapOutputWithContext(ctx context.Context) GetIamOrgPolicyServicesMapOutput { return o } -func (o GetIAMOrgPolicyServicesMapOutput) MapIndex(k pulumi.StringInput) GetIAMOrgPolicyServicesOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) GetIAMOrgPolicyServices { - return vs[0].(map[string]GetIAMOrgPolicyServices)[vs[1].(string)] - }).(GetIAMOrgPolicyServicesOutput) +func (o GetIamOrgPolicyServicesMapOutput) MapIndex(k pulumi.StringInput) GetIamOrgPolicyServicesOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) GetIamOrgPolicyServices { + return vs[0].(map[string]GetIamOrgPolicyServices)[vs[1].(string)] + }).(GetIamOrgPolicyServicesOutput) } -type GetIAMOrgPolicyServicesRule struct { +type GetIamOrgPolicyServicesRule struct { // IAM policy rule action (`allow` or `deny`). Action string `pulumi:"action"` // IAM policy rule expression. @@ -5011,18 +5011,18 @@ type GetIAMOrgPolicyServicesRule struct { Resources []string `pulumi:"resources"` } -// GetIAMOrgPolicyServicesRuleInput is an input type that accepts GetIAMOrgPolicyServicesRuleArgs and GetIAMOrgPolicyServicesRuleOutput values. -// You can construct a concrete instance of `GetIAMOrgPolicyServicesRuleInput` via: +// GetIamOrgPolicyServicesRuleInput is an input type that accepts GetIamOrgPolicyServicesRuleArgs and GetIamOrgPolicyServicesRuleOutput values. +// You can construct a concrete instance of `GetIamOrgPolicyServicesRuleInput` via: // -// GetIAMOrgPolicyServicesRuleArgs{...} -type GetIAMOrgPolicyServicesRuleInput interface { +// GetIamOrgPolicyServicesRuleArgs{...} +type GetIamOrgPolicyServicesRuleInput interface { pulumi.Input - ToGetIAMOrgPolicyServicesRuleOutput() GetIAMOrgPolicyServicesRuleOutput - ToGetIAMOrgPolicyServicesRuleOutputWithContext(context.Context) GetIAMOrgPolicyServicesRuleOutput + ToGetIamOrgPolicyServicesRuleOutput() GetIamOrgPolicyServicesRuleOutput + ToGetIamOrgPolicyServicesRuleOutputWithContext(context.Context) GetIamOrgPolicyServicesRuleOutput } -type GetIAMOrgPolicyServicesRuleArgs struct { +type GetIamOrgPolicyServicesRuleArgs struct { // IAM policy rule action (`allow` or `deny`). Action pulumi.StringInput `pulumi:"action"` // IAM policy rule expression. @@ -5031,222 +5031,222 @@ type GetIAMOrgPolicyServicesRuleArgs struct { Resources pulumi.StringArrayInput `pulumi:"resources"` } -func (GetIAMOrgPolicyServicesRuleArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetIAMOrgPolicyServicesRule)(nil)).Elem() +func (GetIamOrgPolicyServicesRuleArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetIamOrgPolicyServicesRule)(nil)).Elem() } -func (i GetIAMOrgPolicyServicesRuleArgs) ToGetIAMOrgPolicyServicesRuleOutput() GetIAMOrgPolicyServicesRuleOutput { - return i.ToGetIAMOrgPolicyServicesRuleOutputWithContext(context.Background()) +func (i GetIamOrgPolicyServicesRuleArgs) ToGetIamOrgPolicyServicesRuleOutput() GetIamOrgPolicyServicesRuleOutput { + return i.ToGetIamOrgPolicyServicesRuleOutputWithContext(context.Background()) } -func (i GetIAMOrgPolicyServicesRuleArgs) ToGetIAMOrgPolicyServicesRuleOutputWithContext(ctx context.Context) GetIAMOrgPolicyServicesRuleOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetIAMOrgPolicyServicesRuleOutput) +func (i GetIamOrgPolicyServicesRuleArgs) ToGetIamOrgPolicyServicesRuleOutputWithContext(ctx context.Context) GetIamOrgPolicyServicesRuleOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetIamOrgPolicyServicesRuleOutput) } -// GetIAMOrgPolicyServicesRuleArrayInput is an input type that accepts GetIAMOrgPolicyServicesRuleArray and GetIAMOrgPolicyServicesRuleArrayOutput values. -// You can construct a concrete instance of `GetIAMOrgPolicyServicesRuleArrayInput` via: +// GetIamOrgPolicyServicesRuleArrayInput is an input type that accepts GetIamOrgPolicyServicesRuleArray and GetIamOrgPolicyServicesRuleArrayOutput values. +// You can construct a concrete instance of `GetIamOrgPolicyServicesRuleArrayInput` via: // -// GetIAMOrgPolicyServicesRuleArray{ GetIAMOrgPolicyServicesRuleArgs{...} } -type GetIAMOrgPolicyServicesRuleArrayInput interface { +// GetIamOrgPolicyServicesRuleArray{ GetIamOrgPolicyServicesRuleArgs{...} } +type GetIamOrgPolicyServicesRuleArrayInput interface { pulumi.Input - ToGetIAMOrgPolicyServicesRuleArrayOutput() GetIAMOrgPolicyServicesRuleArrayOutput - ToGetIAMOrgPolicyServicesRuleArrayOutputWithContext(context.Context) GetIAMOrgPolicyServicesRuleArrayOutput + ToGetIamOrgPolicyServicesRuleArrayOutput() GetIamOrgPolicyServicesRuleArrayOutput + ToGetIamOrgPolicyServicesRuleArrayOutputWithContext(context.Context) GetIamOrgPolicyServicesRuleArrayOutput } -type GetIAMOrgPolicyServicesRuleArray []GetIAMOrgPolicyServicesRuleInput +type GetIamOrgPolicyServicesRuleArray []GetIamOrgPolicyServicesRuleInput -func (GetIAMOrgPolicyServicesRuleArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetIAMOrgPolicyServicesRule)(nil)).Elem() +func (GetIamOrgPolicyServicesRuleArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetIamOrgPolicyServicesRule)(nil)).Elem() } -func (i GetIAMOrgPolicyServicesRuleArray) ToGetIAMOrgPolicyServicesRuleArrayOutput() GetIAMOrgPolicyServicesRuleArrayOutput { - return i.ToGetIAMOrgPolicyServicesRuleArrayOutputWithContext(context.Background()) +func (i GetIamOrgPolicyServicesRuleArray) ToGetIamOrgPolicyServicesRuleArrayOutput() GetIamOrgPolicyServicesRuleArrayOutput { + return i.ToGetIamOrgPolicyServicesRuleArrayOutputWithContext(context.Background()) } -func (i GetIAMOrgPolicyServicesRuleArray) ToGetIAMOrgPolicyServicesRuleArrayOutputWithContext(ctx context.Context) GetIAMOrgPolicyServicesRuleArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetIAMOrgPolicyServicesRuleArrayOutput) +func (i GetIamOrgPolicyServicesRuleArray) ToGetIamOrgPolicyServicesRuleArrayOutputWithContext(ctx context.Context) GetIamOrgPolicyServicesRuleArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetIamOrgPolicyServicesRuleArrayOutput) } -type GetIAMOrgPolicyServicesRuleOutput struct{ *pulumi.OutputState } +type GetIamOrgPolicyServicesRuleOutput struct{ *pulumi.OutputState } -func (GetIAMOrgPolicyServicesRuleOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetIAMOrgPolicyServicesRule)(nil)).Elem() +func (GetIamOrgPolicyServicesRuleOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetIamOrgPolicyServicesRule)(nil)).Elem() } -func (o GetIAMOrgPolicyServicesRuleOutput) ToGetIAMOrgPolicyServicesRuleOutput() GetIAMOrgPolicyServicesRuleOutput { +func (o GetIamOrgPolicyServicesRuleOutput) ToGetIamOrgPolicyServicesRuleOutput() GetIamOrgPolicyServicesRuleOutput { return o } -func (o GetIAMOrgPolicyServicesRuleOutput) ToGetIAMOrgPolicyServicesRuleOutputWithContext(ctx context.Context) GetIAMOrgPolicyServicesRuleOutput { +func (o GetIamOrgPolicyServicesRuleOutput) ToGetIamOrgPolicyServicesRuleOutputWithContext(ctx context.Context) GetIamOrgPolicyServicesRuleOutput { return o } // IAM policy rule action (`allow` or `deny`). -func (o GetIAMOrgPolicyServicesRuleOutput) Action() pulumi.StringOutput { - return o.ApplyT(func(v GetIAMOrgPolicyServicesRule) string { return v.Action }).(pulumi.StringOutput) +func (o GetIamOrgPolicyServicesRuleOutput) Action() pulumi.StringOutput { + return o.ApplyT(func(v GetIamOrgPolicyServicesRule) string { return v.Action }).(pulumi.StringOutput) } // IAM policy rule expression. -func (o GetIAMOrgPolicyServicesRuleOutput) Expression() pulumi.StringOutput { - return o.ApplyT(func(v GetIAMOrgPolicyServicesRule) string { return v.Expression }).(pulumi.StringOutput) +func (o GetIamOrgPolicyServicesRuleOutput) Expression() pulumi.StringOutput { + return o.ApplyT(func(v GetIamOrgPolicyServicesRule) string { return v.Expression }).(pulumi.StringOutput) } // Deprecated: This field is no longer suported. -func (o GetIAMOrgPolicyServicesRuleOutput) Resources() pulumi.StringArrayOutput { - return o.ApplyT(func(v GetIAMOrgPolicyServicesRule) []string { return v.Resources }).(pulumi.StringArrayOutput) +func (o GetIamOrgPolicyServicesRuleOutput) Resources() pulumi.StringArrayOutput { + return o.ApplyT(func(v GetIamOrgPolicyServicesRule) []string { return v.Resources }).(pulumi.StringArrayOutput) } -type GetIAMOrgPolicyServicesRuleArrayOutput struct{ *pulumi.OutputState } +type GetIamOrgPolicyServicesRuleArrayOutput struct{ *pulumi.OutputState } -func (GetIAMOrgPolicyServicesRuleArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetIAMOrgPolicyServicesRule)(nil)).Elem() +func (GetIamOrgPolicyServicesRuleArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetIamOrgPolicyServicesRule)(nil)).Elem() } -func (o GetIAMOrgPolicyServicesRuleArrayOutput) ToGetIAMOrgPolicyServicesRuleArrayOutput() GetIAMOrgPolicyServicesRuleArrayOutput { +func (o GetIamOrgPolicyServicesRuleArrayOutput) ToGetIamOrgPolicyServicesRuleArrayOutput() GetIamOrgPolicyServicesRuleArrayOutput { return o } -func (o GetIAMOrgPolicyServicesRuleArrayOutput) ToGetIAMOrgPolicyServicesRuleArrayOutputWithContext(ctx context.Context) GetIAMOrgPolicyServicesRuleArrayOutput { +func (o GetIamOrgPolicyServicesRuleArrayOutput) ToGetIamOrgPolicyServicesRuleArrayOutputWithContext(ctx context.Context) GetIamOrgPolicyServicesRuleArrayOutput { return o } -func (o GetIAMOrgPolicyServicesRuleArrayOutput) Index(i pulumi.IntInput) GetIAMOrgPolicyServicesRuleOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetIAMOrgPolicyServicesRule { - return vs[0].([]GetIAMOrgPolicyServicesRule)[vs[1].(int)] - }).(GetIAMOrgPolicyServicesRuleOutput) +func (o GetIamOrgPolicyServicesRuleArrayOutput) Index(i pulumi.IntInput) GetIamOrgPolicyServicesRuleOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetIamOrgPolicyServicesRule { + return vs[0].([]GetIamOrgPolicyServicesRule)[vs[1].(int)] + }).(GetIamOrgPolicyServicesRuleOutput) } -type GetIAMOrgPolicyTimeouts struct { +type GetIamOrgPolicyTimeouts struct { // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. Read *string `pulumi:"read"` } -// GetIAMOrgPolicyTimeoutsInput is an input type that accepts GetIAMOrgPolicyTimeoutsArgs and GetIAMOrgPolicyTimeoutsOutput values. -// You can construct a concrete instance of `GetIAMOrgPolicyTimeoutsInput` via: +// GetIamOrgPolicyTimeoutsInput is an input type that accepts GetIamOrgPolicyTimeoutsArgs and GetIamOrgPolicyTimeoutsOutput values. +// You can construct a concrete instance of `GetIamOrgPolicyTimeoutsInput` via: // -// GetIAMOrgPolicyTimeoutsArgs{...} -type GetIAMOrgPolicyTimeoutsInput interface { +// GetIamOrgPolicyTimeoutsArgs{...} +type GetIamOrgPolicyTimeoutsInput interface { pulumi.Input - ToGetIAMOrgPolicyTimeoutsOutput() GetIAMOrgPolicyTimeoutsOutput - ToGetIAMOrgPolicyTimeoutsOutputWithContext(context.Context) GetIAMOrgPolicyTimeoutsOutput + ToGetIamOrgPolicyTimeoutsOutput() GetIamOrgPolicyTimeoutsOutput + ToGetIamOrgPolicyTimeoutsOutputWithContext(context.Context) GetIamOrgPolicyTimeoutsOutput } -type GetIAMOrgPolicyTimeoutsArgs struct { +type GetIamOrgPolicyTimeoutsArgs struct { // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. Read pulumi.StringPtrInput `pulumi:"read"` } -func (GetIAMOrgPolicyTimeoutsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetIAMOrgPolicyTimeouts)(nil)).Elem() +func (GetIamOrgPolicyTimeoutsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetIamOrgPolicyTimeouts)(nil)).Elem() } -func (i GetIAMOrgPolicyTimeoutsArgs) ToGetIAMOrgPolicyTimeoutsOutput() GetIAMOrgPolicyTimeoutsOutput { - return i.ToGetIAMOrgPolicyTimeoutsOutputWithContext(context.Background()) +func (i GetIamOrgPolicyTimeoutsArgs) ToGetIamOrgPolicyTimeoutsOutput() GetIamOrgPolicyTimeoutsOutput { + return i.ToGetIamOrgPolicyTimeoutsOutputWithContext(context.Background()) } -func (i GetIAMOrgPolicyTimeoutsArgs) ToGetIAMOrgPolicyTimeoutsOutputWithContext(ctx context.Context) GetIAMOrgPolicyTimeoutsOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetIAMOrgPolicyTimeoutsOutput) +func (i GetIamOrgPolicyTimeoutsArgs) ToGetIamOrgPolicyTimeoutsOutputWithContext(ctx context.Context) GetIamOrgPolicyTimeoutsOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetIamOrgPolicyTimeoutsOutput) } -func (i GetIAMOrgPolicyTimeoutsArgs) ToGetIAMOrgPolicyTimeoutsPtrOutput() GetIAMOrgPolicyTimeoutsPtrOutput { - return i.ToGetIAMOrgPolicyTimeoutsPtrOutputWithContext(context.Background()) +func (i GetIamOrgPolicyTimeoutsArgs) ToGetIamOrgPolicyTimeoutsPtrOutput() GetIamOrgPolicyTimeoutsPtrOutput { + return i.ToGetIamOrgPolicyTimeoutsPtrOutputWithContext(context.Background()) } -func (i GetIAMOrgPolicyTimeoutsArgs) ToGetIAMOrgPolicyTimeoutsPtrOutputWithContext(ctx context.Context) GetIAMOrgPolicyTimeoutsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetIAMOrgPolicyTimeoutsOutput).ToGetIAMOrgPolicyTimeoutsPtrOutputWithContext(ctx) +func (i GetIamOrgPolicyTimeoutsArgs) ToGetIamOrgPolicyTimeoutsPtrOutputWithContext(ctx context.Context) GetIamOrgPolicyTimeoutsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetIamOrgPolicyTimeoutsOutput).ToGetIamOrgPolicyTimeoutsPtrOutputWithContext(ctx) } -// GetIAMOrgPolicyTimeoutsPtrInput is an input type that accepts GetIAMOrgPolicyTimeoutsArgs, GetIAMOrgPolicyTimeoutsPtr and GetIAMOrgPolicyTimeoutsPtrOutput values. -// You can construct a concrete instance of `GetIAMOrgPolicyTimeoutsPtrInput` via: +// GetIamOrgPolicyTimeoutsPtrInput is an input type that accepts GetIamOrgPolicyTimeoutsArgs, GetIamOrgPolicyTimeoutsPtr and GetIamOrgPolicyTimeoutsPtrOutput values. +// You can construct a concrete instance of `GetIamOrgPolicyTimeoutsPtrInput` via: // -// GetIAMOrgPolicyTimeoutsArgs{...} +// GetIamOrgPolicyTimeoutsArgs{...} // // or: // // nil -type GetIAMOrgPolicyTimeoutsPtrInput interface { +type GetIamOrgPolicyTimeoutsPtrInput interface { pulumi.Input - ToGetIAMOrgPolicyTimeoutsPtrOutput() GetIAMOrgPolicyTimeoutsPtrOutput - ToGetIAMOrgPolicyTimeoutsPtrOutputWithContext(context.Context) GetIAMOrgPolicyTimeoutsPtrOutput + ToGetIamOrgPolicyTimeoutsPtrOutput() GetIamOrgPolicyTimeoutsPtrOutput + ToGetIamOrgPolicyTimeoutsPtrOutputWithContext(context.Context) GetIamOrgPolicyTimeoutsPtrOutput } -type getIAMOrgPolicyTimeoutsPtrType GetIAMOrgPolicyTimeoutsArgs +type getIamOrgPolicyTimeoutsPtrType GetIamOrgPolicyTimeoutsArgs -func GetIAMOrgPolicyTimeoutsPtr(v *GetIAMOrgPolicyTimeoutsArgs) GetIAMOrgPolicyTimeoutsPtrInput { - return (*getIAMOrgPolicyTimeoutsPtrType)(v) +func GetIamOrgPolicyTimeoutsPtr(v *GetIamOrgPolicyTimeoutsArgs) GetIamOrgPolicyTimeoutsPtrInput { + return (*getIamOrgPolicyTimeoutsPtrType)(v) } -func (*getIAMOrgPolicyTimeoutsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GetIAMOrgPolicyTimeouts)(nil)).Elem() +func (*getIamOrgPolicyTimeoutsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetIamOrgPolicyTimeouts)(nil)).Elem() } -func (i *getIAMOrgPolicyTimeoutsPtrType) ToGetIAMOrgPolicyTimeoutsPtrOutput() GetIAMOrgPolicyTimeoutsPtrOutput { - return i.ToGetIAMOrgPolicyTimeoutsPtrOutputWithContext(context.Background()) +func (i *getIamOrgPolicyTimeoutsPtrType) ToGetIamOrgPolicyTimeoutsPtrOutput() GetIamOrgPolicyTimeoutsPtrOutput { + return i.ToGetIamOrgPolicyTimeoutsPtrOutputWithContext(context.Background()) } -func (i *getIAMOrgPolicyTimeoutsPtrType) ToGetIAMOrgPolicyTimeoutsPtrOutputWithContext(ctx context.Context) GetIAMOrgPolicyTimeoutsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetIAMOrgPolicyTimeoutsPtrOutput) +func (i *getIamOrgPolicyTimeoutsPtrType) ToGetIamOrgPolicyTimeoutsPtrOutputWithContext(ctx context.Context) GetIamOrgPolicyTimeoutsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetIamOrgPolicyTimeoutsPtrOutput) } -type GetIAMOrgPolicyTimeoutsOutput struct{ *pulumi.OutputState } +type GetIamOrgPolicyTimeoutsOutput struct{ *pulumi.OutputState } -func (GetIAMOrgPolicyTimeoutsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetIAMOrgPolicyTimeouts)(nil)).Elem() +func (GetIamOrgPolicyTimeoutsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetIamOrgPolicyTimeouts)(nil)).Elem() } -func (o GetIAMOrgPolicyTimeoutsOutput) ToGetIAMOrgPolicyTimeoutsOutput() GetIAMOrgPolicyTimeoutsOutput { +func (o GetIamOrgPolicyTimeoutsOutput) ToGetIamOrgPolicyTimeoutsOutput() GetIamOrgPolicyTimeoutsOutput { return o } -func (o GetIAMOrgPolicyTimeoutsOutput) ToGetIAMOrgPolicyTimeoutsOutputWithContext(ctx context.Context) GetIAMOrgPolicyTimeoutsOutput { +func (o GetIamOrgPolicyTimeoutsOutput) ToGetIamOrgPolicyTimeoutsOutputWithContext(ctx context.Context) GetIamOrgPolicyTimeoutsOutput { return o } -func (o GetIAMOrgPolicyTimeoutsOutput) ToGetIAMOrgPolicyTimeoutsPtrOutput() GetIAMOrgPolicyTimeoutsPtrOutput { - return o.ToGetIAMOrgPolicyTimeoutsPtrOutputWithContext(context.Background()) +func (o GetIamOrgPolicyTimeoutsOutput) ToGetIamOrgPolicyTimeoutsPtrOutput() GetIamOrgPolicyTimeoutsPtrOutput { + return o.ToGetIamOrgPolicyTimeoutsPtrOutputWithContext(context.Background()) } -func (o GetIAMOrgPolicyTimeoutsOutput) ToGetIAMOrgPolicyTimeoutsPtrOutputWithContext(ctx context.Context) GetIAMOrgPolicyTimeoutsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GetIAMOrgPolicyTimeouts) *GetIAMOrgPolicyTimeouts { +func (o GetIamOrgPolicyTimeoutsOutput) ToGetIamOrgPolicyTimeoutsPtrOutputWithContext(ctx context.Context) GetIamOrgPolicyTimeoutsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetIamOrgPolicyTimeouts) *GetIamOrgPolicyTimeouts { return &v - }).(GetIAMOrgPolicyTimeoutsPtrOutput) + }).(GetIamOrgPolicyTimeoutsPtrOutput) } // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. -func (o GetIAMOrgPolicyTimeoutsOutput) Read() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetIAMOrgPolicyTimeouts) *string { return v.Read }).(pulumi.StringPtrOutput) +func (o GetIamOrgPolicyTimeoutsOutput) Read() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetIamOrgPolicyTimeouts) *string { return v.Read }).(pulumi.StringPtrOutput) } -type GetIAMOrgPolicyTimeoutsPtrOutput struct{ *pulumi.OutputState } +type GetIamOrgPolicyTimeoutsPtrOutput struct{ *pulumi.OutputState } -func (GetIAMOrgPolicyTimeoutsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GetIAMOrgPolicyTimeouts)(nil)).Elem() +func (GetIamOrgPolicyTimeoutsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetIamOrgPolicyTimeouts)(nil)).Elem() } -func (o GetIAMOrgPolicyTimeoutsPtrOutput) ToGetIAMOrgPolicyTimeoutsPtrOutput() GetIAMOrgPolicyTimeoutsPtrOutput { +func (o GetIamOrgPolicyTimeoutsPtrOutput) ToGetIamOrgPolicyTimeoutsPtrOutput() GetIamOrgPolicyTimeoutsPtrOutput { return o } -func (o GetIAMOrgPolicyTimeoutsPtrOutput) ToGetIAMOrgPolicyTimeoutsPtrOutputWithContext(ctx context.Context) GetIAMOrgPolicyTimeoutsPtrOutput { +func (o GetIamOrgPolicyTimeoutsPtrOutput) ToGetIamOrgPolicyTimeoutsPtrOutputWithContext(ctx context.Context) GetIamOrgPolicyTimeoutsPtrOutput { return o } -func (o GetIAMOrgPolicyTimeoutsPtrOutput) Elem() GetIAMOrgPolicyTimeoutsOutput { - return o.ApplyT(func(v *GetIAMOrgPolicyTimeouts) GetIAMOrgPolicyTimeouts { +func (o GetIamOrgPolicyTimeoutsPtrOutput) Elem() GetIamOrgPolicyTimeoutsOutput { + return o.ApplyT(func(v *GetIamOrgPolicyTimeouts) GetIamOrgPolicyTimeouts { if v != nil { return *v } - var ret GetIAMOrgPolicyTimeouts + var ret GetIamOrgPolicyTimeouts return ret - }).(GetIAMOrgPolicyTimeoutsOutput) + }).(GetIamOrgPolicyTimeoutsOutput) } // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. -func (o GetIAMOrgPolicyTimeoutsPtrOutput) Read() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetIAMOrgPolicyTimeouts) *string { +func (o GetIamOrgPolicyTimeoutsPtrOutput) Read() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetIamOrgPolicyTimeouts) *string { if v == nil { return nil } @@ -5254,174 +5254,174 @@ func (o GetIAMOrgPolicyTimeoutsPtrOutput) Read() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -type GetIAMRolePolicy struct { +type GetIamRolePolicy struct { // Default service strategy (`allow` or `deny`). DefaultServiceStrategy string `pulumi:"defaultServiceStrategy"` // IAM policy services. - Services map[string]GetIAMRolePolicyServices `pulumi:"services"` + Services map[string]GetIamRolePolicyServices `pulumi:"services"` } -// GetIAMRolePolicyInput is an input type that accepts GetIAMRolePolicyArgs and GetIAMRolePolicyOutput values. -// You can construct a concrete instance of `GetIAMRolePolicyInput` via: +// GetIamRolePolicyInput is an input type that accepts GetIamRolePolicyArgs and GetIamRolePolicyOutput values. +// You can construct a concrete instance of `GetIamRolePolicyInput` via: // -// GetIAMRolePolicyArgs{...} -type GetIAMRolePolicyInput interface { +// GetIamRolePolicyArgs{...} +type GetIamRolePolicyInput interface { pulumi.Input - ToGetIAMRolePolicyOutput() GetIAMRolePolicyOutput - ToGetIAMRolePolicyOutputWithContext(context.Context) GetIAMRolePolicyOutput + ToGetIamRolePolicyOutput() GetIamRolePolicyOutput + ToGetIamRolePolicyOutputWithContext(context.Context) GetIamRolePolicyOutput } -type GetIAMRolePolicyArgs struct { +type GetIamRolePolicyArgs struct { // Default service strategy (`allow` or `deny`). DefaultServiceStrategy pulumi.StringInput `pulumi:"defaultServiceStrategy"` // IAM policy services. - Services GetIAMRolePolicyServicesMapInput `pulumi:"services"` + Services GetIamRolePolicyServicesMapInput `pulumi:"services"` } -func (GetIAMRolePolicyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetIAMRolePolicy)(nil)).Elem() +func (GetIamRolePolicyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetIamRolePolicy)(nil)).Elem() } -func (i GetIAMRolePolicyArgs) ToGetIAMRolePolicyOutput() GetIAMRolePolicyOutput { - return i.ToGetIAMRolePolicyOutputWithContext(context.Background()) +func (i GetIamRolePolicyArgs) ToGetIamRolePolicyOutput() GetIamRolePolicyOutput { + return i.ToGetIamRolePolicyOutputWithContext(context.Background()) } -func (i GetIAMRolePolicyArgs) ToGetIAMRolePolicyOutputWithContext(ctx context.Context) GetIAMRolePolicyOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetIAMRolePolicyOutput) +func (i GetIamRolePolicyArgs) ToGetIamRolePolicyOutputWithContext(ctx context.Context) GetIamRolePolicyOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetIamRolePolicyOutput) } -type GetIAMRolePolicyOutput struct{ *pulumi.OutputState } +type GetIamRolePolicyOutput struct{ *pulumi.OutputState } -func (GetIAMRolePolicyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetIAMRolePolicy)(nil)).Elem() +func (GetIamRolePolicyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetIamRolePolicy)(nil)).Elem() } -func (o GetIAMRolePolicyOutput) ToGetIAMRolePolicyOutput() GetIAMRolePolicyOutput { +func (o GetIamRolePolicyOutput) ToGetIamRolePolicyOutput() GetIamRolePolicyOutput { return o } -func (o GetIAMRolePolicyOutput) ToGetIAMRolePolicyOutputWithContext(ctx context.Context) GetIAMRolePolicyOutput { +func (o GetIamRolePolicyOutput) ToGetIamRolePolicyOutputWithContext(ctx context.Context) GetIamRolePolicyOutput { return o } // Default service strategy (`allow` or `deny`). -func (o GetIAMRolePolicyOutput) DefaultServiceStrategy() pulumi.StringOutput { - return o.ApplyT(func(v GetIAMRolePolicy) string { return v.DefaultServiceStrategy }).(pulumi.StringOutput) +func (o GetIamRolePolicyOutput) DefaultServiceStrategy() pulumi.StringOutput { + return o.ApplyT(func(v GetIamRolePolicy) string { return v.DefaultServiceStrategy }).(pulumi.StringOutput) } // IAM policy services. -func (o GetIAMRolePolicyOutput) Services() GetIAMRolePolicyServicesMapOutput { - return o.ApplyT(func(v GetIAMRolePolicy) map[string]GetIAMRolePolicyServices { return v.Services }).(GetIAMRolePolicyServicesMapOutput) +func (o GetIamRolePolicyOutput) Services() GetIamRolePolicyServicesMapOutput { + return o.ApplyT(func(v GetIamRolePolicy) map[string]GetIamRolePolicyServices { return v.Services }).(GetIamRolePolicyServicesMapOutput) } -type GetIAMRolePolicyServices struct { +type GetIamRolePolicyServices struct { // List of IAM service rules (if type is `rules`). - Rules []GetIAMRolePolicyServicesRule `pulumi:"rules"` + Rules []GetIamRolePolicyServicesRule `pulumi:"rules"` // Service type (`rules`, `allow`, or `deny`). Type string `pulumi:"type"` } -// GetIAMRolePolicyServicesInput is an input type that accepts GetIAMRolePolicyServicesArgs and GetIAMRolePolicyServicesOutput values. -// You can construct a concrete instance of `GetIAMRolePolicyServicesInput` via: +// GetIamRolePolicyServicesInput is an input type that accepts GetIamRolePolicyServicesArgs and GetIamRolePolicyServicesOutput values. +// You can construct a concrete instance of `GetIamRolePolicyServicesInput` via: // -// GetIAMRolePolicyServicesArgs{...} -type GetIAMRolePolicyServicesInput interface { +// GetIamRolePolicyServicesArgs{...} +type GetIamRolePolicyServicesInput interface { pulumi.Input - ToGetIAMRolePolicyServicesOutput() GetIAMRolePolicyServicesOutput - ToGetIAMRolePolicyServicesOutputWithContext(context.Context) GetIAMRolePolicyServicesOutput + ToGetIamRolePolicyServicesOutput() GetIamRolePolicyServicesOutput + ToGetIamRolePolicyServicesOutputWithContext(context.Context) GetIamRolePolicyServicesOutput } -type GetIAMRolePolicyServicesArgs struct { +type GetIamRolePolicyServicesArgs struct { // List of IAM service rules (if type is `rules`). - Rules GetIAMRolePolicyServicesRuleArrayInput `pulumi:"rules"` + Rules GetIamRolePolicyServicesRuleArrayInput `pulumi:"rules"` // Service type (`rules`, `allow`, or `deny`). Type pulumi.StringInput `pulumi:"type"` } -func (GetIAMRolePolicyServicesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetIAMRolePolicyServices)(nil)).Elem() +func (GetIamRolePolicyServicesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetIamRolePolicyServices)(nil)).Elem() } -func (i GetIAMRolePolicyServicesArgs) ToGetIAMRolePolicyServicesOutput() GetIAMRolePolicyServicesOutput { - return i.ToGetIAMRolePolicyServicesOutputWithContext(context.Background()) +func (i GetIamRolePolicyServicesArgs) ToGetIamRolePolicyServicesOutput() GetIamRolePolicyServicesOutput { + return i.ToGetIamRolePolicyServicesOutputWithContext(context.Background()) } -func (i GetIAMRolePolicyServicesArgs) ToGetIAMRolePolicyServicesOutputWithContext(ctx context.Context) GetIAMRolePolicyServicesOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetIAMRolePolicyServicesOutput) +func (i GetIamRolePolicyServicesArgs) ToGetIamRolePolicyServicesOutputWithContext(ctx context.Context) GetIamRolePolicyServicesOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetIamRolePolicyServicesOutput) } -// GetIAMRolePolicyServicesMapInput is an input type that accepts GetIAMRolePolicyServicesMap and GetIAMRolePolicyServicesMapOutput values. -// You can construct a concrete instance of `GetIAMRolePolicyServicesMapInput` via: +// GetIamRolePolicyServicesMapInput is an input type that accepts GetIamRolePolicyServicesMap and GetIamRolePolicyServicesMapOutput values. +// You can construct a concrete instance of `GetIamRolePolicyServicesMapInput` via: // -// GetIAMRolePolicyServicesMap{ "key": GetIAMRolePolicyServicesArgs{...} } -type GetIAMRolePolicyServicesMapInput interface { +// GetIamRolePolicyServicesMap{ "key": GetIamRolePolicyServicesArgs{...} } +type GetIamRolePolicyServicesMapInput interface { pulumi.Input - ToGetIAMRolePolicyServicesMapOutput() GetIAMRolePolicyServicesMapOutput - ToGetIAMRolePolicyServicesMapOutputWithContext(context.Context) GetIAMRolePolicyServicesMapOutput + ToGetIamRolePolicyServicesMapOutput() GetIamRolePolicyServicesMapOutput + ToGetIamRolePolicyServicesMapOutputWithContext(context.Context) GetIamRolePolicyServicesMapOutput } -type GetIAMRolePolicyServicesMap map[string]GetIAMRolePolicyServicesInput +type GetIamRolePolicyServicesMap map[string]GetIamRolePolicyServicesInput -func (GetIAMRolePolicyServicesMap) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]GetIAMRolePolicyServices)(nil)).Elem() +func (GetIamRolePolicyServicesMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]GetIamRolePolicyServices)(nil)).Elem() } -func (i GetIAMRolePolicyServicesMap) ToGetIAMRolePolicyServicesMapOutput() GetIAMRolePolicyServicesMapOutput { - return i.ToGetIAMRolePolicyServicesMapOutputWithContext(context.Background()) +func (i GetIamRolePolicyServicesMap) ToGetIamRolePolicyServicesMapOutput() GetIamRolePolicyServicesMapOutput { + return i.ToGetIamRolePolicyServicesMapOutputWithContext(context.Background()) } -func (i GetIAMRolePolicyServicesMap) ToGetIAMRolePolicyServicesMapOutputWithContext(ctx context.Context) GetIAMRolePolicyServicesMapOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetIAMRolePolicyServicesMapOutput) +func (i GetIamRolePolicyServicesMap) ToGetIamRolePolicyServicesMapOutputWithContext(ctx context.Context) GetIamRolePolicyServicesMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetIamRolePolicyServicesMapOutput) } -type GetIAMRolePolicyServicesOutput struct{ *pulumi.OutputState } +type GetIamRolePolicyServicesOutput struct{ *pulumi.OutputState } -func (GetIAMRolePolicyServicesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetIAMRolePolicyServices)(nil)).Elem() +func (GetIamRolePolicyServicesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetIamRolePolicyServices)(nil)).Elem() } -func (o GetIAMRolePolicyServicesOutput) ToGetIAMRolePolicyServicesOutput() GetIAMRolePolicyServicesOutput { +func (o GetIamRolePolicyServicesOutput) ToGetIamRolePolicyServicesOutput() GetIamRolePolicyServicesOutput { return o } -func (o GetIAMRolePolicyServicesOutput) ToGetIAMRolePolicyServicesOutputWithContext(ctx context.Context) GetIAMRolePolicyServicesOutput { +func (o GetIamRolePolicyServicesOutput) ToGetIamRolePolicyServicesOutputWithContext(ctx context.Context) GetIamRolePolicyServicesOutput { return o } // List of IAM service rules (if type is `rules`). -func (o GetIAMRolePolicyServicesOutput) Rules() GetIAMRolePolicyServicesRuleArrayOutput { - return o.ApplyT(func(v GetIAMRolePolicyServices) []GetIAMRolePolicyServicesRule { return v.Rules }).(GetIAMRolePolicyServicesRuleArrayOutput) +func (o GetIamRolePolicyServicesOutput) Rules() GetIamRolePolicyServicesRuleArrayOutput { + return o.ApplyT(func(v GetIamRolePolicyServices) []GetIamRolePolicyServicesRule { return v.Rules }).(GetIamRolePolicyServicesRuleArrayOutput) } // Service type (`rules`, `allow`, or `deny`). -func (o GetIAMRolePolicyServicesOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v GetIAMRolePolicyServices) string { return v.Type }).(pulumi.StringOutput) +func (o GetIamRolePolicyServicesOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v GetIamRolePolicyServices) string { return v.Type }).(pulumi.StringOutput) } -type GetIAMRolePolicyServicesMapOutput struct{ *pulumi.OutputState } +type GetIamRolePolicyServicesMapOutput struct{ *pulumi.OutputState } -func (GetIAMRolePolicyServicesMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]GetIAMRolePolicyServices)(nil)).Elem() +func (GetIamRolePolicyServicesMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]GetIamRolePolicyServices)(nil)).Elem() } -func (o GetIAMRolePolicyServicesMapOutput) ToGetIAMRolePolicyServicesMapOutput() GetIAMRolePolicyServicesMapOutput { +func (o GetIamRolePolicyServicesMapOutput) ToGetIamRolePolicyServicesMapOutput() GetIamRolePolicyServicesMapOutput { return o } -func (o GetIAMRolePolicyServicesMapOutput) ToGetIAMRolePolicyServicesMapOutputWithContext(ctx context.Context) GetIAMRolePolicyServicesMapOutput { +func (o GetIamRolePolicyServicesMapOutput) ToGetIamRolePolicyServicesMapOutputWithContext(ctx context.Context) GetIamRolePolicyServicesMapOutput { return o } -func (o GetIAMRolePolicyServicesMapOutput) MapIndex(k pulumi.StringInput) GetIAMRolePolicyServicesOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) GetIAMRolePolicyServices { - return vs[0].(map[string]GetIAMRolePolicyServices)[vs[1].(string)] - }).(GetIAMRolePolicyServicesOutput) +func (o GetIamRolePolicyServicesMapOutput) MapIndex(k pulumi.StringInput) GetIamRolePolicyServicesOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) GetIamRolePolicyServices { + return vs[0].(map[string]GetIamRolePolicyServices)[vs[1].(string)] + }).(GetIamRolePolicyServicesOutput) } -type GetIAMRolePolicyServicesRule struct { +type GetIamRolePolicyServicesRule struct { // IAM policy rule action (`allow` or `deny`). Action string `pulumi:"action"` // IAM policy rule expression. @@ -5430,18 +5430,18 @@ type GetIAMRolePolicyServicesRule struct { Resources []string `pulumi:"resources"` } -// GetIAMRolePolicyServicesRuleInput is an input type that accepts GetIAMRolePolicyServicesRuleArgs and GetIAMRolePolicyServicesRuleOutput values. -// You can construct a concrete instance of `GetIAMRolePolicyServicesRuleInput` via: +// GetIamRolePolicyServicesRuleInput is an input type that accepts GetIamRolePolicyServicesRuleArgs and GetIamRolePolicyServicesRuleOutput values. +// You can construct a concrete instance of `GetIamRolePolicyServicesRuleInput` via: // -// GetIAMRolePolicyServicesRuleArgs{...} -type GetIAMRolePolicyServicesRuleInput interface { +// GetIamRolePolicyServicesRuleArgs{...} +type GetIamRolePolicyServicesRuleInput interface { pulumi.Input - ToGetIAMRolePolicyServicesRuleOutput() GetIAMRolePolicyServicesRuleOutput - ToGetIAMRolePolicyServicesRuleOutputWithContext(context.Context) GetIAMRolePolicyServicesRuleOutput + ToGetIamRolePolicyServicesRuleOutput() GetIamRolePolicyServicesRuleOutput + ToGetIamRolePolicyServicesRuleOutputWithContext(context.Context) GetIamRolePolicyServicesRuleOutput } -type GetIAMRolePolicyServicesRuleArgs struct { +type GetIamRolePolicyServicesRuleArgs struct { // IAM policy rule action (`allow` or `deny`). Action pulumi.StringInput `pulumi:"action"` // IAM policy rule expression. @@ -5450,222 +5450,222 @@ type GetIAMRolePolicyServicesRuleArgs struct { Resources pulumi.StringArrayInput `pulumi:"resources"` } -func (GetIAMRolePolicyServicesRuleArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetIAMRolePolicyServicesRule)(nil)).Elem() +func (GetIamRolePolicyServicesRuleArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetIamRolePolicyServicesRule)(nil)).Elem() } -func (i GetIAMRolePolicyServicesRuleArgs) ToGetIAMRolePolicyServicesRuleOutput() GetIAMRolePolicyServicesRuleOutput { - return i.ToGetIAMRolePolicyServicesRuleOutputWithContext(context.Background()) +func (i GetIamRolePolicyServicesRuleArgs) ToGetIamRolePolicyServicesRuleOutput() GetIamRolePolicyServicesRuleOutput { + return i.ToGetIamRolePolicyServicesRuleOutputWithContext(context.Background()) } -func (i GetIAMRolePolicyServicesRuleArgs) ToGetIAMRolePolicyServicesRuleOutputWithContext(ctx context.Context) GetIAMRolePolicyServicesRuleOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetIAMRolePolicyServicesRuleOutput) +func (i GetIamRolePolicyServicesRuleArgs) ToGetIamRolePolicyServicesRuleOutputWithContext(ctx context.Context) GetIamRolePolicyServicesRuleOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetIamRolePolicyServicesRuleOutput) } -// GetIAMRolePolicyServicesRuleArrayInput is an input type that accepts GetIAMRolePolicyServicesRuleArray and GetIAMRolePolicyServicesRuleArrayOutput values. -// You can construct a concrete instance of `GetIAMRolePolicyServicesRuleArrayInput` via: +// GetIamRolePolicyServicesRuleArrayInput is an input type that accepts GetIamRolePolicyServicesRuleArray and GetIamRolePolicyServicesRuleArrayOutput values. +// You can construct a concrete instance of `GetIamRolePolicyServicesRuleArrayInput` via: // -// GetIAMRolePolicyServicesRuleArray{ GetIAMRolePolicyServicesRuleArgs{...} } -type GetIAMRolePolicyServicesRuleArrayInput interface { +// GetIamRolePolicyServicesRuleArray{ GetIamRolePolicyServicesRuleArgs{...} } +type GetIamRolePolicyServicesRuleArrayInput interface { pulumi.Input - ToGetIAMRolePolicyServicesRuleArrayOutput() GetIAMRolePolicyServicesRuleArrayOutput - ToGetIAMRolePolicyServicesRuleArrayOutputWithContext(context.Context) GetIAMRolePolicyServicesRuleArrayOutput + ToGetIamRolePolicyServicesRuleArrayOutput() GetIamRolePolicyServicesRuleArrayOutput + ToGetIamRolePolicyServicesRuleArrayOutputWithContext(context.Context) GetIamRolePolicyServicesRuleArrayOutput } -type GetIAMRolePolicyServicesRuleArray []GetIAMRolePolicyServicesRuleInput +type GetIamRolePolicyServicesRuleArray []GetIamRolePolicyServicesRuleInput -func (GetIAMRolePolicyServicesRuleArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetIAMRolePolicyServicesRule)(nil)).Elem() +func (GetIamRolePolicyServicesRuleArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetIamRolePolicyServicesRule)(nil)).Elem() } -func (i GetIAMRolePolicyServicesRuleArray) ToGetIAMRolePolicyServicesRuleArrayOutput() GetIAMRolePolicyServicesRuleArrayOutput { - return i.ToGetIAMRolePolicyServicesRuleArrayOutputWithContext(context.Background()) +func (i GetIamRolePolicyServicesRuleArray) ToGetIamRolePolicyServicesRuleArrayOutput() GetIamRolePolicyServicesRuleArrayOutput { + return i.ToGetIamRolePolicyServicesRuleArrayOutputWithContext(context.Background()) } -func (i GetIAMRolePolicyServicesRuleArray) ToGetIAMRolePolicyServicesRuleArrayOutputWithContext(ctx context.Context) GetIAMRolePolicyServicesRuleArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetIAMRolePolicyServicesRuleArrayOutput) +func (i GetIamRolePolicyServicesRuleArray) ToGetIamRolePolicyServicesRuleArrayOutputWithContext(ctx context.Context) GetIamRolePolicyServicesRuleArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetIamRolePolicyServicesRuleArrayOutput) } -type GetIAMRolePolicyServicesRuleOutput struct{ *pulumi.OutputState } +type GetIamRolePolicyServicesRuleOutput struct{ *pulumi.OutputState } -func (GetIAMRolePolicyServicesRuleOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetIAMRolePolicyServicesRule)(nil)).Elem() +func (GetIamRolePolicyServicesRuleOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetIamRolePolicyServicesRule)(nil)).Elem() } -func (o GetIAMRolePolicyServicesRuleOutput) ToGetIAMRolePolicyServicesRuleOutput() GetIAMRolePolicyServicesRuleOutput { +func (o GetIamRolePolicyServicesRuleOutput) ToGetIamRolePolicyServicesRuleOutput() GetIamRolePolicyServicesRuleOutput { return o } -func (o GetIAMRolePolicyServicesRuleOutput) ToGetIAMRolePolicyServicesRuleOutputWithContext(ctx context.Context) GetIAMRolePolicyServicesRuleOutput { +func (o GetIamRolePolicyServicesRuleOutput) ToGetIamRolePolicyServicesRuleOutputWithContext(ctx context.Context) GetIamRolePolicyServicesRuleOutput { return o } // IAM policy rule action (`allow` or `deny`). -func (o GetIAMRolePolicyServicesRuleOutput) Action() pulumi.StringOutput { - return o.ApplyT(func(v GetIAMRolePolicyServicesRule) string { return v.Action }).(pulumi.StringOutput) +func (o GetIamRolePolicyServicesRuleOutput) Action() pulumi.StringOutput { + return o.ApplyT(func(v GetIamRolePolicyServicesRule) string { return v.Action }).(pulumi.StringOutput) } // IAM policy rule expression. -func (o GetIAMRolePolicyServicesRuleOutput) Expression() pulumi.StringOutput { - return o.ApplyT(func(v GetIAMRolePolicyServicesRule) string { return v.Expression }).(pulumi.StringOutput) +func (o GetIamRolePolicyServicesRuleOutput) Expression() pulumi.StringOutput { + return o.ApplyT(func(v GetIamRolePolicyServicesRule) string { return v.Expression }).(pulumi.StringOutput) } // Deprecated: This field is no longer suported. -func (o GetIAMRolePolicyServicesRuleOutput) Resources() pulumi.StringArrayOutput { - return o.ApplyT(func(v GetIAMRolePolicyServicesRule) []string { return v.Resources }).(pulumi.StringArrayOutput) +func (o GetIamRolePolicyServicesRuleOutput) Resources() pulumi.StringArrayOutput { + return o.ApplyT(func(v GetIamRolePolicyServicesRule) []string { return v.Resources }).(pulumi.StringArrayOutput) } -type GetIAMRolePolicyServicesRuleArrayOutput struct{ *pulumi.OutputState } +type GetIamRolePolicyServicesRuleArrayOutput struct{ *pulumi.OutputState } -func (GetIAMRolePolicyServicesRuleArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetIAMRolePolicyServicesRule)(nil)).Elem() +func (GetIamRolePolicyServicesRuleArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetIamRolePolicyServicesRule)(nil)).Elem() } -func (o GetIAMRolePolicyServicesRuleArrayOutput) ToGetIAMRolePolicyServicesRuleArrayOutput() GetIAMRolePolicyServicesRuleArrayOutput { +func (o GetIamRolePolicyServicesRuleArrayOutput) ToGetIamRolePolicyServicesRuleArrayOutput() GetIamRolePolicyServicesRuleArrayOutput { return o } -func (o GetIAMRolePolicyServicesRuleArrayOutput) ToGetIAMRolePolicyServicesRuleArrayOutputWithContext(ctx context.Context) GetIAMRolePolicyServicesRuleArrayOutput { +func (o GetIamRolePolicyServicesRuleArrayOutput) ToGetIamRolePolicyServicesRuleArrayOutputWithContext(ctx context.Context) GetIamRolePolicyServicesRuleArrayOutput { return o } -func (o GetIAMRolePolicyServicesRuleArrayOutput) Index(i pulumi.IntInput) GetIAMRolePolicyServicesRuleOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetIAMRolePolicyServicesRule { - return vs[0].([]GetIAMRolePolicyServicesRule)[vs[1].(int)] - }).(GetIAMRolePolicyServicesRuleOutput) +func (o GetIamRolePolicyServicesRuleArrayOutput) Index(i pulumi.IntInput) GetIamRolePolicyServicesRuleOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetIamRolePolicyServicesRule { + return vs[0].([]GetIamRolePolicyServicesRule)[vs[1].(int)] + }).(GetIamRolePolicyServicesRuleOutput) } -type GetIAMRoleTimeouts struct { +type GetIamRoleTimeouts struct { // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. Read *string `pulumi:"read"` } -// GetIAMRoleTimeoutsInput is an input type that accepts GetIAMRoleTimeoutsArgs and GetIAMRoleTimeoutsOutput values. -// You can construct a concrete instance of `GetIAMRoleTimeoutsInput` via: +// GetIamRoleTimeoutsInput is an input type that accepts GetIamRoleTimeoutsArgs and GetIamRoleTimeoutsOutput values. +// You can construct a concrete instance of `GetIamRoleTimeoutsInput` via: // -// GetIAMRoleTimeoutsArgs{...} -type GetIAMRoleTimeoutsInput interface { +// GetIamRoleTimeoutsArgs{...} +type GetIamRoleTimeoutsInput interface { pulumi.Input - ToGetIAMRoleTimeoutsOutput() GetIAMRoleTimeoutsOutput - ToGetIAMRoleTimeoutsOutputWithContext(context.Context) GetIAMRoleTimeoutsOutput + ToGetIamRoleTimeoutsOutput() GetIamRoleTimeoutsOutput + ToGetIamRoleTimeoutsOutputWithContext(context.Context) GetIamRoleTimeoutsOutput } -type GetIAMRoleTimeoutsArgs struct { +type GetIamRoleTimeoutsArgs struct { // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. Read pulumi.StringPtrInput `pulumi:"read"` } -func (GetIAMRoleTimeoutsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetIAMRoleTimeouts)(nil)).Elem() +func (GetIamRoleTimeoutsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetIamRoleTimeouts)(nil)).Elem() } -func (i GetIAMRoleTimeoutsArgs) ToGetIAMRoleTimeoutsOutput() GetIAMRoleTimeoutsOutput { - return i.ToGetIAMRoleTimeoutsOutputWithContext(context.Background()) +func (i GetIamRoleTimeoutsArgs) ToGetIamRoleTimeoutsOutput() GetIamRoleTimeoutsOutput { + return i.ToGetIamRoleTimeoutsOutputWithContext(context.Background()) } -func (i GetIAMRoleTimeoutsArgs) ToGetIAMRoleTimeoutsOutputWithContext(ctx context.Context) GetIAMRoleTimeoutsOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetIAMRoleTimeoutsOutput) +func (i GetIamRoleTimeoutsArgs) ToGetIamRoleTimeoutsOutputWithContext(ctx context.Context) GetIamRoleTimeoutsOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetIamRoleTimeoutsOutput) } -func (i GetIAMRoleTimeoutsArgs) ToGetIAMRoleTimeoutsPtrOutput() GetIAMRoleTimeoutsPtrOutput { - return i.ToGetIAMRoleTimeoutsPtrOutputWithContext(context.Background()) +func (i GetIamRoleTimeoutsArgs) ToGetIamRoleTimeoutsPtrOutput() GetIamRoleTimeoutsPtrOutput { + return i.ToGetIamRoleTimeoutsPtrOutputWithContext(context.Background()) } -func (i GetIAMRoleTimeoutsArgs) ToGetIAMRoleTimeoutsPtrOutputWithContext(ctx context.Context) GetIAMRoleTimeoutsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetIAMRoleTimeoutsOutput).ToGetIAMRoleTimeoutsPtrOutputWithContext(ctx) +func (i GetIamRoleTimeoutsArgs) ToGetIamRoleTimeoutsPtrOutputWithContext(ctx context.Context) GetIamRoleTimeoutsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetIamRoleTimeoutsOutput).ToGetIamRoleTimeoutsPtrOutputWithContext(ctx) } -// GetIAMRoleTimeoutsPtrInput is an input type that accepts GetIAMRoleTimeoutsArgs, GetIAMRoleTimeoutsPtr and GetIAMRoleTimeoutsPtrOutput values. -// You can construct a concrete instance of `GetIAMRoleTimeoutsPtrInput` via: +// GetIamRoleTimeoutsPtrInput is an input type that accepts GetIamRoleTimeoutsArgs, GetIamRoleTimeoutsPtr and GetIamRoleTimeoutsPtrOutput values. +// You can construct a concrete instance of `GetIamRoleTimeoutsPtrInput` via: // -// GetIAMRoleTimeoutsArgs{...} +// GetIamRoleTimeoutsArgs{...} // // or: // // nil -type GetIAMRoleTimeoutsPtrInput interface { +type GetIamRoleTimeoutsPtrInput interface { pulumi.Input - ToGetIAMRoleTimeoutsPtrOutput() GetIAMRoleTimeoutsPtrOutput - ToGetIAMRoleTimeoutsPtrOutputWithContext(context.Context) GetIAMRoleTimeoutsPtrOutput + ToGetIamRoleTimeoutsPtrOutput() GetIamRoleTimeoutsPtrOutput + ToGetIamRoleTimeoutsPtrOutputWithContext(context.Context) GetIamRoleTimeoutsPtrOutput } -type getIAMRoleTimeoutsPtrType GetIAMRoleTimeoutsArgs +type getIamRoleTimeoutsPtrType GetIamRoleTimeoutsArgs -func GetIAMRoleTimeoutsPtr(v *GetIAMRoleTimeoutsArgs) GetIAMRoleTimeoutsPtrInput { - return (*getIAMRoleTimeoutsPtrType)(v) +func GetIamRoleTimeoutsPtr(v *GetIamRoleTimeoutsArgs) GetIamRoleTimeoutsPtrInput { + return (*getIamRoleTimeoutsPtrType)(v) } -func (*getIAMRoleTimeoutsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GetIAMRoleTimeouts)(nil)).Elem() +func (*getIamRoleTimeoutsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetIamRoleTimeouts)(nil)).Elem() } -func (i *getIAMRoleTimeoutsPtrType) ToGetIAMRoleTimeoutsPtrOutput() GetIAMRoleTimeoutsPtrOutput { - return i.ToGetIAMRoleTimeoutsPtrOutputWithContext(context.Background()) +func (i *getIamRoleTimeoutsPtrType) ToGetIamRoleTimeoutsPtrOutput() GetIamRoleTimeoutsPtrOutput { + return i.ToGetIamRoleTimeoutsPtrOutputWithContext(context.Background()) } -func (i *getIAMRoleTimeoutsPtrType) ToGetIAMRoleTimeoutsPtrOutputWithContext(ctx context.Context) GetIAMRoleTimeoutsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetIAMRoleTimeoutsPtrOutput) +func (i *getIamRoleTimeoutsPtrType) ToGetIamRoleTimeoutsPtrOutputWithContext(ctx context.Context) GetIamRoleTimeoutsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetIamRoleTimeoutsPtrOutput) } -type GetIAMRoleTimeoutsOutput struct{ *pulumi.OutputState } +type GetIamRoleTimeoutsOutput struct{ *pulumi.OutputState } -func (GetIAMRoleTimeoutsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetIAMRoleTimeouts)(nil)).Elem() +func (GetIamRoleTimeoutsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetIamRoleTimeouts)(nil)).Elem() } -func (o GetIAMRoleTimeoutsOutput) ToGetIAMRoleTimeoutsOutput() GetIAMRoleTimeoutsOutput { +func (o GetIamRoleTimeoutsOutput) ToGetIamRoleTimeoutsOutput() GetIamRoleTimeoutsOutput { return o } -func (o GetIAMRoleTimeoutsOutput) ToGetIAMRoleTimeoutsOutputWithContext(ctx context.Context) GetIAMRoleTimeoutsOutput { +func (o GetIamRoleTimeoutsOutput) ToGetIamRoleTimeoutsOutputWithContext(ctx context.Context) GetIamRoleTimeoutsOutput { return o } -func (o GetIAMRoleTimeoutsOutput) ToGetIAMRoleTimeoutsPtrOutput() GetIAMRoleTimeoutsPtrOutput { - return o.ToGetIAMRoleTimeoutsPtrOutputWithContext(context.Background()) +func (o GetIamRoleTimeoutsOutput) ToGetIamRoleTimeoutsPtrOutput() GetIamRoleTimeoutsPtrOutput { + return o.ToGetIamRoleTimeoutsPtrOutputWithContext(context.Background()) } -func (o GetIAMRoleTimeoutsOutput) ToGetIAMRoleTimeoutsPtrOutputWithContext(ctx context.Context) GetIAMRoleTimeoutsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GetIAMRoleTimeouts) *GetIAMRoleTimeouts { +func (o GetIamRoleTimeoutsOutput) ToGetIamRoleTimeoutsPtrOutputWithContext(ctx context.Context) GetIamRoleTimeoutsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetIamRoleTimeouts) *GetIamRoleTimeouts { return &v - }).(GetIAMRoleTimeoutsPtrOutput) + }).(GetIamRoleTimeoutsPtrOutput) } // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. -func (o GetIAMRoleTimeoutsOutput) Read() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetIAMRoleTimeouts) *string { return v.Read }).(pulumi.StringPtrOutput) +func (o GetIamRoleTimeoutsOutput) Read() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetIamRoleTimeouts) *string { return v.Read }).(pulumi.StringPtrOutput) } -type GetIAMRoleTimeoutsPtrOutput struct{ *pulumi.OutputState } +type GetIamRoleTimeoutsPtrOutput struct{ *pulumi.OutputState } -func (GetIAMRoleTimeoutsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GetIAMRoleTimeouts)(nil)).Elem() +func (GetIamRoleTimeoutsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetIamRoleTimeouts)(nil)).Elem() } -func (o GetIAMRoleTimeoutsPtrOutput) ToGetIAMRoleTimeoutsPtrOutput() GetIAMRoleTimeoutsPtrOutput { +func (o GetIamRoleTimeoutsPtrOutput) ToGetIamRoleTimeoutsPtrOutput() GetIamRoleTimeoutsPtrOutput { return o } -func (o GetIAMRoleTimeoutsPtrOutput) ToGetIAMRoleTimeoutsPtrOutputWithContext(ctx context.Context) GetIAMRoleTimeoutsPtrOutput { +func (o GetIamRoleTimeoutsPtrOutput) ToGetIamRoleTimeoutsPtrOutputWithContext(ctx context.Context) GetIamRoleTimeoutsPtrOutput { return o } -func (o GetIAMRoleTimeoutsPtrOutput) Elem() GetIAMRoleTimeoutsOutput { - return o.ApplyT(func(v *GetIAMRoleTimeouts) GetIAMRoleTimeouts { +func (o GetIamRoleTimeoutsPtrOutput) Elem() GetIamRoleTimeoutsOutput { + return o.ApplyT(func(v *GetIamRoleTimeouts) GetIamRoleTimeouts { if v != nil { return *v } - var ret GetIAMRoleTimeouts + var ret GetIamRoleTimeouts return ret - }).(GetIAMRoleTimeoutsOutput) + }).(GetIamRoleTimeoutsOutput) } // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. -func (o GetIAMRoleTimeoutsPtrOutput) Read() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetIAMRoleTimeouts) *string { +func (o GetIamRoleTimeoutsPtrOutput) Read() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetIamRoleTimeouts) *string { if v == nil { return nil } @@ -6105,10 +6105,10 @@ func (o GetInstancePoolListPoolInstanceArrayOutput) Index(i pulumi.IntInput) Get }).(GetInstancePoolListPoolInstanceOutput) } -type GetNLBServiceListService struct { +type GetNlbServiceListService struct { // NLB service description. Description string `pulumi:"description"` - Healthcheck GetNLBServiceListServiceHealthcheck `pulumi:"healthcheck"` + Healthcheck GetNlbServiceListServiceHealthcheck `pulumi:"healthcheck"` // NLB service ID. Id string `pulumi:"id"` // The exoscale*instance*pool (ID) to forward traffic to. @@ -6127,21 +6127,21 @@ type GetNLBServiceListService struct { TargetPort int `pulumi:"targetPort"` } -// GetNLBServiceListServiceInput is an input type that accepts GetNLBServiceListServiceArgs and GetNLBServiceListServiceOutput values. -// You can construct a concrete instance of `GetNLBServiceListServiceInput` via: +// GetNlbServiceListServiceInput is an input type that accepts GetNlbServiceListServiceArgs and GetNlbServiceListServiceOutput values. +// You can construct a concrete instance of `GetNlbServiceListServiceInput` via: // -// GetNLBServiceListServiceArgs{...} -type GetNLBServiceListServiceInput interface { +// GetNlbServiceListServiceArgs{...} +type GetNlbServiceListServiceInput interface { pulumi.Input - ToGetNLBServiceListServiceOutput() GetNLBServiceListServiceOutput - ToGetNLBServiceListServiceOutputWithContext(context.Context) GetNLBServiceListServiceOutput + ToGetNlbServiceListServiceOutput() GetNlbServiceListServiceOutput + ToGetNlbServiceListServiceOutputWithContext(context.Context) GetNlbServiceListServiceOutput } -type GetNLBServiceListServiceArgs struct { +type GetNlbServiceListServiceArgs struct { // NLB service description. Description pulumi.StringInput `pulumi:"description"` - Healthcheck GetNLBServiceListServiceHealthcheckInput `pulumi:"healthcheck"` + Healthcheck GetNlbServiceListServiceHealthcheckInput `pulumi:"healthcheck"` // NLB service ID. Id pulumi.StringInput `pulumi:"id"` // The exoscale*instance*pool (ID) to forward traffic to. @@ -6160,127 +6160,127 @@ type GetNLBServiceListServiceArgs struct { TargetPort pulumi.IntInput `pulumi:"targetPort"` } -func (GetNLBServiceListServiceArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetNLBServiceListService)(nil)).Elem() +func (GetNlbServiceListServiceArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetNlbServiceListService)(nil)).Elem() } -func (i GetNLBServiceListServiceArgs) ToGetNLBServiceListServiceOutput() GetNLBServiceListServiceOutput { - return i.ToGetNLBServiceListServiceOutputWithContext(context.Background()) +func (i GetNlbServiceListServiceArgs) ToGetNlbServiceListServiceOutput() GetNlbServiceListServiceOutput { + return i.ToGetNlbServiceListServiceOutputWithContext(context.Background()) } -func (i GetNLBServiceListServiceArgs) ToGetNLBServiceListServiceOutputWithContext(ctx context.Context) GetNLBServiceListServiceOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNLBServiceListServiceOutput) +func (i GetNlbServiceListServiceArgs) ToGetNlbServiceListServiceOutputWithContext(ctx context.Context) GetNlbServiceListServiceOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNlbServiceListServiceOutput) } -// GetNLBServiceListServiceArrayInput is an input type that accepts GetNLBServiceListServiceArray and GetNLBServiceListServiceArrayOutput values. -// You can construct a concrete instance of `GetNLBServiceListServiceArrayInput` via: +// GetNlbServiceListServiceArrayInput is an input type that accepts GetNlbServiceListServiceArray and GetNlbServiceListServiceArrayOutput values. +// You can construct a concrete instance of `GetNlbServiceListServiceArrayInput` via: // -// GetNLBServiceListServiceArray{ GetNLBServiceListServiceArgs{...} } -type GetNLBServiceListServiceArrayInput interface { +// GetNlbServiceListServiceArray{ GetNlbServiceListServiceArgs{...} } +type GetNlbServiceListServiceArrayInput interface { pulumi.Input - ToGetNLBServiceListServiceArrayOutput() GetNLBServiceListServiceArrayOutput - ToGetNLBServiceListServiceArrayOutputWithContext(context.Context) GetNLBServiceListServiceArrayOutput + ToGetNlbServiceListServiceArrayOutput() GetNlbServiceListServiceArrayOutput + ToGetNlbServiceListServiceArrayOutputWithContext(context.Context) GetNlbServiceListServiceArrayOutput } -type GetNLBServiceListServiceArray []GetNLBServiceListServiceInput +type GetNlbServiceListServiceArray []GetNlbServiceListServiceInput -func (GetNLBServiceListServiceArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetNLBServiceListService)(nil)).Elem() +func (GetNlbServiceListServiceArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetNlbServiceListService)(nil)).Elem() } -func (i GetNLBServiceListServiceArray) ToGetNLBServiceListServiceArrayOutput() GetNLBServiceListServiceArrayOutput { - return i.ToGetNLBServiceListServiceArrayOutputWithContext(context.Background()) +func (i GetNlbServiceListServiceArray) ToGetNlbServiceListServiceArrayOutput() GetNlbServiceListServiceArrayOutput { + return i.ToGetNlbServiceListServiceArrayOutputWithContext(context.Background()) } -func (i GetNLBServiceListServiceArray) ToGetNLBServiceListServiceArrayOutputWithContext(ctx context.Context) GetNLBServiceListServiceArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNLBServiceListServiceArrayOutput) +func (i GetNlbServiceListServiceArray) ToGetNlbServiceListServiceArrayOutputWithContext(ctx context.Context) GetNlbServiceListServiceArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNlbServiceListServiceArrayOutput) } -type GetNLBServiceListServiceOutput struct{ *pulumi.OutputState } +type GetNlbServiceListServiceOutput struct{ *pulumi.OutputState } -func (GetNLBServiceListServiceOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetNLBServiceListService)(nil)).Elem() +func (GetNlbServiceListServiceOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetNlbServiceListService)(nil)).Elem() } -func (o GetNLBServiceListServiceOutput) ToGetNLBServiceListServiceOutput() GetNLBServiceListServiceOutput { +func (o GetNlbServiceListServiceOutput) ToGetNlbServiceListServiceOutput() GetNlbServiceListServiceOutput { return o } -func (o GetNLBServiceListServiceOutput) ToGetNLBServiceListServiceOutputWithContext(ctx context.Context) GetNLBServiceListServiceOutput { +func (o GetNlbServiceListServiceOutput) ToGetNlbServiceListServiceOutputWithContext(ctx context.Context) GetNlbServiceListServiceOutput { return o } // NLB service description. -func (o GetNLBServiceListServiceOutput) Description() pulumi.StringOutput { - return o.ApplyT(func(v GetNLBServiceListService) string { return v.Description }).(pulumi.StringOutput) +func (o GetNlbServiceListServiceOutput) Description() pulumi.StringOutput { + return o.ApplyT(func(v GetNlbServiceListService) string { return v.Description }).(pulumi.StringOutput) } -func (o GetNLBServiceListServiceOutput) Healthcheck() GetNLBServiceListServiceHealthcheckOutput { - return o.ApplyT(func(v GetNLBServiceListService) GetNLBServiceListServiceHealthcheck { return v.Healthcheck }).(GetNLBServiceListServiceHealthcheckOutput) +func (o GetNlbServiceListServiceOutput) Healthcheck() GetNlbServiceListServiceHealthcheckOutput { + return o.ApplyT(func(v GetNlbServiceListService) GetNlbServiceListServiceHealthcheck { return v.Healthcheck }).(GetNlbServiceListServiceHealthcheckOutput) } // NLB service ID. -func (o GetNLBServiceListServiceOutput) Id() pulumi.StringOutput { - return o.ApplyT(func(v GetNLBServiceListService) string { return v.Id }).(pulumi.StringOutput) +func (o GetNlbServiceListServiceOutput) Id() pulumi.StringOutput { + return o.ApplyT(func(v GetNlbServiceListService) string { return v.Id }).(pulumi.StringOutput) } // The exoscale*instance*pool (ID) to forward traffic to. -func (o GetNLBServiceListServiceOutput) InstancePoolId() pulumi.StringOutput { - return o.ApplyT(func(v GetNLBServiceListService) string { return v.InstancePoolId }).(pulumi.StringOutput) +func (o GetNlbServiceListServiceOutput) InstancePoolId() pulumi.StringOutput { + return o.ApplyT(func(v GetNlbServiceListService) string { return v.InstancePoolId }).(pulumi.StringOutput) } // NLB Service name. -func (o GetNLBServiceListServiceOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v GetNLBServiceListService) string { return v.Name }).(pulumi.StringOutput) +func (o GetNlbServiceListServiceOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v GetNlbServiceListService) string { return v.Name }).(pulumi.StringOutput) } // Port exposed on the NLB's public IP. -func (o GetNLBServiceListServiceOutput) Port() pulumi.IntOutput { - return o.ApplyT(func(v GetNLBServiceListService) int { return v.Port }).(pulumi.IntOutput) +func (o GetNlbServiceListServiceOutput) Port() pulumi.IntOutput { + return o.ApplyT(func(v GetNlbServiceListService) int { return v.Port }).(pulumi.IntOutput) } // Network traffic protocol. -func (o GetNLBServiceListServiceOutput) Protocol() pulumi.StringOutput { - return o.ApplyT(func(v GetNLBServiceListService) string { return v.Protocol }).(pulumi.StringOutput) +func (o GetNlbServiceListServiceOutput) Protocol() pulumi.StringOutput { + return o.ApplyT(func(v GetNlbServiceListService) string { return v.Protocol }).(pulumi.StringOutput) } // NLB Service State. -func (o GetNLBServiceListServiceOutput) State() pulumi.StringOutput { - return o.ApplyT(func(v GetNLBServiceListService) string { return v.State }).(pulumi.StringOutput) +func (o GetNlbServiceListServiceOutput) State() pulumi.StringOutput { + return o.ApplyT(func(v GetNlbServiceListService) string { return v.State }).(pulumi.StringOutput) } // The strategy (`round-robin`|`source-hash`). -func (o GetNLBServiceListServiceOutput) Strategy() pulumi.StringOutput { - return o.ApplyT(func(v GetNLBServiceListService) string { return v.Strategy }).(pulumi.StringOutput) +func (o GetNlbServiceListServiceOutput) Strategy() pulumi.StringOutput { + return o.ApplyT(func(v GetNlbServiceListService) string { return v.Strategy }).(pulumi.StringOutput) } // Port on which the network traffic will be forwarded to on the receiving instance. -func (o GetNLBServiceListServiceOutput) TargetPort() pulumi.IntOutput { - return o.ApplyT(func(v GetNLBServiceListService) int { return v.TargetPort }).(pulumi.IntOutput) +func (o GetNlbServiceListServiceOutput) TargetPort() pulumi.IntOutput { + return o.ApplyT(func(v GetNlbServiceListService) int { return v.TargetPort }).(pulumi.IntOutput) } -type GetNLBServiceListServiceArrayOutput struct{ *pulumi.OutputState } +type GetNlbServiceListServiceArrayOutput struct{ *pulumi.OutputState } -func (GetNLBServiceListServiceArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetNLBServiceListService)(nil)).Elem() +func (GetNlbServiceListServiceArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetNlbServiceListService)(nil)).Elem() } -func (o GetNLBServiceListServiceArrayOutput) ToGetNLBServiceListServiceArrayOutput() GetNLBServiceListServiceArrayOutput { +func (o GetNlbServiceListServiceArrayOutput) ToGetNlbServiceListServiceArrayOutput() GetNlbServiceListServiceArrayOutput { return o } -func (o GetNLBServiceListServiceArrayOutput) ToGetNLBServiceListServiceArrayOutputWithContext(ctx context.Context) GetNLBServiceListServiceArrayOutput { +func (o GetNlbServiceListServiceArrayOutput) ToGetNlbServiceListServiceArrayOutputWithContext(ctx context.Context) GetNlbServiceListServiceArrayOutput { return o } -func (o GetNLBServiceListServiceArrayOutput) Index(i pulumi.IntInput) GetNLBServiceListServiceOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetNLBServiceListService { - return vs[0].([]GetNLBServiceListService)[vs[1].(int)] - }).(GetNLBServiceListServiceOutput) +func (o GetNlbServiceListServiceArrayOutput) Index(i pulumi.IntInput) GetNlbServiceListServiceOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetNlbServiceListService { + return vs[0].([]GetNlbServiceListService)[vs[1].(int)] + }).(GetNlbServiceListServiceOutput) } -type GetNLBServiceListServiceHealthcheck struct { +type GetNlbServiceListServiceHealthcheck struct { Interval int `pulumi:"interval"` Mode string `pulumi:"mode"` Port int `pulumi:"port"` @@ -6290,18 +6290,18 @@ type GetNLBServiceListServiceHealthcheck struct { Uri string `pulumi:"uri"` } -// GetNLBServiceListServiceHealthcheckInput is an input type that accepts GetNLBServiceListServiceHealthcheckArgs and GetNLBServiceListServiceHealthcheckOutput values. -// You can construct a concrete instance of `GetNLBServiceListServiceHealthcheckInput` via: +// GetNlbServiceListServiceHealthcheckInput is an input type that accepts GetNlbServiceListServiceHealthcheckArgs and GetNlbServiceListServiceHealthcheckOutput values. +// You can construct a concrete instance of `GetNlbServiceListServiceHealthcheckInput` via: // -// GetNLBServiceListServiceHealthcheckArgs{...} -type GetNLBServiceListServiceHealthcheckInput interface { +// GetNlbServiceListServiceHealthcheckArgs{...} +type GetNlbServiceListServiceHealthcheckInput interface { pulumi.Input - ToGetNLBServiceListServiceHealthcheckOutput() GetNLBServiceListServiceHealthcheckOutput - ToGetNLBServiceListServiceHealthcheckOutputWithContext(context.Context) GetNLBServiceListServiceHealthcheckOutput + ToGetNlbServiceListServiceHealthcheckOutput() GetNlbServiceListServiceHealthcheckOutput + ToGetNlbServiceListServiceHealthcheckOutputWithContext(context.Context) GetNlbServiceListServiceHealthcheckOutput } -type GetNLBServiceListServiceHealthcheckArgs struct { +type GetNlbServiceListServiceHealthcheckArgs struct { Interval pulumi.IntInput `pulumi:"interval"` Mode pulumi.StringInput `pulumi:"mode"` Port pulumi.IntInput `pulumi:"port"` @@ -6311,190 +6311,190 @@ type GetNLBServiceListServiceHealthcheckArgs struct { Uri pulumi.StringInput `pulumi:"uri"` } -func (GetNLBServiceListServiceHealthcheckArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetNLBServiceListServiceHealthcheck)(nil)).Elem() +func (GetNlbServiceListServiceHealthcheckArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetNlbServiceListServiceHealthcheck)(nil)).Elem() } -func (i GetNLBServiceListServiceHealthcheckArgs) ToGetNLBServiceListServiceHealthcheckOutput() GetNLBServiceListServiceHealthcheckOutput { - return i.ToGetNLBServiceListServiceHealthcheckOutputWithContext(context.Background()) +func (i GetNlbServiceListServiceHealthcheckArgs) ToGetNlbServiceListServiceHealthcheckOutput() GetNlbServiceListServiceHealthcheckOutput { + return i.ToGetNlbServiceListServiceHealthcheckOutputWithContext(context.Background()) } -func (i GetNLBServiceListServiceHealthcheckArgs) ToGetNLBServiceListServiceHealthcheckOutputWithContext(ctx context.Context) GetNLBServiceListServiceHealthcheckOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNLBServiceListServiceHealthcheckOutput) +func (i GetNlbServiceListServiceHealthcheckArgs) ToGetNlbServiceListServiceHealthcheckOutputWithContext(ctx context.Context) GetNlbServiceListServiceHealthcheckOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNlbServiceListServiceHealthcheckOutput) } -type GetNLBServiceListServiceHealthcheckOutput struct{ *pulumi.OutputState } +type GetNlbServiceListServiceHealthcheckOutput struct{ *pulumi.OutputState } -func (GetNLBServiceListServiceHealthcheckOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetNLBServiceListServiceHealthcheck)(nil)).Elem() +func (GetNlbServiceListServiceHealthcheckOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetNlbServiceListServiceHealthcheck)(nil)).Elem() } -func (o GetNLBServiceListServiceHealthcheckOutput) ToGetNLBServiceListServiceHealthcheckOutput() GetNLBServiceListServiceHealthcheckOutput { +func (o GetNlbServiceListServiceHealthcheckOutput) ToGetNlbServiceListServiceHealthcheckOutput() GetNlbServiceListServiceHealthcheckOutput { return o } -func (o GetNLBServiceListServiceHealthcheckOutput) ToGetNLBServiceListServiceHealthcheckOutputWithContext(ctx context.Context) GetNLBServiceListServiceHealthcheckOutput { +func (o GetNlbServiceListServiceHealthcheckOutput) ToGetNlbServiceListServiceHealthcheckOutputWithContext(ctx context.Context) GetNlbServiceListServiceHealthcheckOutput { return o } -func (o GetNLBServiceListServiceHealthcheckOutput) Interval() pulumi.IntOutput { - return o.ApplyT(func(v GetNLBServiceListServiceHealthcheck) int { return v.Interval }).(pulumi.IntOutput) +func (o GetNlbServiceListServiceHealthcheckOutput) Interval() pulumi.IntOutput { + return o.ApplyT(func(v GetNlbServiceListServiceHealthcheck) int { return v.Interval }).(pulumi.IntOutput) } -func (o GetNLBServiceListServiceHealthcheckOutput) Mode() pulumi.StringOutput { - return o.ApplyT(func(v GetNLBServiceListServiceHealthcheck) string { return v.Mode }).(pulumi.StringOutput) +func (o GetNlbServiceListServiceHealthcheckOutput) Mode() pulumi.StringOutput { + return o.ApplyT(func(v GetNlbServiceListServiceHealthcheck) string { return v.Mode }).(pulumi.StringOutput) } -func (o GetNLBServiceListServiceHealthcheckOutput) Port() pulumi.IntOutput { - return o.ApplyT(func(v GetNLBServiceListServiceHealthcheck) int { return v.Port }).(pulumi.IntOutput) +func (o GetNlbServiceListServiceHealthcheckOutput) Port() pulumi.IntOutput { + return o.ApplyT(func(v GetNlbServiceListServiceHealthcheck) int { return v.Port }).(pulumi.IntOutput) } -func (o GetNLBServiceListServiceHealthcheckOutput) Retries() pulumi.IntOutput { - return o.ApplyT(func(v GetNLBServiceListServiceHealthcheck) int { return v.Retries }).(pulumi.IntOutput) +func (o GetNlbServiceListServiceHealthcheckOutput) Retries() pulumi.IntOutput { + return o.ApplyT(func(v GetNlbServiceListServiceHealthcheck) int { return v.Retries }).(pulumi.IntOutput) } -func (o GetNLBServiceListServiceHealthcheckOutput) Timeout() pulumi.IntOutput { - return o.ApplyT(func(v GetNLBServiceListServiceHealthcheck) int { return v.Timeout }).(pulumi.IntOutput) +func (o GetNlbServiceListServiceHealthcheckOutput) Timeout() pulumi.IntOutput { + return o.ApplyT(func(v GetNlbServiceListServiceHealthcheck) int { return v.Timeout }).(pulumi.IntOutput) } -func (o GetNLBServiceListServiceHealthcheckOutput) TlsSni() pulumi.StringOutput { - return o.ApplyT(func(v GetNLBServiceListServiceHealthcheck) string { return v.TlsSni }).(pulumi.StringOutput) +func (o GetNlbServiceListServiceHealthcheckOutput) TlsSni() pulumi.StringOutput { + return o.ApplyT(func(v GetNlbServiceListServiceHealthcheck) string { return v.TlsSni }).(pulumi.StringOutput) } -func (o GetNLBServiceListServiceHealthcheckOutput) Uri() pulumi.StringOutput { - return o.ApplyT(func(v GetNLBServiceListServiceHealthcheck) string { return v.Uri }).(pulumi.StringOutput) +func (o GetNlbServiceListServiceHealthcheckOutput) Uri() pulumi.StringOutput { + return o.ApplyT(func(v GetNlbServiceListServiceHealthcheck) string { return v.Uri }).(pulumi.StringOutput) } -type GetNLBServiceListTimeouts struct { +type GetNlbServiceListTimeouts struct { // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. Read *string `pulumi:"read"` } -// GetNLBServiceListTimeoutsInput is an input type that accepts GetNLBServiceListTimeoutsArgs and GetNLBServiceListTimeoutsOutput values. -// You can construct a concrete instance of `GetNLBServiceListTimeoutsInput` via: +// GetNlbServiceListTimeoutsInput is an input type that accepts GetNlbServiceListTimeoutsArgs and GetNlbServiceListTimeoutsOutput values. +// You can construct a concrete instance of `GetNlbServiceListTimeoutsInput` via: // -// GetNLBServiceListTimeoutsArgs{...} -type GetNLBServiceListTimeoutsInput interface { +// GetNlbServiceListTimeoutsArgs{...} +type GetNlbServiceListTimeoutsInput interface { pulumi.Input - ToGetNLBServiceListTimeoutsOutput() GetNLBServiceListTimeoutsOutput - ToGetNLBServiceListTimeoutsOutputWithContext(context.Context) GetNLBServiceListTimeoutsOutput + ToGetNlbServiceListTimeoutsOutput() GetNlbServiceListTimeoutsOutput + ToGetNlbServiceListTimeoutsOutputWithContext(context.Context) GetNlbServiceListTimeoutsOutput } -type GetNLBServiceListTimeoutsArgs struct { +type GetNlbServiceListTimeoutsArgs struct { // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. Read pulumi.StringPtrInput `pulumi:"read"` } -func (GetNLBServiceListTimeoutsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetNLBServiceListTimeouts)(nil)).Elem() +func (GetNlbServiceListTimeoutsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetNlbServiceListTimeouts)(nil)).Elem() } -func (i GetNLBServiceListTimeoutsArgs) ToGetNLBServiceListTimeoutsOutput() GetNLBServiceListTimeoutsOutput { - return i.ToGetNLBServiceListTimeoutsOutputWithContext(context.Background()) +func (i GetNlbServiceListTimeoutsArgs) ToGetNlbServiceListTimeoutsOutput() GetNlbServiceListTimeoutsOutput { + return i.ToGetNlbServiceListTimeoutsOutputWithContext(context.Background()) } -func (i GetNLBServiceListTimeoutsArgs) ToGetNLBServiceListTimeoutsOutputWithContext(ctx context.Context) GetNLBServiceListTimeoutsOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNLBServiceListTimeoutsOutput) +func (i GetNlbServiceListTimeoutsArgs) ToGetNlbServiceListTimeoutsOutputWithContext(ctx context.Context) GetNlbServiceListTimeoutsOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNlbServiceListTimeoutsOutput) } -func (i GetNLBServiceListTimeoutsArgs) ToGetNLBServiceListTimeoutsPtrOutput() GetNLBServiceListTimeoutsPtrOutput { - return i.ToGetNLBServiceListTimeoutsPtrOutputWithContext(context.Background()) +func (i GetNlbServiceListTimeoutsArgs) ToGetNlbServiceListTimeoutsPtrOutput() GetNlbServiceListTimeoutsPtrOutput { + return i.ToGetNlbServiceListTimeoutsPtrOutputWithContext(context.Background()) } -func (i GetNLBServiceListTimeoutsArgs) ToGetNLBServiceListTimeoutsPtrOutputWithContext(ctx context.Context) GetNLBServiceListTimeoutsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNLBServiceListTimeoutsOutput).ToGetNLBServiceListTimeoutsPtrOutputWithContext(ctx) +func (i GetNlbServiceListTimeoutsArgs) ToGetNlbServiceListTimeoutsPtrOutputWithContext(ctx context.Context) GetNlbServiceListTimeoutsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNlbServiceListTimeoutsOutput).ToGetNlbServiceListTimeoutsPtrOutputWithContext(ctx) } -// GetNLBServiceListTimeoutsPtrInput is an input type that accepts GetNLBServiceListTimeoutsArgs, GetNLBServiceListTimeoutsPtr and GetNLBServiceListTimeoutsPtrOutput values. -// You can construct a concrete instance of `GetNLBServiceListTimeoutsPtrInput` via: +// GetNlbServiceListTimeoutsPtrInput is an input type that accepts GetNlbServiceListTimeoutsArgs, GetNlbServiceListTimeoutsPtr and GetNlbServiceListTimeoutsPtrOutput values. +// You can construct a concrete instance of `GetNlbServiceListTimeoutsPtrInput` via: // -// GetNLBServiceListTimeoutsArgs{...} +// GetNlbServiceListTimeoutsArgs{...} // // or: // // nil -type GetNLBServiceListTimeoutsPtrInput interface { +type GetNlbServiceListTimeoutsPtrInput interface { pulumi.Input - ToGetNLBServiceListTimeoutsPtrOutput() GetNLBServiceListTimeoutsPtrOutput - ToGetNLBServiceListTimeoutsPtrOutputWithContext(context.Context) GetNLBServiceListTimeoutsPtrOutput + ToGetNlbServiceListTimeoutsPtrOutput() GetNlbServiceListTimeoutsPtrOutput + ToGetNlbServiceListTimeoutsPtrOutputWithContext(context.Context) GetNlbServiceListTimeoutsPtrOutput } -type getNLBServiceListTimeoutsPtrType GetNLBServiceListTimeoutsArgs +type getNlbServiceListTimeoutsPtrType GetNlbServiceListTimeoutsArgs -func GetNLBServiceListTimeoutsPtr(v *GetNLBServiceListTimeoutsArgs) GetNLBServiceListTimeoutsPtrInput { - return (*getNLBServiceListTimeoutsPtrType)(v) +func GetNlbServiceListTimeoutsPtr(v *GetNlbServiceListTimeoutsArgs) GetNlbServiceListTimeoutsPtrInput { + return (*getNlbServiceListTimeoutsPtrType)(v) } -func (*getNLBServiceListTimeoutsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GetNLBServiceListTimeouts)(nil)).Elem() +func (*getNlbServiceListTimeoutsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetNlbServiceListTimeouts)(nil)).Elem() } -func (i *getNLBServiceListTimeoutsPtrType) ToGetNLBServiceListTimeoutsPtrOutput() GetNLBServiceListTimeoutsPtrOutput { - return i.ToGetNLBServiceListTimeoutsPtrOutputWithContext(context.Background()) +func (i *getNlbServiceListTimeoutsPtrType) ToGetNlbServiceListTimeoutsPtrOutput() GetNlbServiceListTimeoutsPtrOutput { + return i.ToGetNlbServiceListTimeoutsPtrOutputWithContext(context.Background()) } -func (i *getNLBServiceListTimeoutsPtrType) ToGetNLBServiceListTimeoutsPtrOutputWithContext(ctx context.Context) GetNLBServiceListTimeoutsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNLBServiceListTimeoutsPtrOutput) +func (i *getNlbServiceListTimeoutsPtrType) ToGetNlbServiceListTimeoutsPtrOutputWithContext(ctx context.Context) GetNlbServiceListTimeoutsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNlbServiceListTimeoutsPtrOutput) } -type GetNLBServiceListTimeoutsOutput struct{ *pulumi.OutputState } +type GetNlbServiceListTimeoutsOutput struct{ *pulumi.OutputState } -func (GetNLBServiceListTimeoutsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetNLBServiceListTimeouts)(nil)).Elem() +func (GetNlbServiceListTimeoutsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetNlbServiceListTimeouts)(nil)).Elem() } -func (o GetNLBServiceListTimeoutsOutput) ToGetNLBServiceListTimeoutsOutput() GetNLBServiceListTimeoutsOutput { +func (o GetNlbServiceListTimeoutsOutput) ToGetNlbServiceListTimeoutsOutput() GetNlbServiceListTimeoutsOutput { return o } -func (o GetNLBServiceListTimeoutsOutput) ToGetNLBServiceListTimeoutsOutputWithContext(ctx context.Context) GetNLBServiceListTimeoutsOutput { +func (o GetNlbServiceListTimeoutsOutput) ToGetNlbServiceListTimeoutsOutputWithContext(ctx context.Context) GetNlbServiceListTimeoutsOutput { return o } -func (o GetNLBServiceListTimeoutsOutput) ToGetNLBServiceListTimeoutsPtrOutput() GetNLBServiceListTimeoutsPtrOutput { - return o.ToGetNLBServiceListTimeoutsPtrOutputWithContext(context.Background()) +func (o GetNlbServiceListTimeoutsOutput) ToGetNlbServiceListTimeoutsPtrOutput() GetNlbServiceListTimeoutsPtrOutput { + return o.ToGetNlbServiceListTimeoutsPtrOutputWithContext(context.Background()) } -func (o GetNLBServiceListTimeoutsOutput) ToGetNLBServiceListTimeoutsPtrOutputWithContext(ctx context.Context) GetNLBServiceListTimeoutsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GetNLBServiceListTimeouts) *GetNLBServiceListTimeouts { +func (o GetNlbServiceListTimeoutsOutput) ToGetNlbServiceListTimeoutsPtrOutputWithContext(ctx context.Context) GetNlbServiceListTimeoutsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetNlbServiceListTimeouts) *GetNlbServiceListTimeouts { return &v - }).(GetNLBServiceListTimeoutsPtrOutput) + }).(GetNlbServiceListTimeoutsPtrOutput) } // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. -func (o GetNLBServiceListTimeoutsOutput) Read() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNLBServiceListTimeouts) *string { return v.Read }).(pulumi.StringPtrOutput) +func (o GetNlbServiceListTimeoutsOutput) Read() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNlbServiceListTimeouts) *string { return v.Read }).(pulumi.StringPtrOutput) } -type GetNLBServiceListTimeoutsPtrOutput struct{ *pulumi.OutputState } +type GetNlbServiceListTimeoutsPtrOutput struct{ *pulumi.OutputState } -func (GetNLBServiceListTimeoutsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GetNLBServiceListTimeouts)(nil)).Elem() +func (GetNlbServiceListTimeoutsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetNlbServiceListTimeouts)(nil)).Elem() } -func (o GetNLBServiceListTimeoutsPtrOutput) ToGetNLBServiceListTimeoutsPtrOutput() GetNLBServiceListTimeoutsPtrOutput { +func (o GetNlbServiceListTimeoutsPtrOutput) ToGetNlbServiceListTimeoutsPtrOutput() GetNlbServiceListTimeoutsPtrOutput { return o } -func (o GetNLBServiceListTimeoutsPtrOutput) ToGetNLBServiceListTimeoutsPtrOutputWithContext(ctx context.Context) GetNLBServiceListTimeoutsPtrOutput { +func (o GetNlbServiceListTimeoutsPtrOutput) ToGetNlbServiceListTimeoutsPtrOutputWithContext(ctx context.Context) GetNlbServiceListTimeoutsPtrOutput { return o } -func (o GetNLBServiceListTimeoutsPtrOutput) Elem() GetNLBServiceListTimeoutsOutput { - return o.ApplyT(func(v *GetNLBServiceListTimeouts) GetNLBServiceListTimeouts { +func (o GetNlbServiceListTimeoutsPtrOutput) Elem() GetNlbServiceListTimeoutsOutput { + return o.ApplyT(func(v *GetNlbServiceListTimeouts) GetNlbServiceListTimeouts { if v != nil { return *v } - var ret GetNLBServiceListTimeouts + var ret GetNlbServiceListTimeouts return ret - }).(GetNLBServiceListTimeoutsOutput) + }).(GetNlbServiceListTimeoutsOutput) } // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. -func (o GetNLBServiceListTimeoutsPtrOutput) Read() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetNLBServiceListTimeouts) *string { +func (o GetNlbServiceListTimeoutsPtrOutput) Read() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetNlbServiceListTimeouts) *string { if v == nil { return nil } @@ -6502,7 +6502,7 @@ func (o GetNLBServiceListTimeoutsPtrOutput) Read() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -type GetSKSClusterListCluster struct { +type GetSksClusterListCluster struct { // Deprecated: This attribute has been replaced by `exoscale_ccm`/`metrics_server` attributes, it will be removed in a future release. Addons []string `pulumi:"addons"` AggregationCa string `pulumi:"aggregationCa"` @@ -6519,25 +6519,25 @@ type GetSKSClusterListCluster struct { MetricsServer *bool `pulumi:"metricsServer"` Name *string `pulumi:"name"` Nodepools []string `pulumi:"nodepools"` - Oidc GetSKSClusterListClusterOidc `pulumi:"oidc"` + Oidc GetSksClusterListClusterOidc `pulumi:"oidc"` ServiceLevel *string `pulumi:"serviceLevel"` State string `pulumi:"state"` Version string `pulumi:"version"` Zone string `pulumi:"zone"` } -// GetSKSClusterListClusterInput is an input type that accepts GetSKSClusterListClusterArgs and GetSKSClusterListClusterOutput values. -// You can construct a concrete instance of `GetSKSClusterListClusterInput` via: +// GetSksClusterListClusterInput is an input type that accepts GetSksClusterListClusterArgs and GetSksClusterListClusterOutput values. +// You can construct a concrete instance of `GetSksClusterListClusterInput` via: // -// GetSKSClusterListClusterArgs{...} -type GetSKSClusterListClusterInput interface { +// GetSksClusterListClusterArgs{...} +type GetSksClusterListClusterInput interface { pulumi.Input - ToGetSKSClusterListClusterOutput() GetSKSClusterListClusterOutput - ToGetSKSClusterListClusterOutputWithContext(context.Context) GetSKSClusterListClusterOutput + ToGetSksClusterListClusterOutput() GetSksClusterListClusterOutput + ToGetSksClusterListClusterOutputWithContext(context.Context) GetSksClusterListClusterOutput } -type GetSKSClusterListClusterArgs struct { +type GetSksClusterListClusterArgs struct { // Deprecated: This attribute has been replaced by `exoscale_ccm`/`metrics_server` attributes, it will be removed in a future release. Addons pulumi.StringArrayInput `pulumi:"addons"` AggregationCa pulumi.StringInput `pulumi:"aggregationCa"` @@ -6554,166 +6554,166 @@ type GetSKSClusterListClusterArgs struct { MetricsServer pulumi.BoolPtrInput `pulumi:"metricsServer"` Name pulumi.StringPtrInput `pulumi:"name"` Nodepools pulumi.StringArrayInput `pulumi:"nodepools"` - Oidc GetSKSClusterListClusterOidcInput `pulumi:"oidc"` + Oidc GetSksClusterListClusterOidcInput `pulumi:"oidc"` ServiceLevel pulumi.StringPtrInput `pulumi:"serviceLevel"` State pulumi.StringInput `pulumi:"state"` Version pulumi.StringInput `pulumi:"version"` Zone pulumi.StringInput `pulumi:"zone"` } -func (GetSKSClusterListClusterArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetSKSClusterListCluster)(nil)).Elem() +func (GetSksClusterListClusterArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetSksClusterListCluster)(nil)).Elem() } -func (i GetSKSClusterListClusterArgs) ToGetSKSClusterListClusterOutput() GetSKSClusterListClusterOutput { - return i.ToGetSKSClusterListClusterOutputWithContext(context.Background()) +func (i GetSksClusterListClusterArgs) ToGetSksClusterListClusterOutput() GetSksClusterListClusterOutput { + return i.ToGetSksClusterListClusterOutputWithContext(context.Background()) } -func (i GetSKSClusterListClusterArgs) ToGetSKSClusterListClusterOutputWithContext(ctx context.Context) GetSKSClusterListClusterOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetSKSClusterListClusterOutput) +func (i GetSksClusterListClusterArgs) ToGetSksClusterListClusterOutputWithContext(ctx context.Context) GetSksClusterListClusterOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSksClusterListClusterOutput) } -// GetSKSClusterListClusterArrayInput is an input type that accepts GetSKSClusterListClusterArray and GetSKSClusterListClusterArrayOutput values. -// You can construct a concrete instance of `GetSKSClusterListClusterArrayInput` via: +// GetSksClusterListClusterArrayInput is an input type that accepts GetSksClusterListClusterArray and GetSksClusterListClusterArrayOutput values. +// You can construct a concrete instance of `GetSksClusterListClusterArrayInput` via: // -// GetSKSClusterListClusterArray{ GetSKSClusterListClusterArgs{...} } -type GetSKSClusterListClusterArrayInput interface { +// GetSksClusterListClusterArray{ GetSksClusterListClusterArgs{...} } +type GetSksClusterListClusterArrayInput interface { pulumi.Input - ToGetSKSClusterListClusterArrayOutput() GetSKSClusterListClusterArrayOutput - ToGetSKSClusterListClusterArrayOutputWithContext(context.Context) GetSKSClusterListClusterArrayOutput + ToGetSksClusterListClusterArrayOutput() GetSksClusterListClusterArrayOutput + ToGetSksClusterListClusterArrayOutputWithContext(context.Context) GetSksClusterListClusterArrayOutput } -type GetSKSClusterListClusterArray []GetSKSClusterListClusterInput +type GetSksClusterListClusterArray []GetSksClusterListClusterInput -func (GetSKSClusterListClusterArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetSKSClusterListCluster)(nil)).Elem() +func (GetSksClusterListClusterArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetSksClusterListCluster)(nil)).Elem() } -func (i GetSKSClusterListClusterArray) ToGetSKSClusterListClusterArrayOutput() GetSKSClusterListClusterArrayOutput { - return i.ToGetSKSClusterListClusterArrayOutputWithContext(context.Background()) +func (i GetSksClusterListClusterArray) ToGetSksClusterListClusterArrayOutput() GetSksClusterListClusterArrayOutput { + return i.ToGetSksClusterListClusterArrayOutputWithContext(context.Background()) } -func (i GetSKSClusterListClusterArray) ToGetSKSClusterListClusterArrayOutputWithContext(ctx context.Context) GetSKSClusterListClusterArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetSKSClusterListClusterArrayOutput) +func (i GetSksClusterListClusterArray) ToGetSksClusterListClusterArrayOutputWithContext(ctx context.Context) GetSksClusterListClusterArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSksClusterListClusterArrayOutput) } -type GetSKSClusterListClusterOutput struct{ *pulumi.OutputState } +type GetSksClusterListClusterOutput struct{ *pulumi.OutputState } -func (GetSKSClusterListClusterOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetSKSClusterListCluster)(nil)).Elem() +func (GetSksClusterListClusterOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetSksClusterListCluster)(nil)).Elem() } -func (o GetSKSClusterListClusterOutput) ToGetSKSClusterListClusterOutput() GetSKSClusterListClusterOutput { +func (o GetSksClusterListClusterOutput) ToGetSksClusterListClusterOutput() GetSksClusterListClusterOutput { return o } -func (o GetSKSClusterListClusterOutput) ToGetSKSClusterListClusterOutputWithContext(ctx context.Context) GetSKSClusterListClusterOutput { +func (o GetSksClusterListClusterOutput) ToGetSksClusterListClusterOutputWithContext(ctx context.Context) GetSksClusterListClusterOutput { return o } // Deprecated: This attribute has been replaced by `exoscale_ccm`/`metrics_server` attributes, it will be removed in a future release. -func (o GetSKSClusterListClusterOutput) Addons() pulumi.StringArrayOutput { - return o.ApplyT(func(v GetSKSClusterListCluster) []string { return v.Addons }).(pulumi.StringArrayOutput) +func (o GetSksClusterListClusterOutput) Addons() pulumi.StringArrayOutput { + return o.ApplyT(func(v GetSksClusterListCluster) []string { return v.Addons }).(pulumi.StringArrayOutput) } -func (o GetSKSClusterListClusterOutput) AggregationCa() pulumi.StringOutput { - return o.ApplyT(func(v GetSKSClusterListCluster) string { return v.AggregationCa }).(pulumi.StringOutput) +func (o GetSksClusterListClusterOutput) AggregationCa() pulumi.StringOutput { + return o.ApplyT(func(v GetSksClusterListCluster) string { return v.AggregationCa }).(pulumi.StringOutput) } -func (o GetSKSClusterListClusterOutput) AutoUpgrade() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetSKSClusterListCluster) *bool { return v.AutoUpgrade }).(pulumi.BoolPtrOutput) +func (o GetSksClusterListClusterOutput) AutoUpgrade() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetSksClusterListCluster) *bool { return v.AutoUpgrade }).(pulumi.BoolPtrOutput) } -func (o GetSKSClusterListClusterOutput) Cni() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterListCluster) *string { return v.Cni }).(pulumi.StringPtrOutput) +func (o GetSksClusterListClusterOutput) Cni() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterListCluster) *string { return v.Cni }).(pulumi.StringPtrOutput) } -func (o GetSKSClusterListClusterOutput) ControlPlaneCa() pulumi.StringOutput { - return o.ApplyT(func(v GetSKSClusterListCluster) string { return v.ControlPlaneCa }).(pulumi.StringOutput) +func (o GetSksClusterListClusterOutput) ControlPlaneCa() pulumi.StringOutput { + return o.ApplyT(func(v GetSksClusterListCluster) string { return v.ControlPlaneCa }).(pulumi.StringOutput) } -func (o GetSKSClusterListClusterOutput) CreatedAt() pulumi.StringOutput { - return o.ApplyT(func(v GetSKSClusterListCluster) string { return v.CreatedAt }).(pulumi.StringOutput) +func (o GetSksClusterListClusterOutput) CreatedAt() pulumi.StringOutput { + return o.ApplyT(func(v GetSksClusterListCluster) string { return v.CreatedAt }).(pulumi.StringOutput) } -func (o GetSKSClusterListClusterOutput) Description() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterListCluster) *string { return v.Description }).(pulumi.StringPtrOutput) +func (o GetSksClusterListClusterOutput) Description() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterListCluster) *string { return v.Description }).(pulumi.StringPtrOutput) } -func (o GetSKSClusterListClusterOutput) Endpoint() pulumi.StringOutput { - return o.ApplyT(func(v GetSKSClusterListCluster) string { return v.Endpoint }).(pulumi.StringOutput) +func (o GetSksClusterListClusterOutput) Endpoint() pulumi.StringOutput { + return o.ApplyT(func(v GetSksClusterListCluster) string { return v.Endpoint }).(pulumi.StringOutput) } -func (o GetSKSClusterListClusterOutput) ExoscaleCcm() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetSKSClusterListCluster) *bool { return v.ExoscaleCcm }).(pulumi.BoolPtrOutput) +func (o GetSksClusterListClusterOutput) ExoscaleCcm() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetSksClusterListCluster) *bool { return v.ExoscaleCcm }).(pulumi.BoolPtrOutput) } -func (o GetSKSClusterListClusterOutput) Id() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterListCluster) *string { return v.Id }).(pulumi.StringPtrOutput) +func (o GetSksClusterListClusterOutput) Id() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterListCluster) *string { return v.Id }).(pulumi.StringPtrOutput) } -func (o GetSKSClusterListClusterOutput) KubeletCa() pulumi.StringOutput { - return o.ApplyT(func(v GetSKSClusterListCluster) string { return v.KubeletCa }).(pulumi.StringOutput) +func (o GetSksClusterListClusterOutput) KubeletCa() pulumi.StringOutput { + return o.ApplyT(func(v GetSksClusterListCluster) string { return v.KubeletCa }).(pulumi.StringOutput) } -func (o GetSKSClusterListClusterOutput) Labels() pulumi.StringMapOutput { - return o.ApplyT(func(v GetSKSClusterListCluster) map[string]string { return v.Labels }).(pulumi.StringMapOutput) +func (o GetSksClusterListClusterOutput) Labels() pulumi.StringMapOutput { + return o.ApplyT(func(v GetSksClusterListCluster) map[string]string { return v.Labels }).(pulumi.StringMapOutput) } -func (o GetSKSClusterListClusterOutput) MetricsServer() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetSKSClusterListCluster) *bool { return v.MetricsServer }).(pulumi.BoolPtrOutput) +func (o GetSksClusterListClusterOutput) MetricsServer() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetSksClusterListCluster) *bool { return v.MetricsServer }).(pulumi.BoolPtrOutput) } -func (o GetSKSClusterListClusterOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterListCluster) *string { return v.Name }).(pulumi.StringPtrOutput) +func (o GetSksClusterListClusterOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterListCluster) *string { return v.Name }).(pulumi.StringPtrOutput) } -func (o GetSKSClusterListClusterOutput) Nodepools() pulumi.StringArrayOutput { - return o.ApplyT(func(v GetSKSClusterListCluster) []string { return v.Nodepools }).(pulumi.StringArrayOutput) +func (o GetSksClusterListClusterOutput) Nodepools() pulumi.StringArrayOutput { + return o.ApplyT(func(v GetSksClusterListCluster) []string { return v.Nodepools }).(pulumi.StringArrayOutput) } -func (o GetSKSClusterListClusterOutput) Oidc() GetSKSClusterListClusterOidcOutput { - return o.ApplyT(func(v GetSKSClusterListCluster) GetSKSClusterListClusterOidc { return v.Oidc }).(GetSKSClusterListClusterOidcOutput) +func (o GetSksClusterListClusterOutput) Oidc() GetSksClusterListClusterOidcOutput { + return o.ApplyT(func(v GetSksClusterListCluster) GetSksClusterListClusterOidc { return v.Oidc }).(GetSksClusterListClusterOidcOutput) } -func (o GetSKSClusterListClusterOutput) ServiceLevel() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterListCluster) *string { return v.ServiceLevel }).(pulumi.StringPtrOutput) +func (o GetSksClusterListClusterOutput) ServiceLevel() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterListCluster) *string { return v.ServiceLevel }).(pulumi.StringPtrOutput) } -func (o GetSKSClusterListClusterOutput) State() pulumi.StringOutput { - return o.ApplyT(func(v GetSKSClusterListCluster) string { return v.State }).(pulumi.StringOutput) +func (o GetSksClusterListClusterOutput) State() pulumi.StringOutput { + return o.ApplyT(func(v GetSksClusterListCluster) string { return v.State }).(pulumi.StringOutput) } -func (o GetSKSClusterListClusterOutput) Version() pulumi.StringOutput { - return o.ApplyT(func(v GetSKSClusterListCluster) string { return v.Version }).(pulumi.StringOutput) +func (o GetSksClusterListClusterOutput) Version() pulumi.StringOutput { + return o.ApplyT(func(v GetSksClusterListCluster) string { return v.Version }).(pulumi.StringOutput) } -func (o GetSKSClusterListClusterOutput) Zone() pulumi.StringOutput { - return o.ApplyT(func(v GetSKSClusterListCluster) string { return v.Zone }).(pulumi.StringOutput) +func (o GetSksClusterListClusterOutput) Zone() pulumi.StringOutput { + return o.ApplyT(func(v GetSksClusterListCluster) string { return v.Zone }).(pulumi.StringOutput) } -type GetSKSClusterListClusterArrayOutput struct{ *pulumi.OutputState } +type GetSksClusterListClusterArrayOutput struct{ *pulumi.OutputState } -func (GetSKSClusterListClusterArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetSKSClusterListCluster)(nil)).Elem() +func (GetSksClusterListClusterArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetSksClusterListCluster)(nil)).Elem() } -func (o GetSKSClusterListClusterArrayOutput) ToGetSKSClusterListClusterArrayOutput() GetSKSClusterListClusterArrayOutput { +func (o GetSksClusterListClusterArrayOutput) ToGetSksClusterListClusterArrayOutput() GetSksClusterListClusterArrayOutput { return o } -func (o GetSKSClusterListClusterArrayOutput) ToGetSKSClusterListClusterArrayOutputWithContext(ctx context.Context) GetSKSClusterListClusterArrayOutput { +func (o GetSksClusterListClusterArrayOutput) ToGetSksClusterListClusterArrayOutputWithContext(ctx context.Context) GetSksClusterListClusterArrayOutput { return o } -func (o GetSKSClusterListClusterArrayOutput) Index(i pulumi.IntInput) GetSKSClusterListClusterOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetSKSClusterListCluster { - return vs[0].([]GetSKSClusterListCluster)[vs[1].(int)] - }).(GetSKSClusterListClusterOutput) +func (o GetSksClusterListClusterArrayOutput) Index(i pulumi.IntInput) GetSksClusterListClusterOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetSksClusterListCluster { + return vs[0].([]GetSksClusterListCluster)[vs[1].(int)] + }).(GetSksClusterListClusterOutput) } -type GetSKSClusterListClusterOidc struct { +type GetSksClusterListClusterOidc struct { ClientId string `pulumi:"clientId"` GroupsClaim *string `pulumi:"groupsClaim"` GroupsPrefix *string `pulumi:"groupsPrefix"` @@ -6723,18 +6723,18 @@ type GetSKSClusterListClusterOidc struct { UsernamePrefix *string `pulumi:"usernamePrefix"` } -// GetSKSClusterListClusterOidcInput is an input type that accepts GetSKSClusterListClusterOidcArgs and GetSKSClusterListClusterOidcOutput values. -// You can construct a concrete instance of `GetSKSClusterListClusterOidcInput` via: +// GetSksClusterListClusterOidcInput is an input type that accepts GetSksClusterListClusterOidcArgs and GetSksClusterListClusterOidcOutput values. +// You can construct a concrete instance of `GetSksClusterListClusterOidcInput` via: // -// GetSKSClusterListClusterOidcArgs{...} -type GetSKSClusterListClusterOidcInput interface { +// GetSksClusterListClusterOidcArgs{...} +type GetSksClusterListClusterOidcInput interface { pulumi.Input - ToGetSKSClusterListClusterOidcOutput() GetSKSClusterListClusterOidcOutput - ToGetSKSClusterListClusterOidcOutputWithContext(context.Context) GetSKSClusterListClusterOidcOutput + ToGetSksClusterListClusterOidcOutput() GetSksClusterListClusterOidcOutput + ToGetSksClusterListClusterOidcOutputWithContext(context.Context) GetSksClusterListClusterOidcOutput } -type GetSKSClusterListClusterOidcArgs struct { +type GetSksClusterListClusterOidcArgs struct { ClientId pulumi.StringInput `pulumi:"clientId"` GroupsClaim pulumi.StringPtrInput `pulumi:"groupsClaim"` GroupsPrefix pulumi.StringPtrInput `pulumi:"groupsPrefix"` @@ -6744,61 +6744,61 @@ type GetSKSClusterListClusterOidcArgs struct { UsernamePrefix pulumi.StringPtrInput `pulumi:"usernamePrefix"` } -func (GetSKSClusterListClusterOidcArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetSKSClusterListClusterOidc)(nil)).Elem() +func (GetSksClusterListClusterOidcArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetSksClusterListClusterOidc)(nil)).Elem() } -func (i GetSKSClusterListClusterOidcArgs) ToGetSKSClusterListClusterOidcOutput() GetSKSClusterListClusterOidcOutput { - return i.ToGetSKSClusterListClusterOidcOutputWithContext(context.Background()) +func (i GetSksClusterListClusterOidcArgs) ToGetSksClusterListClusterOidcOutput() GetSksClusterListClusterOidcOutput { + return i.ToGetSksClusterListClusterOidcOutputWithContext(context.Background()) } -func (i GetSKSClusterListClusterOidcArgs) ToGetSKSClusterListClusterOidcOutputWithContext(ctx context.Context) GetSKSClusterListClusterOidcOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetSKSClusterListClusterOidcOutput) +func (i GetSksClusterListClusterOidcArgs) ToGetSksClusterListClusterOidcOutputWithContext(ctx context.Context) GetSksClusterListClusterOidcOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSksClusterListClusterOidcOutput) } -type GetSKSClusterListClusterOidcOutput struct{ *pulumi.OutputState } +type GetSksClusterListClusterOidcOutput struct{ *pulumi.OutputState } -func (GetSKSClusterListClusterOidcOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetSKSClusterListClusterOidc)(nil)).Elem() +func (GetSksClusterListClusterOidcOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetSksClusterListClusterOidc)(nil)).Elem() } -func (o GetSKSClusterListClusterOidcOutput) ToGetSKSClusterListClusterOidcOutput() GetSKSClusterListClusterOidcOutput { +func (o GetSksClusterListClusterOidcOutput) ToGetSksClusterListClusterOidcOutput() GetSksClusterListClusterOidcOutput { return o } -func (o GetSKSClusterListClusterOidcOutput) ToGetSKSClusterListClusterOidcOutputWithContext(ctx context.Context) GetSKSClusterListClusterOidcOutput { +func (o GetSksClusterListClusterOidcOutput) ToGetSksClusterListClusterOidcOutputWithContext(ctx context.Context) GetSksClusterListClusterOidcOutput { return o } -func (o GetSKSClusterListClusterOidcOutput) ClientId() pulumi.StringOutput { - return o.ApplyT(func(v GetSKSClusterListClusterOidc) string { return v.ClientId }).(pulumi.StringOutput) +func (o GetSksClusterListClusterOidcOutput) ClientId() pulumi.StringOutput { + return o.ApplyT(func(v GetSksClusterListClusterOidc) string { return v.ClientId }).(pulumi.StringOutput) } -func (o GetSKSClusterListClusterOidcOutput) GroupsClaim() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterListClusterOidc) *string { return v.GroupsClaim }).(pulumi.StringPtrOutput) +func (o GetSksClusterListClusterOidcOutput) GroupsClaim() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterListClusterOidc) *string { return v.GroupsClaim }).(pulumi.StringPtrOutput) } -func (o GetSKSClusterListClusterOidcOutput) GroupsPrefix() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterListClusterOidc) *string { return v.GroupsPrefix }).(pulumi.StringPtrOutput) +func (o GetSksClusterListClusterOidcOutput) GroupsPrefix() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterListClusterOidc) *string { return v.GroupsPrefix }).(pulumi.StringPtrOutput) } -func (o GetSKSClusterListClusterOidcOutput) IssuerUrl() pulumi.StringOutput { - return o.ApplyT(func(v GetSKSClusterListClusterOidc) string { return v.IssuerUrl }).(pulumi.StringOutput) +func (o GetSksClusterListClusterOidcOutput) IssuerUrl() pulumi.StringOutput { + return o.ApplyT(func(v GetSksClusterListClusterOidc) string { return v.IssuerUrl }).(pulumi.StringOutput) } -func (o GetSKSClusterListClusterOidcOutput) RequiredClaim() pulumi.StringMapOutput { - return o.ApplyT(func(v GetSKSClusterListClusterOidc) map[string]string { return v.RequiredClaim }).(pulumi.StringMapOutput) +func (o GetSksClusterListClusterOidcOutput) RequiredClaim() pulumi.StringMapOutput { + return o.ApplyT(func(v GetSksClusterListClusterOidc) map[string]string { return v.RequiredClaim }).(pulumi.StringMapOutput) } -func (o GetSKSClusterListClusterOidcOutput) UsernameClaim() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterListClusterOidc) *string { return v.UsernameClaim }).(pulumi.StringPtrOutput) +func (o GetSksClusterListClusterOidcOutput) UsernameClaim() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterListClusterOidc) *string { return v.UsernameClaim }).(pulumi.StringPtrOutput) } -func (o GetSKSClusterListClusterOidcOutput) UsernamePrefix() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterListClusterOidc) *string { return v.UsernamePrefix }).(pulumi.StringPtrOutput) +func (o GetSksClusterListClusterOidcOutput) UsernamePrefix() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterListClusterOidc) *string { return v.UsernamePrefix }).(pulumi.StringPtrOutput) } -type GetSKSClusterOidc struct { +type GetSksClusterOidc struct { // The OpenID client ID. ClientId string `pulumi:"clientId"` // An OpenID JWT claim to use as the user's group. @@ -6815,18 +6815,18 @@ type GetSKSClusterOidc struct { UsernamePrefix *string `pulumi:"usernamePrefix"` } -// GetSKSClusterOidcInput is an input type that accepts GetSKSClusterOidcArgs and GetSKSClusterOidcOutput values. -// You can construct a concrete instance of `GetSKSClusterOidcInput` via: +// GetSksClusterOidcInput is an input type that accepts GetSksClusterOidcArgs and GetSksClusterOidcOutput values. +// You can construct a concrete instance of `GetSksClusterOidcInput` via: // -// GetSKSClusterOidcArgs{...} -type GetSKSClusterOidcInput interface { +// GetSksClusterOidcArgs{...} +type GetSksClusterOidcInput interface { pulumi.Input - ToGetSKSClusterOidcOutput() GetSKSClusterOidcOutput - ToGetSKSClusterOidcOutputWithContext(context.Context) GetSKSClusterOidcOutput + ToGetSksClusterOidcOutput() GetSksClusterOidcOutput + ToGetSksClusterOidcOutputWithContext(context.Context) GetSksClusterOidcOutput } -type GetSKSClusterOidcArgs struct { +type GetSksClusterOidcArgs struct { // The OpenID client ID. ClientId pulumi.StringInput `pulumi:"clientId"` // An OpenID JWT claim to use as the user's group. @@ -6843,145 +6843,145 @@ type GetSKSClusterOidcArgs struct { UsernamePrefix pulumi.StringPtrInput `pulumi:"usernamePrefix"` } -func (GetSKSClusterOidcArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetSKSClusterOidc)(nil)).Elem() +func (GetSksClusterOidcArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetSksClusterOidc)(nil)).Elem() } -func (i GetSKSClusterOidcArgs) ToGetSKSClusterOidcOutput() GetSKSClusterOidcOutput { - return i.ToGetSKSClusterOidcOutputWithContext(context.Background()) +func (i GetSksClusterOidcArgs) ToGetSksClusterOidcOutput() GetSksClusterOidcOutput { + return i.ToGetSksClusterOidcOutputWithContext(context.Background()) } -func (i GetSKSClusterOidcArgs) ToGetSKSClusterOidcOutputWithContext(ctx context.Context) GetSKSClusterOidcOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetSKSClusterOidcOutput) +func (i GetSksClusterOidcArgs) ToGetSksClusterOidcOutputWithContext(ctx context.Context) GetSksClusterOidcOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSksClusterOidcOutput) } -func (i GetSKSClusterOidcArgs) ToGetSKSClusterOidcPtrOutput() GetSKSClusterOidcPtrOutput { - return i.ToGetSKSClusterOidcPtrOutputWithContext(context.Background()) +func (i GetSksClusterOidcArgs) ToGetSksClusterOidcPtrOutput() GetSksClusterOidcPtrOutput { + return i.ToGetSksClusterOidcPtrOutputWithContext(context.Background()) } -func (i GetSKSClusterOidcArgs) ToGetSKSClusterOidcPtrOutputWithContext(ctx context.Context) GetSKSClusterOidcPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetSKSClusterOidcOutput).ToGetSKSClusterOidcPtrOutputWithContext(ctx) +func (i GetSksClusterOidcArgs) ToGetSksClusterOidcPtrOutputWithContext(ctx context.Context) GetSksClusterOidcPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSksClusterOidcOutput).ToGetSksClusterOidcPtrOutputWithContext(ctx) } -// GetSKSClusterOidcPtrInput is an input type that accepts GetSKSClusterOidcArgs, GetSKSClusterOidcPtr and GetSKSClusterOidcPtrOutput values. -// You can construct a concrete instance of `GetSKSClusterOidcPtrInput` via: +// GetSksClusterOidcPtrInput is an input type that accepts GetSksClusterOidcArgs, GetSksClusterOidcPtr and GetSksClusterOidcPtrOutput values. +// You can construct a concrete instance of `GetSksClusterOidcPtrInput` via: // -// GetSKSClusterOidcArgs{...} +// GetSksClusterOidcArgs{...} // // or: // // nil -type GetSKSClusterOidcPtrInput interface { +type GetSksClusterOidcPtrInput interface { pulumi.Input - ToGetSKSClusterOidcPtrOutput() GetSKSClusterOidcPtrOutput - ToGetSKSClusterOidcPtrOutputWithContext(context.Context) GetSKSClusterOidcPtrOutput + ToGetSksClusterOidcPtrOutput() GetSksClusterOidcPtrOutput + ToGetSksClusterOidcPtrOutputWithContext(context.Context) GetSksClusterOidcPtrOutput } -type getSKSClusterOidcPtrType GetSKSClusterOidcArgs +type getSksClusterOidcPtrType GetSksClusterOidcArgs -func GetSKSClusterOidcPtr(v *GetSKSClusterOidcArgs) GetSKSClusterOidcPtrInput { - return (*getSKSClusterOidcPtrType)(v) +func GetSksClusterOidcPtr(v *GetSksClusterOidcArgs) GetSksClusterOidcPtrInput { + return (*getSksClusterOidcPtrType)(v) } -func (*getSKSClusterOidcPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GetSKSClusterOidc)(nil)).Elem() +func (*getSksClusterOidcPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetSksClusterOidc)(nil)).Elem() } -func (i *getSKSClusterOidcPtrType) ToGetSKSClusterOidcPtrOutput() GetSKSClusterOidcPtrOutput { - return i.ToGetSKSClusterOidcPtrOutputWithContext(context.Background()) +func (i *getSksClusterOidcPtrType) ToGetSksClusterOidcPtrOutput() GetSksClusterOidcPtrOutput { + return i.ToGetSksClusterOidcPtrOutputWithContext(context.Background()) } -func (i *getSKSClusterOidcPtrType) ToGetSKSClusterOidcPtrOutputWithContext(ctx context.Context) GetSKSClusterOidcPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetSKSClusterOidcPtrOutput) +func (i *getSksClusterOidcPtrType) ToGetSksClusterOidcPtrOutputWithContext(ctx context.Context) GetSksClusterOidcPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSksClusterOidcPtrOutput) } -type GetSKSClusterOidcOutput struct{ *pulumi.OutputState } +type GetSksClusterOidcOutput struct{ *pulumi.OutputState } -func (GetSKSClusterOidcOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetSKSClusterOidc)(nil)).Elem() +func (GetSksClusterOidcOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetSksClusterOidc)(nil)).Elem() } -func (o GetSKSClusterOidcOutput) ToGetSKSClusterOidcOutput() GetSKSClusterOidcOutput { +func (o GetSksClusterOidcOutput) ToGetSksClusterOidcOutput() GetSksClusterOidcOutput { return o } -func (o GetSKSClusterOidcOutput) ToGetSKSClusterOidcOutputWithContext(ctx context.Context) GetSKSClusterOidcOutput { +func (o GetSksClusterOidcOutput) ToGetSksClusterOidcOutputWithContext(ctx context.Context) GetSksClusterOidcOutput { return o } -func (o GetSKSClusterOidcOutput) ToGetSKSClusterOidcPtrOutput() GetSKSClusterOidcPtrOutput { - return o.ToGetSKSClusterOidcPtrOutputWithContext(context.Background()) +func (o GetSksClusterOidcOutput) ToGetSksClusterOidcPtrOutput() GetSksClusterOidcPtrOutput { + return o.ToGetSksClusterOidcPtrOutputWithContext(context.Background()) } -func (o GetSKSClusterOidcOutput) ToGetSKSClusterOidcPtrOutputWithContext(ctx context.Context) GetSKSClusterOidcPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GetSKSClusterOidc) *GetSKSClusterOidc { +func (o GetSksClusterOidcOutput) ToGetSksClusterOidcPtrOutputWithContext(ctx context.Context) GetSksClusterOidcPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetSksClusterOidc) *GetSksClusterOidc { return &v - }).(GetSKSClusterOidcPtrOutput) + }).(GetSksClusterOidcPtrOutput) } // The OpenID client ID. -func (o GetSKSClusterOidcOutput) ClientId() pulumi.StringOutput { - return o.ApplyT(func(v GetSKSClusterOidc) string { return v.ClientId }).(pulumi.StringOutput) +func (o GetSksClusterOidcOutput) ClientId() pulumi.StringOutput { + return o.ApplyT(func(v GetSksClusterOidc) string { return v.ClientId }).(pulumi.StringOutput) } // An OpenID JWT claim to use as the user's group. -func (o GetSKSClusterOidcOutput) GroupsClaim() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterOidc) *string { return v.GroupsClaim }).(pulumi.StringPtrOutput) +func (o GetSksClusterOidcOutput) GroupsClaim() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterOidc) *string { return v.GroupsClaim }).(pulumi.StringPtrOutput) } // An OpenID prefix prepended to group claims. -func (o GetSKSClusterOidcOutput) GroupsPrefix() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterOidc) *string { return v.GroupsPrefix }).(pulumi.StringPtrOutput) +func (o GetSksClusterOidcOutput) GroupsPrefix() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterOidc) *string { return v.GroupsPrefix }).(pulumi.StringPtrOutput) } // The OpenID provider URL. -func (o GetSKSClusterOidcOutput) IssuerUrl() pulumi.StringOutput { - return o.ApplyT(func(v GetSKSClusterOidc) string { return v.IssuerUrl }).(pulumi.StringOutput) +func (o GetSksClusterOidcOutput) IssuerUrl() pulumi.StringOutput { + return o.ApplyT(func(v GetSksClusterOidc) string { return v.IssuerUrl }).(pulumi.StringOutput) } // A map of key/value pairs that describes a required claim in the OpenID Token. -func (o GetSKSClusterOidcOutput) RequiredClaim() pulumi.StringMapOutput { - return o.ApplyT(func(v GetSKSClusterOidc) map[string]string { return v.RequiredClaim }).(pulumi.StringMapOutput) +func (o GetSksClusterOidcOutput) RequiredClaim() pulumi.StringMapOutput { + return o.ApplyT(func(v GetSksClusterOidc) map[string]string { return v.RequiredClaim }).(pulumi.StringMapOutput) } // An OpenID JWT claim to use as the user name. -func (o GetSKSClusterOidcOutput) UsernameClaim() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterOidc) *string { return v.UsernameClaim }).(pulumi.StringPtrOutput) +func (o GetSksClusterOidcOutput) UsernameClaim() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterOidc) *string { return v.UsernameClaim }).(pulumi.StringPtrOutput) } // An OpenID prefix prepended to username claims. -func (o GetSKSClusterOidcOutput) UsernamePrefix() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSClusterOidc) *string { return v.UsernamePrefix }).(pulumi.StringPtrOutput) +func (o GetSksClusterOidcOutput) UsernamePrefix() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksClusterOidc) *string { return v.UsernamePrefix }).(pulumi.StringPtrOutput) } -type GetSKSClusterOidcPtrOutput struct{ *pulumi.OutputState } +type GetSksClusterOidcPtrOutput struct{ *pulumi.OutputState } -func (GetSKSClusterOidcPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GetSKSClusterOidc)(nil)).Elem() +func (GetSksClusterOidcPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetSksClusterOidc)(nil)).Elem() } -func (o GetSKSClusterOidcPtrOutput) ToGetSKSClusterOidcPtrOutput() GetSKSClusterOidcPtrOutput { +func (o GetSksClusterOidcPtrOutput) ToGetSksClusterOidcPtrOutput() GetSksClusterOidcPtrOutput { return o } -func (o GetSKSClusterOidcPtrOutput) ToGetSKSClusterOidcPtrOutputWithContext(ctx context.Context) GetSKSClusterOidcPtrOutput { +func (o GetSksClusterOidcPtrOutput) ToGetSksClusterOidcPtrOutputWithContext(ctx context.Context) GetSksClusterOidcPtrOutput { return o } -func (o GetSKSClusterOidcPtrOutput) Elem() GetSKSClusterOidcOutput { - return o.ApplyT(func(v *GetSKSClusterOidc) GetSKSClusterOidc { +func (o GetSksClusterOidcPtrOutput) Elem() GetSksClusterOidcOutput { + return o.ApplyT(func(v *GetSksClusterOidc) GetSksClusterOidc { if v != nil { return *v } - var ret GetSKSClusterOidc + var ret GetSksClusterOidc return ret - }).(GetSKSClusterOidcOutput) + }).(GetSksClusterOidcOutput) } // The OpenID client ID. -func (o GetSKSClusterOidcPtrOutput) ClientId() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetSKSClusterOidc) *string { +func (o GetSksClusterOidcPtrOutput) ClientId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSksClusterOidc) *string { if v == nil { return nil } @@ -6990,8 +6990,8 @@ func (o GetSKSClusterOidcPtrOutput) ClientId() pulumi.StringPtrOutput { } // An OpenID JWT claim to use as the user's group. -func (o GetSKSClusterOidcPtrOutput) GroupsClaim() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetSKSClusterOidc) *string { +func (o GetSksClusterOidcPtrOutput) GroupsClaim() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSksClusterOidc) *string { if v == nil { return nil } @@ -7000,8 +7000,8 @@ func (o GetSKSClusterOidcPtrOutput) GroupsClaim() pulumi.StringPtrOutput { } // An OpenID prefix prepended to group claims. -func (o GetSKSClusterOidcPtrOutput) GroupsPrefix() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetSKSClusterOidc) *string { +func (o GetSksClusterOidcPtrOutput) GroupsPrefix() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSksClusterOidc) *string { if v == nil { return nil } @@ -7010,8 +7010,8 @@ func (o GetSKSClusterOidcPtrOutput) GroupsPrefix() pulumi.StringPtrOutput { } // The OpenID provider URL. -func (o GetSKSClusterOidcPtrOutput) IssuerUrl() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetSKSClusterOidc) *string { +func (o GetSksClusterOidcPtrOutput) IssuerUrl() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSksClusterOidc) *string { if v == nil { return nil } @@ -7020,8 +7020,8 @@ func (o GetSKSClusterOidcPtrOutput) IssuerUrl() pulumi.StringPtrOutput { } // A map of key/value pairs that describes a required claim in the OpenID Token. -func (o GetSKSClusterOidcPtrOutput) RequiredClaim() pulumi.StringMapOutput { - return o.ApplyT(func(v *GetSKSClusterOidc) map[string]string { +func (o GetSksClusterOidcPtrOutput) RequiredClaim() pulumi.StringMapOutput { + return o.ApplyT(func(v *GetSksClusterOidc) map[string]string { if v == nil { return nil } @@ -7030,8 +7030,8 @@ func (o GetSKSClusterOidcPtrOutput) RequiredClaim() pulumi.StringMapOutput { } // An OpenID JWT claim to use as the user name. -func (o GetSKSClusterOidcPtrOutput) UsernameClaim() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetSKSClusterOidc) *string { +func (o GetSksClusterOidcPtrOutput) UsernameClaim() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSksClusterOidc) *string { if v == nil { return nil } @@ -7040,8 +7040,8 @@ func (o GetSKSClusterOidcPtrOutput) UsernameClaim() pulumi.StringPtrOutput { } // An OpenID prefix prepended to username claims. -func (o GetSKSClusterOidcPtrOutput) UsernamePrefix() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetSKSClusterOidc) *string { +func (o GetSksClusterOidcPtrOutput) UsernamePrefix() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetSksClusterOidc) *string { if v == nil { return nil } @@ -7049,7 +7049,7 @@ func (o GetSKSClusterOidcPtrOutput) UsernamePrefix() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -type GetSKSNodepoolListNodepool struct { +type GetSksNodepoolListNodepool struct { AntiAffinityGroupIds []string `pulumi:"antiAffinityGroupIds"` ClusterId string `pulumi:"clusterId"` CreatedAt string `pulumi:"createdAt"` @@ -7073,18 +7073,18 @@ type GetSKSNodepoolListNodepool struct { Zone string `pulumi:"zone"` } -// GetSKSNodepoolListNodepoolInput is an input type that accepts GetSKSNodepoolListNodepoolArgs and GetSKSNodepoolListNodepoolOutput values. -// You can construct a concrete instance of `GetSKSNodepoolListNodepoolInput` via: +// GetSksNodepoolListNodepoolInput is an input type that accepts GetSksNodepoolListNodepoolArgs and GetSksNodepoolListNodepoolOutput values. +// You can construct a concrete instance of `GetSksNodepoolListNodepoolInput` via: // -// GetSKSNodepoolListNodepoolArgs{...} -type GetSKSNodepoolListNodepoolInput interface { +// GetSksNodepoolListNodepoolArgs{...} +type GetSksNodepoolListNodepoolInput interface { pulumi.Input - ToGetSKSNodepoolListNodepoolOutput() GetSKSNodepoolListNodepoolOutput - ToGetSKSNodepoolListNodepoolOutputWithContext(context.Context) GetSKSNodepoolListNodepoolOutput + ToGetSksNodepoolListNodepoolOutput() GetSksNodepoolListNodepoolOutput + ToGetSksNodepoolListNodepoolOutputWithContext(context.Context) GetSksNodepoolListNodepoolOutput } -type GetSKSNodepoolListNodepoolArgs struct { +type GetSksNodepoolListNodepoolArgs struct { AntiAffinityGroupIds pulumi.StringArrayInput `pulumi:"antiAffinityGroupIds"` ClusterId pulumi.StringInput `pulumi:"clusterId"` CreatedAt pulumi.StringInput `pulumi:"createdAt"` @@ -7108,159 +7108,159 @@ type GetSKSNodepoolListNodepoolArgs struct { Zone pulumi.StringInput `pulumi:"zone"` } -func (GetSKSNodepoolListNodepoolArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetSKSNodepoolListNodepool)(nil)).Elem() +func (GetSksNodepoolListNodepoolArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetSksNodepoolListNodepool)(nil)).Elem() } -func (i GetSKSNodepoolListNodepoolArgs) ToGetSKSNodepoolListNodepoolOutput() GetSKSNodepoolListNodepoolOutput { - return i.ToGetSKSNodepoolListNodepoolOutputWithContext(context.Background()) +func (i GetSksNodepoolListNodepoolArgs) ToGetSksNodepoolListNodepoolOutput() GetSksNodepoolListNodepoolOutput { + return i.ToGetSksNodepoolListNodepoolOutputWithContext(context.Background()) } -func (i GetSKSNodepoolListNodepoolArgs) ToGetSKSNodepoolListNodepoolOutputWithContext(ctx context.Context) GetSKSNodepoolListNodepoolOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetSKSNodepoolListNodepoolOutput) +func (i GetSksNodepoolListNodepoolArgs) ToGetSksNodepoolListNodepoolOutputWithContext(ctx context.Context) GetSksNodepoolListNodepoolOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSksNodepoolListNodepoolOutput) } -// GetSKSNodepoolListNodepoolArrayInput is an input type that accepts GetSKSNodepoolListNodepoolArray and GetSKSNodepoolListNodepoolArrayOutput values. -// You can construct a concrete instance of `GetSKSNodepoolListNodepoolArrayInput` via: +// GetSksNodepoolListNodepoolArrayInput is an input type that accepts GetSksNodepoolListNodepoolArray and GetSksNodepoolListNodepoolArrayOutput values. +// You can construct a concrete instance of `GetSksNodepoolListNodepoolArrayInput` via: // -// GetSKSNodepoolListNodepoolArray{ GetSKSNodepoolListNodepoolArgs{...} } -type GetSKSNodepoolListNodepoolArrayInput interface { +// GetSksNodepoolListNodepoolArray{ GetSksNodepoolListNodepoolArgs{...} } +type GetSksNodepoolListNodepoolArrayInput interface { pulumi.Input - ToGetSKSNodepoolListNodepoolArrayOutput() GetSKSNodepoolListNodepoolArrayOutput - ToGetSKSNodepoolListNodepoolArrayOutputWithContext(context.Context) GetSKSNodepoolListNodepoolArrayOutput + ToGetSksNodepoolListNodepoolArrayOutput() GetSksNodepoolListNodepoolArrayOutput + ToGetSksNodepoolListNodepoolArrayOutputWithContext(context.Context) GetSksNodepoolListNodepoolArrayOutput } -type GetSKSNodepoolListNodepoolArray []GetSKSNodepoolListNodepoolInput +type GetSksNodepoolListNodepoolArray []GetSksNodepoolListNodepoolInput -func (GetSKSNodepoolListNodepoolArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetSKSNodepoolListNodepool)(nil)).Elem() +func (GetSksNodepoolListNodepoolArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetSksNodepoolListNodepool)(nil)).Elem() } -func (i GetSKSNodepoolListNodepoolArray) ToGetSKSNodepoolListNodepoolArrayOutput() GetSKSNodepoolListNodepoolArrayOutput { - return i.ToGetSKSNodepoolListNodepoolArrayOutputWithContext(context.Background()) +func (i GetSksNodepoolListNodepoolArray) ToGetSksNodepoolListNodepoolArrayOutput() GetSksNodepoolListNodepoolArrayOutput { + return i.ToGetSksNodepoolListNodepoolArrayOutputWithContext(context.Background()) } -func (i GetSKSNodepoolListNodepoolArray) ToGetSKSNodepoolListNodepoolArrayOutputWithContext(ctx context.Context) GetSKSNodepoolListNodepoolArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetSKSNodepoolListNodepoolArrayOutput) +func (i GetSksNodepoolListNodepoolArray) ToGetSksNodepoolListNodepoolArrayOutputWithContext(ctx context.Context) GetSksNodepoolListNodepoolArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetSksNodepoolListNodepoolArrayOutput) } -type GetSKSNodepoolListNodepoolOutput struct{ *pulumi.OutputState } +type GetSksNodepoolListNodepoolOutput struct{ *pulumi.OutputState } -func (GetSKSNodepoolListNodepoolOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetSKSNodepoolListNodepool)(nil)).Elem() +func (GetSksNodepoolListNodepoolOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetSksNodepoolListNodepool)(nil)).Elem() } -func (o GetSKSNodepoolListNodepoolOutput) ToGetSKSNodepoolListNodepoolOutput() GetSKSNodepoolListNodepoolOutput { +func (o GetSksNodepoolListNodepoolOutput) ToGetSksNodepoolListNodepoolOutput() GetSksNodepoolListNodepoolOutput { return o } -func (o GetSKSNodepoolListNodepoolOutput) ToGetSKSNodepoolListNodepoolOutputWithContext(ctx context.Context) GetSKSNodepoolListNodepoolOutput { +func (o GetSksNodepoolListNodepoolOutput) ToGetSksNodepoolListNodepoolOutputWithContext(ctx context.Context) GetSksNodepoolListNodepoolOutput { return o } -func (o GetSKSNodepoolListNodepoolOutput) AntiAffinityGroupIds() pulumi.StringArrayOutput { - return o.ApplyT(func(v GetSKSNodepoolListNodepool) []string { return v.AntiAffinityGroupIds }).(pulumi.StringArrayOutput) +func (o GetSksNodepoolListNodepoolOutput) AntiAffinityGroupIds() pulumi.StringArrayOutput { + return o.ApplyT(func(v GetSksNodepoolListNodepool) []string { return v.AntiAffinityGroupIds }).(pulumi.StringArrayOutput) } -func (o GetSKSNodepoolListNodepoolOutput) ClusterId() pulumi.StringOutput { - return o.ApplyT(func(v GetSKSNodepoolListNodepool) string { return v.ClusterId }).(pulumi.StringOutput) +func (o GetSksNodepoolListNodepoolOutput) ClusterId() pulumi.StringOutput { + return o.ApplyT(func(v GetSksNodepoolListNodepool) string { return v.ClusterId }).(pulumi.StringOutput) } -func (o GetSKSNodepoolListNodepoolOutput) CreatedAt() pulumi.StringOutput { - return o.ApplyT(func(v GetSKSNodepoolListNodepool) string { return v.CreatedAt }).(pulumi.StringOutput) +func (o GetSksNodepoolListNodepoolOutput) CreatedAt() pulumi.StringOutput { + return o.ApplyT(func(v GetSksNodepoolListNodepool) string { return v.CreatedAt }).(pulumi.StringOutput) } -func (o GetSKSNodepoolListNodepoolOutput) DeployTargetId() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListNodepool) *string { return v.DeployTargetId }).(pulumi.StringPtrOutput) +func (o GetSksNodepoolListNodepoolOutput) DeployTargetId() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListNodepool) *string { return v.DeployTargetId }).(pulumi.StringPtrOutput) } -func (o GetSKSNodepoolListNodepoolOutput) Description() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListNodepool) *string { return v.Description }).(pulumi.StringPtrOutput) +func (o GetSksNodepoolListNodepoolOutput) Description() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListNodepool) *string { return v.Description }).(pulumi.StringPtrOutput) } -func (o GetSKSNodepoolListNodepoolOutput) DiskSize() pulumi.IntPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListNodepool) *int { return v.DiskSize }).(pulumi.IntPtrOutput) +func (o GetSksNodepoolListNodepoolOutput) DiskSize() pulumi.IntPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListNodepool) *int { return v.DiskSize }).(pulumi.IntPtrOutput) } -func (o GetSKSNodepoolListNodepoolOutput) Id() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListNodepool) *string { return v.Id }).(pulumi.StringPtrOutput) +func (o GetSksNodepoolListNodepoolOutput) Id() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListNodepool) *string { return v.Id }).(pulumi.StringPtrOutput) } -func (o GetSKSNodepoolListNodepoolOutput) InstancePoolId() pulumi.StringOutput { - return o.ApplyT(func(v GetSKSNodepoolListNodepool) string { return v.InstancePoolId }).(pulumi.StringOutput) +func (o GetSksNodepoolListNodepoolOutput) InstancePoolId() pulumi.StringOutput { + return o.ApplyT(func(v GetSksNodepoolListNodepool) string { return v.InstancePoolId }).(pulumi.StringOutput) } -func (o GetSKSNodepoolListNodepoolOutput) InstancePrefix() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListNodepool) *string { return v.InstancePrefix }).(pulumi.StringPtrOutput) +func (o GetSksNodepoolListNodepoolOutput) InstancePrefix() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListNodepool) *string { return v.InstancePrefix }).(pulumi.StringPtrOutput) } -func (o GetSKSNodepoolListNodepoolOutput) InstanceType() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListNodepool) *string { return v.InstanceType }).(pulumi.StringPtrOutput) +func (o GetSksNodepoolListNodepoolOutput) InstanceType() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListNodepool) *string { return v.InstanceType }).(pulumi.StringPtrOutput) } -func (o GetSKSNodepoolListNodepoolOutput) Labels() pulumi.StringMapOutput { - return o.ApplyT(func(v GetSKSNodepoolListNodepool) map[string]string { return v.Labels }).(pulumi.StringMapOutput) +func (o GetSksNodepoolListNodepoolOutput) Labels() pulumi.StringMapOutput { + return o.ApplyT(func(v GetSksNodepoolListNodepool) map[string]string { return v.Labels }).(pulumi.StringMapOutput) } -func (o GetSKSNodepoolListNodepoolOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListNodepool) *string { return v.Name }).(pulumi.StringPtrOutput) +func (o GetSksNodepoolListNodepoolOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListNodepool) *string { return v.Name }).(pulumi.StringPtrOutput) } -func (o GetSKSNodepoolListNodepoolOutput) PrivateNetworkIds() pulumi.StringArrayOutput { - return o.ApplyT(func(v GetSKSNodepoolListNodepool) []string { return v.PrivateNetworkIds }).(pulumi.StringArrayOutput) +func (o GetSksNodepoolListNodepoolOutput) PrivateNetworkIds() pulumi.StringArrayOutput { + return o.ApplyT(func(v GetSksNodepoolListNodepool) []string { return v.PrivateNetworkIds }).(pulumi.StringArrayOutput) } -func (o GetSKSNodepoolListNodepoolOutput) SecurityGroupIds() pulumi.StringArrayOutput { - return o.ApplyT(func(v GetSKSNodepoolListNodepool) []string { return v.SecurityGroupIds }).(pulumi.StringArrayOutput) +func (o GetSksNodepoolListNodepoolOutput) SecurityGroupIds() pulumi.StringArrayOutput { + return o.ApplyT(func(v GetSksNodepoolListNodepool) []string { return v.SecurityGroupIds }).(pulumi.StringArrayOutput) } -func (o GetSKSNodepoolListNodepoolOutput) Size() pulumi.IntPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListNodepool) *int { return v.Size }).(pulumi.IntPtrOutput) +func (o GetSksNodepoolListNodepoolOutput) Size() pulumi.IntPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListNodepool) *int { return v.Size }).(pulumi.IntPtrOutput) } -func (o GetSKSNodepoolListNodepoolOutput) State() pulumi.StringOutput { - return o.ApplyT(func(v GetSKSNodepoolListNodepool) string { return v.State }).(pulumi.StringOutput) +func (o GetSksNodepoolListNodepoolOutput) State() pulumi.StringOutput { + return o.ApplyT(func(v GetSksNodepoolListNodepool) string { return v.State }).(pulumi.StringOutput) } -func (o GetSKSNodepoolListNodepoolOutput) StorageLvm() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetSKSNodepoolListNodepool) *bool { return v.StorageLvm }).(pulumi.BoolPtrOutput) +func (o GetSksNodepoolListNodepoolOutput) StorageLvm() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetSksNodepoolListNodepool) *bool { return v.StorageLvm }).(pulumi.BoolPtrOutput) } -func (o GetSKSNodepoolListNodepoolOutput) Taints() pulumi.StringMapOutput { - return o.ApplyT(func(v GetSKSNodepoolListNodepool) map[string]string { return v.Taints }).(pulumi.StringMapOutput) +func (o GetSksNodepoolListNodepoolOutput) Taints() pulumi.StringMapOutput { + return o.ApplyT(func(v GetSksNodepoolListNodepool) map[string]string { return v.Taints }).(pulumi.StringMapOutput) } -func (o GetSKSNodepoolListNodepoolOutput) TemplateId() pulumi.StringOutput { - return o.ApplyT(func(v GetSKSNodepoolListNodepool) string { return v.TemplateId }).(pulumi.StringOutput) +func (o GetSksNodepoolListNodepoolOutput) TemplateId() pulumi.StringOutput { + return o.ApplyT(func(v GetSksNodepoolListNodepool) string { return v.TemplateId }).(pulumi.StringOutput) } -func (o GetSKSNodepoolListNodepoolOutput) Version() pulumi.StringOutput { - return o.ApplyT(func(v GetSKSNodepoolListNodepool) string { return v.Version }).(pulumi.StringOutput) +func (o GetSksNodepoolListNodepoolOutput) Version() pulumi.StringOutput { + return o.ApplyT(func(v GetSksNodepoolListNodepool) string { return v.Version }).(pulumi.StringOutput) } -func (o GetSKSNodepoolListNodepoolOutput) Zone() pulumi.StringOutput { - return o.ApplyT(func(v GetSKSNodepoolListNodepool) string { return v.Zone }).(pulumi.StringOutput) +func (o GetSksNodepoolListNodepoolOutput) Zone() pulumi.StringOutput { + return o.ApplyT(func(v GetSksNodepoolListNodepool) string { return v.Zone }).(pulumi.StringOutput) } -type GetSKSNodepoolListNodepoolArrayOutput struct{ *pulumi.OutputState } +type GetSksNodepoolListNodepoolArrayOutput struct{ *pulumi.OutputState } -func (GetSKSNodepoolListNodepoolArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetSKSNodepoolListNodepool)(nil)).Elem() +func (GetSksNodepoolListNodepoolArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetSksNodepoolListNodepool)(nil)).Elem() } -func (o GetSKSNodepoolListNodepoolArrayOutput) ToGetSKSNodepoolListNodepoolArrayOutput() GetSKSNodepoolListNodepoolArrayOutput { +func (o GetSksNodepoolListNodepoolArrayOutput) ToGetSksNodepoolListNodepoolArrayOutput() GetSksNodepoolListNodepoolArrayOutput { return o } -func (o GetSKSNodepoolListNodepoolArrayOutput) ToGetSKSNodepoolListNodepoolArrayOutputWithContext(ctx context.Context) GetSKSNodepoolListNodepoolArrayOutput { +func (o GetSksNodepoolListNodepoolArrayOutput) ToGetSksNodepoolListNodepoolArrayOutputWithContext(ctx context.Context) GetSksNodepoolListNodepoolArrayOutput { return o } -func (o GetSKSNodepoolListNodepoolArrayOutput) Index(i pulumi.IntInput) GetSKSNodepoolListNodepoolOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetSKSNodepoolListNodepool { - return vs[0].([]GetSKSNodepoolListNodepool)[vs[1].(int)] - }).(GetSKSNodepoolListNodepoolOutput) +func (o GetSksNodepoolListNodepoolArrayOutput) Index(i pulumi.IntInput) GetSksNodepoolListNodepoolOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetSksNodepoolListNodepool { + return vs[0].([]GetSksNodepoolListNodepool)[vs[1].(int)] + }).(GetSksNodepoolListNodepoolOutput) } func init() { @@ -7286,72 +7286,72 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*DatabaseRedisPtrInput)(nil)).Elem(), DatabaseRedisArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DatabaseTimeoutsInput)(nil)).Elem(), DatabaseTimeoutsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DatabaseTimeoutsPtrInput)(nil)).Elem(), DatabaseTimeoutsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*ElasticIPHealthcheckInput)(nil)).Elem(), ElasticIPHealthcheckArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*ElasticIPHealthcheckPtrInput)(nil)).Elem(), ElasticIPHealthcheckArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMAPIKeyTimeoutsInput)(nil)).Elem(), IAMAPIKeyTimeoutsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMAPIKeyTimeoutsPtrInput)(nil)).Elem(), IAMAPIKeyTimeoutsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMOrgPolicyServicesInput)(nil)).Elem(), IAMOrgPolicyServicesArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMOrgPolicyServicesMapInput)(nil)).Elem(), IAMOrgPolicyServicesMap{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMOrgPolicyServicesRuleInput)(nil)).Elem(), IAMOrgPolicyServicesRuleArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMOrgPolicyServicesRuleArrayInput)(nil)).Elem(), IAMOrgPolicyServicesRuleArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMOrgPolicyTimeoutsInput)(nil)).Elem(), IAMOrgPolicyTimeoutsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMOrgPolicyTimeoutsPtrInput)(nil)).Elem(), IAMOrgPolicyTimeoutsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMRolePolicyInput)(nil)).Elem(), IAMRolePolicyArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMRolePolicyPtrInput)(nil)).Elem(), IAMRolePolicyArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMRolePolicyServicesInput)(nil)).Elem(), IAMRolePolicyServicesArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMRolePolicyServicesMapInput)(nil)).Elem(), IAMRolePolicyServicesMap{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMRolePolicyServicesRuleInput)(nil)).Elem(), IAMRolePolicyServicesRuleArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMRolePolicyServicesRuleArrayInput)(nil)).Elem(), IAMRolePolicyServicesRuleArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMRoleTimeoutsInput)(nil)).Elem(), IAMRoleTimeoutsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*IAMRoleTimeoutsPtrInput)(nil)).Elem(), IAMRoleTimeoutsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ElasticIpHealthcheckInput)(nil)).Elem(), ElasticIpHealthcheckArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ElasticIpHealthcheckPtrInput)(nil)).Elem(), ElasticIpHealthcheckArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamApiKeyTimeoutsInput)(nil)).Elem(), IamApiKeyTimeoutsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamApiKeyTimeoutsPtrInput)(nil)).Elem(), IamApiKeyTimeoutsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamOrgPolicyServicesInput)(nil)).Elem(), IamOrgPolicyServicesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamOrgPolicyServicesMapInput)(nil)).Elem(), IamOrgPolicyServicesMap{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamOrgPolicyServicesRuleInput)(nil)).Elem(), IamOrgPolicyServicesRuleArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamOrgPolicyServicesRuleArrayInput)(nil)).Elem(), IamOrgPolicyServicesRuleArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamOrgPolicyTimeoutsInput)(nil)).Elem(), IamOrgPolicyTimeoutsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamOrgPolicyTimeoutsPtrInput)(nil)).Elem(), IamOrgPolicyTimeoutsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamRolePolicyInput)(nil)).Elem(), IamRolePolicyArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamRolePolicyPtrInput)(nil)).Elem(), IamRolePolicyArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamRolePolicyServicesInput)(nil)).Elem(), IamRolePolicyServicesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamRolePolicyServicesMapInput)(nil)).Elem(), IamRolePolicyServicesMap{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamRolePolicyServicesRuleInput)(nil)).Elem(), IamRolePolicyServicesRuleArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamRolePolicyServicesRuleArrayInput)(nil)).Elem(), IamRolePolicyServicesRuleArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamRoleTimeoutsInput)(nil)).Elem(), IamRoleTimeoutsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*IamRoleTimeoutsPtrInput)(nil)).Elem(), IamRoleTimeoutsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*InstancePoolInstanceInput)(nil)).Elem(), InstancePoolInstanceArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*InstancePoolInstanceArrayInput)(nil)).Elem(), InstancePoolInstanceArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*NLBServiceHealthcheckInput)(nil)).Elem(), NLBServiceHealthcheckArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*NLBServiceHealthcheckArrayInput)(nil)).Elem(), NLBServiceHealthcheckArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*SKSClusterOidcInput)(nil)).Elem(), SKSClusterOidcArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*SKSClusterOidcPtrInput)(nil)).Elem(), SKSClusterOidcArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*NlbServiceHealthcheckInput)(nil)).Elem(), NlbServiceHealthcheckArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*NlbServiceHealthcheckArrayInput)(nil)).Elem(), NlbServiceHealthcheckArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*SksClusterOidcInput)(nil)).Elem(), SksClusterOidcArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*SksClusterOidcPtrInput)(nil)).Elem(), SksClusterOidcArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetComputeInstanceListInstanceInput)(nil)).Elem(), GetComputeInstanceListInstanceArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetComputeInstanceListInstanceArrayInput)(nil)).Elem(), GetComputeInstanceListInstanceArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetDatabaseURITimeoutsInput)(nil)).Elem(), GetDatabaseURITimeoutsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetDatabaseURITimeoutsPtrInput)(nil)).Elem(), GetDatabaseURITimeoutsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetDatabaseUriTimeoutsInput)(nil)).Elem(), GetDatabaseUriTimeoutsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetDatabaseUriTimeoutsPtrInput)(nil)).Elem(), GetDatabaseUriTimeoutsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetDomainRecordFilterInput)(nil)).Elem(), GetDomainRecordFilterArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetDomainRecordRecordInput)(nil)).Elem(), GetDomainRecordRecordArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetDomainRecordRecordArrayInput)(nil)).Elem(), GetDomainRecordRecordArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetElasticIPHealthcheckInput)(nil)).Elem(), GetElasticIPHealthcheckArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetElasticIPHealthcheckArrayInput)(nil)).Elem(), GetElasticIPHealthcheckArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetIAMAPIKeyTimeoutsInput)(nil)).Elem(), GetIAMAPIKeyTimeoutsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetIAMAPIKeyTimeoutsPtrInput)(nil)).Elem(), GetIAMAPIKeyTimeoutsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetIAMOrgPolicyServicesInput)(nil)).Elem(), GetIAMOrgPolicyServicesArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetIAMOrgPolicyServicesMapInput)(nil)).Elem(), GetIAMOrgPolicyServicesMap{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetIAMOrgPolicyServicesRuleInput)(nil)).Elem(), GetIAMOrgPolicyServicesRuleArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetIAMOrgPolicyServicesRuleArrayInput)(nil)).Elem(), GetIAMOrgPolicyServicesRuleArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetIAMOrgPolicyTimeoutsInput)(nil)).Elem(), GetIAMOrgPolicyTimeoutsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetIAMOrgPolicyTimeoutsPtrInput)(nil)).Elem(), GetIAMOrgPolicyTimeoutsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetIAMRolePolicyInput)(nil)).Elem(), GetIAMRolePolicyArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetIAMRolePolicyServicesInput)(nil)).Elem(), GetIAMRolePolicyServicesArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetIAMRolePolicyServicesMapInput)(nil)).Elem(), GetIAMRolePolicyServicesMap{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetIAMRolePolicyServicesRuleInput)(nil)).Elem(), GetIAMRolePolicyServicesRuleArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetIAMRolePolicyServicesRuleArrayInput)(nil)).Elem(), GetIAMRolePolicyServicesRuleArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetIAMRoleTimeoutsInput)(nil)).Elem(), GetIAMRoleTimeoutsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetIAMRoleTimeoutsPtrInput)(nil)).Elem(), GetIAMRoleTimeoutsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetElasticIpHealthcheckInput)(nil)).Elem(), GetElasticIpHealthcheckArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetElasticIpHealthcheckArrayInput)(nil)).Elem(), GetElasticIpHealthcheckArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetIamApiKeyTimeoutsInput)(nil)).Elem(), GetIamApiKeyTimeoutsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetIamApiKeyTimeoutsPtrInput)(nil)).Elem(), GetIamApiKeyTimeoutsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetIamOrgPolicyServicesInput)(nil)).Elem(), GetIamOrgPolicyServicesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetIamOrgPolicyServicesMapInput)(nil)).Elem(), GetIamOrgPolicyServicesMap{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetIamOrgPolicyServicesRuleInput)(nil)).Elem(), GetIamOrgPolicyServicesRuleArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetIamOrgPolicyServicesRuleArrayInput)(nil)).Elem(), GetIamOrgPolicyServicesRuleArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetIamOrgPolicyTimeoutsInput)(nil)).Elem(), GetIamOrgPolicyTimeoutsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetIamOrgPolicyTimeoutsPtrInput)(nil)).Elem(), GetIamOrgPolicyTimeoutsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetIamRolePolicyInput)(nil)).Elem(), GetIamRolePolicyArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetIamRolePolicyServicesInput)(nil)).Elem(), GetIamRolePolicyServicesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetIamRolePolicyServicesMapInput)(nil)).Elem(), GetIamRolePolicyServicesMap{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetIamRolePolicyServicesRuleInput)(nil)).Elem(), GetIamRolePolicyServicesRuleArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetIamRolePolicyServicesRuleArrayInput)(nil)).Elem(), GetIamRolePolicyServicesRuleArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetIamRoleTimeoutsInput)(nil)).Elem(), GetIamRoleTimeoutsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetIamRoleTimeoutsPtrInput)(nil)).Elem(), GetIamRoleTimeoutsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetInstancePoolInstanceInput)(nil)).Elem(), GetInstancePoolInstanceArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetInstancePoolInstanceArrayInput)(nil)).Elem(), GetInstancePoolInstanceArray{}) pulumi.RegisterInputType(reflect.TypeOf((*GetInstancePoolListPoolInput)(nil)).Elem(), GetInstancePoolListPoolArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetInstancePoolListPoolArrayInput)(nil)).Elem(), GetInstancePoolListPoolArray{}) pulumi.RegisterInputType(reflect.TypeOf((*GetInstancePoolListPoolInstanceInput)(nil)).Elem(), GetInstancePoolListPoolInstanceArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetInstancePoolListPoolInstanceArrayInput)(nil)).Elem(), GetInstancePoolListPoolInstanceArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetNLBServiceListServiceInput)(nil)).Elem(), GetNLBServiceListServiceArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetNLBServiceListServiceArrayInput)(nil)).Elem(), GetNLBServiceListServiceArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetNLBServiceListServiceHealthcheckInput)(nil)).Elem(), GetNLBServiceListServiceHealthcheckArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetNLBServiceListTimeoutsInput)(nil)).Elem(), GetNLBServiceListTimeoutsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetNLBServiceListTimeoutsPtrInput)(nil)).Elem(), GetNLBServiceListTimeoutsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetSKSClusterListClusterInput)(nil)).Elem(), GetSKSClusterListClusterArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetSKSClusterListClusterArrayInput)(nil)).Elem(), GetSKSClusterListClusterArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetSKSClusterListClusterOidcInput)(nil)).Elem(), GetSKSClusterListClusterOidcArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetSKSClusterOidcInput)(nil)).Elem(), GetSKSClusterOidcArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetSKSClusterOidcPtrInput)(nil)).Elem(), GetSKSClusterOidcArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetSKSNodepoolListNodepoolInput)(nil)).Elem(), GetSKSNodepoolListNodepoolArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetSKSNodepoolListNodepoolArrayInput)(nil)).Elem(), GetSKSNodepoolListNodepoolArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetNlbServiceListServiceInput)(nil)).Elem(), GetNlbServiceListServiceArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetNlbServiceListServiceArrayInput)(nil)).Elem(), GetNlbServiceListServiceArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetNlbServiceListServiceHealthcheckInput)(nil)).Elem(), GetNlbServiceListServiceHealthcheckArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetNlbServiceListTimeoutsInput)(nil)).Elem(), GetNlbServiceListTimeoutsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetNlbServiceListTimeoutsPtrInput)(nil)).Elem(), GetNlbServiceListTimeoutsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSksClusterListClusterInput)(nil)).Elem(), GetSksClusterListClusterArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSksClusterListClusterArrayInput)(nil)).Elem(), GetSksClusterListClusterArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSksClusterListClusterOidcInput)(nil)).Elem(), GetSksClusterListClusterOidcArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSksClusterOidcInput)(nil)).Elem(), GetSksClusterOidcArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSksClusterOidcPtrInput)(nil)).Elem(), GetSksClusterOidcArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSksNodepoolListNodepoolInput)(nil)).Elem(), GetSksNodepoolListNodepoolArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetSksNodepoolListNodepoolArrayInput)(nil)).Elem(), GetSksNodepoolListNodepoolArray{}) pulumi.RegisterOutputType(ComputeInstanceNetworkInterfaceOutput{}) pulumi.RegisterOutputType(ComputeInstanceNetworkInterfaceArrayOutput{}) pulumi.RegisterOutputType(DatabaseGrafanaOutput{}) @@ -7374,70 +7374,70 @@ func init() { pulumi.RegisterOutputType(DatabaseRedisPtrOutput{}) pulumi.RegisterOutputType(DatabaseTimeoutsOutput{}) pulumi.RegisterOutputType(DatabaseTimeoutsPtrOutput{}) - pulumi.RegisterOutputType(ElasticIPHealthcheckOutput{}) - pulumi.RegisterOutputType(ElasticIPHealthcheckPtrOutput{}) - pulumi.RegisterOutputType(IAMAPIKeyTimeoutsOutput{}) - pulumi.RegisterOutputType(IAMAPIKeyTimeoutsPtrOutput{}) - pulumi.RegisterOutputType(IAMOrgPolicyServicesOutput{}) - pulumi.RegisterOutputType(IAMOrgPolicyServicesMapOutput{}) - pulumi.RegisterOutputType(IAMOrgPolicyServicesRuleOutput{}) - pulumi.RegisterOutputType(IAMOrgPolicyServicesRuleArrayOutput{}) - pulumi.RegisterOutputType(IAMOrgPolicyTimeoutsOutput{}) - pulumi.RegisterOutputType(IAMOrgPolicyTimeoutsPtrOutput{}) - pulumi.RegisterOutputType(IAMRolePolicyOutput{}) - pulumi.RegisterOutputType(IAMRolePolicyPtrOutput{}) - pulumi.RegisterOutputType(IAMRolePolicyServicesOutput{}) - pulumi.RegisterOutputType(IAMRolePolicyServicesMapOutput{}) - pulumi.RegisterOutputType(IAMRolePolicyServicesRuleOutput{}) - pulumi.RegisterOutputType(IAMRolePolicyServicesRuleArrayOutput{}) - pulumi.RegisterOutputType(IAMRoleTimeoutsOutput{}) - pulumi.RegisterOutputType(IAMRoleTimeoutsPtrOutput{}) + pulumi.RegisterOutputType(ElasticIpHealthcheckOutput{}) + pulumi.RegisterOutputType(ElasticIpHealthcheckPtrOutput{}) + pulumi.RegisterOutputType(IamApiKeyTimeoutsOutput{}) + pulumi.RegisterOutputType(IamApiKeyTimeoutsPtrOutput{}) + pulumi.RegisterOutputType(IamOrgPolicyServicesOutput{}) + pulumi.RegisterOutputType(IamOrgPolicyServicesMapOutput{}) + pulumi.RegisterOutputType(IamOrgPolicyServicesRuleOutput{}) + pulumi.RegisterOutputType(IamOrgPolicyServicesRuleArrayOutput{}) + pulumi.RegisterOutputType(IamOrgPolicyTimeoutsOutput{}) + pulumi.RegisterOutputType(IamOrgPolicyTimeoutsPtrOutput{}) + pulumi.RegisterOutputType(IamRolePolicyOutput{}) + pulumi.RegisterOutputType(IamRolePolicyPtrOutput{}) + pulumi.RegisterOutputType(IamRolePolicyServicesOutput{}) + pulumi.RegisterOutputType(IamRolePolicyServicesMapOutput{}) + pulumi.RegisterOutputType(IamRolePolicyServicesRuleOutput{}) + pulumi.RegisterOutputType(IamRolePolicyServicesRuleArrayOutput{}) + pulumi.RegisterOutputType(IamRoleTimeoutsOutput{}) + pulumi.RegisterOutputType(IamRoleTimeoutsPtrOutput{}) pulumi.RegisterOutputType(InstancePoolInstanceOutput{}) pulumi.RegisterOutputType(InstancePoolInstanceArrayOutput{}) - pulumi.RegisterOutputType(NLBServiceHealthcheckOutput{}) - pulumi.RegisterOutputType(NLBServiceHealthcheckArrayOutput{}) - pulumi.RegisterOutputType(SKSClusterOidcOutput{}) - pulumi.RegisterOutputType(SKSClusterOidcPtrOutput{}) + pulumi.RegisterOutputType(NlbServiceHealthcheckOutput{}) + pulumi.RegisterOutputType(NlbServiceHealthcheckArrayOutput{}) + pulumi.RegisterOutputType(SksClusterOidcOutput{}) + pulumi.RegisterOutputType(SksClusterOidcPtrOutput{}) pulumi.RegisterOutputType(GetComputeInstanceListInstanceOutput{}) pulumi.RegisterOutputType(GetComputeInstanceListInstanceArrayOutput{}) - pulumi.RegisterOutputType(GetDatabaseURITimeoutsOutput{}) - pulumi.RegisterOutputType(GetDatabaseURITimeoutsPtrOutput{}) + pulumi.RegisterOutputType(GetDatabaseUriTimeoutsOutput{}) + pulumi.RegisterOutputType(GetDatabaseUriTimeoutsPtrOutput{}) pulumi.RegisterOutputType(GetDomainRecordFilterOutput{}) pulumi.RegisterOutputType(GetDomainRecordRecordOutput{}) pulumi.RegisterOutputType(GetDomainRecordRecordArrayOutput{}) - pulumi.RegisterOutputType(GetElasticIPHealthcheckOutput{}) - pulumi.RegisterOutputType(GetElasticIPHealthcheckArrayOutput{}) - pulumi.RegisterOutputType(GetIAMAPIKeyTimeoutsOutput{}) - pulumi.RegisterOutputType(GetIAMAPIKeyTimeoutsPtrOutput{}) - pulumi.RegisterOutputType(GetIAMOrgPolicyServicesOutput{}) - pulumi.RegisterOutputType(GetIAMOrgPolicyServicesMapOutput{}) - pulumi.RegisterOutputType(GetIAMOrgPolicyServicesRuleOutput{}) - pulumi.RegisterOutputType(GetIAMOrgPolicyServicesRuleArrayOutput{}) - pulumi.RegisterOutputType(GetIAMOrgPolicyTimeoutsOutput{}) - pulumi.RegisterOutputType(GetIAMOrgPolicyTimeoutsPtrOutput{}) - pulumi.RegisterOutputType(GetIAMRolePolicyOutput{}) - pulumi.RegisterOutputType(GetIAMRolePolicyServicesOutput{}) - pulumi.RegisterOutputType(GetIAMRolePolicyServicesMapOutput{}) - pulumi.RegisterOutputType(GetIAMRolePolicyServicesRuleOutput{}) - pulumi.RegisterOutputType(GetIAMRolePolicyServicesRuleArrayOutput{}) - pulumi.RegisterOutputType(GetIAMRoleTimeoutsOutput{}) - pulumi.RegisterOutputType(GetIAMRoleTimeoutsPtrOutput{}) + pulumi.RegisterOutputType(GetElasticIpHealthcheckOutput{}) + pulumi.RegisterOutputType(GetElasticIpHealthcheckArrayOutput{}) + pulumi.RegisterOutputType(GetIamApiKeyTimeoutsOutput{}) + pulumi.RegisterOutputType(GetIamApiKeyTimeoutsPtrOutput{}) + pulumi.RegisterOutputType(GetIamOrgPolicyServicesOutput{}) + pulumi.RegisterOutputType(GetIamOrgPolicyServicesMapOutput{}) + pulumi.RegisterOutputType(GetIamOrgPolicyServicesRuleOutput{}) + pulumi.RegisterOutputType(GetIamOrgPolicyServicesRuleArrayOutput{}) + pulumi.RegisterOutputType(GetIamOrgPolicyTimeoutsOutput{}) + pulumi.RegisterOutputType(GetIamOrgPolicyTimeoutsPtrOutput{}) + pulumi.RegisterOutputType(GetIamRolePolicyOutput{}) + pulumi.RegisterOutputType(GetIamRolePolicyServicesOutput{}) + pulumi.RegisterOutputType(GetIamRolePolicyServicesMapOutput{}) + pulumi.RegisterOutputType(GetIamRolePolicyServicesRuleOutput{}) + pulumi.RegisterOutputType(GetIamRolePolicyServicesRuleArrayOutput{}) + pulumi.RegisterOutputType(GetIamRoleTimeoutsOutput{}) + pulumi.RegisterOutputType(GetIamRoleTimeoutsPtrOutput{}) pulumi.RegisterOutputType(GetInstancePoolInstanceOutput{}) pulumi.RegisterOutputType(GetInstancePoolInstanceArrayOutput{}) pulumi.RegisterOutputType(GetInstancePoolListPoolOutput{}) pulumi.RegisterOutputType(GetInstancePoolListPoolArrayOutput{}) pulumi.RegisterOutputType(GetInstancePoolListPoolInstanceOutput{}) pulumi.RegisterOutputType(GetInstancePoolListPoolInstanceArrayOutput{}) - pulumi.RegisterOutputType(GetNLBServiceListServiceOutput{}) - pulumi.RegisterOutputType(GetNLBServiceListServiceArrayOutput{}) - pulumi.RegisterOutputType(GetNLBServiceListServiceHealthcheckOutput{}) - pulumi.RegisterOutputType(GetNLBServiceListTimeoutsOutput{}) - pulumi.RegisterOutputType(GetNLBServiceListTimeoutsPtrOutput{}) - pulumi.RegisterOutputType(GetSKSClusterListClusterOutput{}) - pulumi.RegisterOutputType(GetSKSClusterListClusterArrayOutput{}) - pulumi.RegisterOutputType(GetSKSClusterListClusterOidcOutput{}) - pulumi.RegisterOutputType(GetSKSClusterOidcOutput{}) - pulumi.RegisterOutputType(GetSKSClusterOidcPtrOutput{}) - pulumi.RegisterOutputType(GetSKSNodepoolListNodepoolOutput{}) - pulumi.RegisterOutputType(GetSKSNodepoolListNodepoolArrayOutput{}) + pulumi.RegisterOutputType(GetNlbServiceListServiceOutput{}) + pulumi.RegisterOutputType(GetNlbServiceListServiceArrayOutput{}) + pulumi.RegisterOutputType(GetNlbServiceListServiceHealthcheckOutput{}) + pulumi.RegisterOutputType(GetNlbServiceListTimeoutsOutput{}) + pulumi.RegisterOutputType(GetNlbServiceListTimeoutsPtrOutput{}) + pulumi.RegisterOutputType(GetSksClusterListClusterOutput{}) + pulumi.RegisterOutputType(GetSksClusterListClusterArrayOutput{}) + pulumi.RegisterOutputType(GetSksClusterListClusterOidcOutput{}) + pulumi.RegisterOutputType(GetSksClusterOidcOutput{}) + pulumi.RegisterOutputType(GetSksClusterOidcPtrOutput{}) + pulumi.RegisterOutputType(GetSksNodepoolListNodepoolOutput{}) + pulumi.RegisterOutputType(GetSksNodepoolListNodepoolArrayOutput{}) } diff --git a/sdk/go/exoscale/securityGroup.go b/sdk/go/exoscale/securityGroup.go index 3a7577c5..d1e9d856 100644 --- a/sdk/go/exoscale/securityGroup.go +++ b/sdk/go/exoscale/securityGroup.go @@ -11,6 +11,39 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// Manage Exoscale [Security Groups](https://community.exoscale.com/documentation/compute/security-groups/). +// +// Corresponding data source: exoscale_security_group. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := exoscale.NewSecurityGroup(ctx, "mySecurityGroup", nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// Next step is to attach exoscale_security_group_rule(s) to the group. +// +// Please refer to the examples +// directory for complete configuration examples. +// // ## Import // // An existing security group may be imported by `` diff --git a/sdk/go/exoscale/securityGroupRule.go b/sdk/go/exoscale/securityGroupRule.go index 46168d90..bcab8e00 100644 --- a/sdk/go/exoscale/securityGroupRule.go +++ b/sdk/go/exoscale/securityGroupRule.go @@ -12,6 +12,46 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// Manage Exoscale [Security Group](https://community.exoscale.com/documentation/compute/security-groups/) Rules. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// mySecurityGroup, err := exoscale.NewSecurityGroup(ctx, "mySecurityGroup", nil) +// if err != nil { +// return err +// } +// _, err = exoscale.NewSecurityGroupRule(ctx, "mySecurityGroupRule", &exoscale.SecurityGroupRuleArgs{ +// SecurityGroupId: mySecurityGroup.ID(), +// Type: pulumi.String("INGRESS"), +// Protocol: pulumi.String("TCP"), +// Cidr: pulumi.String("0.0.0.0/0"), +// StartPort: pulumi.Int(80), +// EndPort: pulumi.Int(80), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// Please refer to the examples +// directory for complete configuration examples. +// // ## Import // // An existing security group rule may be imported by `/` diff --git a/sdk/go/exoscale/skscluster.go b/sdk/go/exoscale/sksCluster.go similarity index 64% rename from sdk/go/exoscale/skscluster.go rename to sdk/go/exoscale/sksCluster.go index 8a10f931..31416649 100644 --- a/sdk/go/exoscale/skscluster.go +++ b/sdk/go/exoscale/sksCluster.go @@ -12,20 +12,54 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// Manage Exoscale [Scalable Kubernetes Service (SKS)](https://community.exoscale.com/documentation/sks/) Clusters. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// mySksCluster, err := exoscale.NewSksCluster(ctx, "mySksCluster", &exoscale.SksClusterArgs{ +// Zone: pulumi.String("ch-gva-2"), +// }) +// if err != nil { +// return err +// } +// ctx.Export("mySksClusterEndpoint", mySksCluster.Endpoint) +// return nil +// }) +// } +// +// ``` +// +// Next step is to attach exoscale_sks_nodepool(s) to the cluster. +// +// Please refer to the examples +// directory for complete configuration examples. +// // ## Import // // An existing SKS cluster may be imported by `@` // // ```sh // -// $ pulumi import exoscale:index/sKSCluster:SKSCluster \ +// $ pulumi import exoscale:index/sksCluster:SksCluster \ // // ``` // // exoscale_sks_cluster.my_sks_cluster \ // // f81d4fae-7dec-11d0-a765-00a0c91e6bf6@ch-gva-2 -type SKSCluster struct { +type SksCluster struct { pulumi.CustomResourceState // Deprecated: This attribute has been replaced by `exoscale_ccm`/`metrics_server` attributes, it will be removed in a future release. @@ -57,7 +91,7 @@ type SKSCluster struct { // The list of exoscale*sks*nodepool (IDs) attached to the cluster. Nodepools pulumi.StringArrayOutput `pulumi:"nodepools"` // An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. - Oidc SKSClusterOidcOutput `pulumi:"oidc"` + Oidc SksClusterOidcOutput `pulumi:"oidc"` // The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). ServiceLevel pulumi.StringPtrOutput `pulumi:"serviceLevel"` // The cluster state. @@ -68,9 +102,9 @@ type SKSCluster struct { Zone pulumi.StringOutput `pulumi:"zone"` } -// NewSKSCluster registers a new resource with the given unique name, arguments, and options. -func NewSKSCluster(ctx *pulumi.Context, - name string, args *SKSClusterArgs, opts ...pulumi.ResourceOption) (*SKSCluster, error) { +// NewSksCluster registers a new resource with the given unique name, arguments, and options. +func NewSksCluster(ctx *pulumi.Context, + name string, args *SksClusterArgs, opts ...pulumi.ResourceOption) (*SksCluster, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } @@ -79,28 +113,28 @@ func NewSKSCluster(ctx *pulumi.Context, return nil, errors.New("invalid value for required argument 'Zone'") } opts = internal.PkgResourceDefaultOpts(opts) - var resource SKSCluster - err := ctx.RegisterResource("exoscale:index/sKSCluster:SKSCluster", name, args, &resource, opts...) + var resource SksCluster + err := ctx.RegisterResource("exoscale:index/sksCluster:SksCluster", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } -// GetSKSCluster gets an existing SKSCluster resource's state with the given name, ID, and optional +// GetSksCluster gets an existing SksCluster 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 GetSKSCluster(ctx *pulumi.Context, - name string, id pulumi.IDInput, state *SKSClusterState, opts ...pulumi.ResourceOption) (*SKSCluster, error) { - var resource SKSCluster - err := ctx.ReadResource("exoscale:index/sKSCluster:SKSCluster", name, id, state, &resource, opts...) +func GetSksCluster(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *SksClusterState, opts ...pulumi.ResourceOption) (*SksCluster, error) { + var resource SksCluster + err := ctx.ReadResource("exoscale:index/sksCluster:SksCluster", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } -// Input properties used for looking up and filtering SKSCluster resources. -type sksclusterState struct { +// Input properties used for looking up and filtering SksCluster resources. +type sksClusterState struct { // Deprecated: This attribute has been replaced by `exoscale_ccm`/`metrics_server` attributes, it will be removed in a future release. Addons []string `pulumi:"addons"` // The CA certificate (in PEM format) for TLS communications between the control plane and the aggregation layer (e.g. `metrics-server`). @@ -130,7 +164,7 @@ type sksclusterState struct { // The list of exoscale*sks*nodepool (IDs) attached to the cluster. Nodepools []string `pulumi:"nodepools"` // An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. - Oidc *SKSClusterOidc `pulumi:"oidc"` + Oidc *SksClusterOidc `pulumi:"oidc"` // The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). ServiceLevel *string `pulumi:"serviceLevel"` // The cluster state. @@ -141,7 +175,7 @@ type sksclusterState struct { Zone *string `pulumi:"zone"` } -type SKSClusterState struct { +type SksClusterState struct { // Deprecated: This attribute has been replaced by `exoscale_ccm`/`metrics_server` attributes, it will be removed in a future release. Addons pulumi.StringArrayInput // The CA certificate (in PEM format) for TLS communications between the control plane and the aggregation layer (e.g. `metrics-server`). @@ -171,7 +205,7 @@ type SKSClusterState struct { // The list of exoscale*sks*nodepool (IDs) attached to the cluster. Nodepools pulumi.StringArrayInput // An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. - Oidc SKSClusterOidcPtrInput + Oidc SksClusterOidcPtrInput // The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). ServiceLevel pulumi.StringPtrInput // The cluster state. @@ -182,11 +216,11 @@ type SKSClusterState struct { Zone pulumi.StringPtrInput } -func (SKSClusterState) ElementType() reflect.Type { - return reflect.TypeOf((*sksclusterState)(nil)).Elem() +func (SksClusterState) ElementType() reflect.Type { + return reflect.TypeOf((*sksClusterState)(nil)).Elem() } -type sksclusterArgs struct { +type sksClusterArgs struct { // Deprecated: This attribute has been replaced by `exoscale_ccm`/`metrics_server` attributes, it will be removed in a future release. Addons []string `pulumi:"addons"` // Enable automatic upgrading of the control plane version. @@ -204,7 +238,7 @@ type sksclusterArgs struct { // The SKS cluster name. Name *string `pulumi:"name"` // An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. - Oidc *SKSClusterOidc `pulumi:"oidc"` + Oidc *SksClusterOidc `pulumi:"oidc"` // The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). ServiceLevel *string `pulumi:"serviceLevel"` // The version of the control plane (default: latest version available from the API; see `exo compute sks versions` for reference; may only be set at creation time). @@ -213,8 +247,8 @@ type sksclusterArgs struct { Zone string `pulumi:"zone"` } -// The set of arguments for constructing a SKSCluster resource. -type SKSClusterArgs struct { +// The set of arguments for constructing a SksCluster resource. +type SksClusterArgs struct { // Deprecated: This attribute has been replaced by `exoscale_ccm`/`metrics_server` attributes, it will be removed in a future release. Addons pulumi.StringArrayInput // Enable automatic upgrading of the control plane version. @@ -232,7 +266,7 @@ type SKSClusterArgs struct { // The SKS cluster name. Name pulumi.StringPtrInput // An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. - Oidc SKSClusterOidcPtrInput + Oidc SksClusterOidcPtrInput // The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). ServiceLevel pulumi.StringPtrInput // The version of the control plane (default: latest version available from the API; see `exo compute sks versions` for reference; may only be set at creation time). @@ -241,233 +275,233 @@ type SKSClusterArgs struct { Zone pulumi.StringInput } -func (SKSClusterArgs) ElementType() reflect.Type { - return reflect.TypeOf((*sksclusterArgs)(nil)).Elem() +func (SksClusterArgs) ElementType() reflect.Type { + return reflect.TypeOf((*sksClusterArgs)(nil)).Elem() } -type SKSClusterInput interface { +type SksClusterInput interface { pulumi.Input - ToSKSClusterOutput() SKSClusterOutput - ToSKSClusterOutputWithContext(ctx context.Context) SKSClusterOutput + ToSksClusterOutput() SksClusterOutput + ToSksClusterOutputWithContext(ctx context.Context) SksClusterOutput } -func (*SKSCluster) ElementType() reflect.Type { - return reflect.TypeOf((**SKSCluster)(nil)).Elem() +func (*SksCluster) ElementType() reflect.Type { + return reflect.TypeOf((**SksCluster)(nil)).Elem() } -func (i *SKSCluster) ToSKSClusterOutput() SKSClusterOutput { - return i.ToSKSClusterOutputWithContext(context.Background()) +func (i *SksCluster) ToSksClusterOutput() SksClusterOutput { + return i.ToSksClusterOutputWithContext(context.Background()) } -func (i *SKSCluster) ToSKSClusterOutputWithContext(ctx context.Context) SKSClusterOutput { - return pulumi.ToOutputWithContext(ctx, i).(SKSClusterOutput) +func (i *SksCluster) ToSksClusterOutputWithContext(ctx context.Context) SksClusterOutput { + return pulumi.ToOutputWithContext(ctx, i).(SksClusterOutput) } -// SKSClusterArrayInput is an input type that accepts SKSClusterArray and SKSClusterArrayOutput values. -// You can construct a concrete instance of `SKSClusterArrayInput` via: +// SksClusterArrayInput is an input type that accepts SksClusterArray and SksClusterArrayOutput values. +// You can construct a concrete instance of `SksClusterArrayInput` via: // -// SKSClusterArray{ SKSClusterArgs{...} } -type SKSClusterArrayInput interface { +// SksClusterArray{ SksClusterArgs{...} } +type SksClusterArrayInput interface { pulumi.Input - ToSKSClusterArrayOutput() SKSClusterArrayOutput - ToSKSClusterArrayOutputWithContext(context.Context) SKSClusterArrayOutput + ToSksClusterArrayOutput() SksClusterArrayOutput + ToSksClusterArrayOutputWithContext(context.Context) SksClusterArrayOutput } -type SKSClusterArray []SKSClusterInput +type SksClusterArray []SksClusterInput -func (SKSClusterArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]*SKSCluster)(nil)).Elem() +func (SksClusterArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*SksCluster)(nil)).Elem() } -func (i SKSClusterArray) ToSKSClusterArrayOutput() SKSClusterArrayOutput { - return i.ToSKSClusterArrayOutputWithContext(context.Background()) +func (i SksClusterArray) ToSksClusterArrayOutput() SksClusterArrayOutput { + return i.ToSksClusterArrayOutputWithContext(context.Background()) } -func (i SKSClusterArray) ToSKSClusterArrayOutputWithContext(ctx context.Context) SKSClusterArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(SKSClusterArrayOutput) +func (i SksClusterArray) ToSksClusterArrayOutputWithContext(ctx context.Context) SksClusterArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(SksClusterArrayOutput) } -// SKSClusterMapInput is an input type that accepts SKSClusterMap and SKSClusterMapOutput values. -// You can construct a concrete instance of `SKSClusterMapInput` via: +// SksClusterMapInput is an input type that accepts SksClusterMap and SksClusterMapOutput values. +// You can construct a concrete instance of `SksClusterMapInput` via: // -// SKSClusterMap{ "key": SKSClusterArgs{...} } -type SKSClusterMapInput interface { +// SksClusterMap{ "key": SksClusterArgs{...} } +type SksClusterMapInput interface { pulumi.Input - ToSKSClusterMapOutput() SKSClusterMapOutput - ToSKSClusterMapOutputWithContext(context.Context) SKSClusterMapOutput + ToSksClusterMapOutput() SksClusterMapOutput + ToSksClusterMapOutputWithContext(context.Context) SksClusterMapOutput } -type SKSClusterMap map[string]SKSClusterInput +type SksClusterMap map[string]SksClusterInput -func (SKSClusterMap) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*SKSCluster)(nil)).Elem() +func (SksClusterMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*SksCluster)(nil)).Elem() } -func (i SKSClusterMap) ToSKSClusterMapOutput() SKSClusterMapOutput { - return i.ToSKSClusterMapOutputWithContext(context.Background()) +func (i SksClusterMap) ToSksClusterMapOutput() SksClusterMapOutput { + return i.ToSksClusterMapOutputWithContext(context.Background()) } -func (i SKSClusterMap) ToSKSClusterMapOutputWithContext(ctx context.Context) SKSClusterMapOutput { - return pulumi.ToOutputWithContext(ctx, i).(SKSClusterMapOutput) +func (i SksClusterMap) ToSksClusterMapOutputWithContext(ctx context.Context) SksClusterMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(SksClusterMapOutput) } -type SKSClusterOutput struct{ *pulumi.OutputState } +type SksClusterOutput struct{ *pulumi.OutputState } -func (SKSClusterOutput) ElementType() reflect.Type { - return reflect.TypeOf((**SKSCluster)(nil)).Elem() +func (SksClusterOutput) ElementType() reflect.Type { + return reflect.TypeOf((**SksCluster)(nil)).Elem() } -func (o SKSClusterOutput) ToSKSClusterOutput() SKSClusterOutput { +func (o SksClusterOutput) ToSksClusterOutput() SksClusterOutput { return o } -func (o SKSClusterOutput) ToSKSClusterOutputWithContext(ctx context.Context) SKSClusterOutput { +func (o SksClusterOutput) ToSksClusterOutputWithContext(ctx context.Context) SksClusterOutput { return o } // Deprecated: This attribute has been replaced by `exoscale_ccm`/`metrics_server` attributes, it will be removed in a future release. -func (o SKSClusterOutput) Addons() pulumi.StringArrayOutput { - return o.ApplyT(func(v *SKSCluster) pulumi.StringArrayOutput { return v.Addons }).(pulumi.StringArrayOutput) +func (o SksClusterOutput) Addons() pulumi.StringArrayOutput { + return o.ApplyT(func(v *SksCluster) pulumi.StringArrayOutput { return v.Addons }).(pulumi.StringArrayOutput) } // The CA certificate (in PEM format) for TLS communications between the control plane and the aggregation layer (e.g. `metrics-server`). -func (o SKSClusterOutput) AggregationCa() pulumi.StringOutput { - return o.ApplyT(func(v *SKSCluster) pulumi.StringOutput { return v.AggregationCa }).(pulumi.StringOutput) +func (o SksClusterOutput) AggregationCa() pulumi.StringOutput { + return o.ApplyT(func(v *SksCluster) pulumi.StringOutput { return v.AggregationCa }).(pulumi.StringOutput) } // Enable automatic upgrading of the control plane version. -func (o SKSClusterOutput) AutoUpgrade() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *SKSCluster) pulumi.BoolPtrOutput { return v.AutoUpgrade }).(pulumi.BoolPtrOutput) +func (o SksClusterOutput) AutoUpgrade() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *SksCluster) pulumi.BoolPtrOutput { return v.AutoUpgrade }).(pulumi.BoolPtrOutput) } // The CNI plugin that is to be used. Available options are "calico" or "cilium". Defaults to "calico". Setting empty string will result in a cluster with no CNI. -func (o SKSClusterOutput) Cni() pulumi.StringPtrOutput { - return o.ApplyT(func(v *SKSCluster) pulumi.StringPtrOutput { return v.Cni }).(pulumi.StringPtrOutput) +func (o SksClusterOutput) Cni() pulumi.StringPtrOutput { + return o.ApplyT(func(v *SksCluster) pulumi.StringPtrOutput { return v.Cni }).(pulumi.StringPtrOutput) } // The CA certificate (in PEM format) for TLS communications between control plane components. -func (o SKSClusterOutput) ControlPlaneCa() pulumi.StringOutput { - return o.ApplyT(func(v *SKSCluster) pulumi.StringOutput { return v.ControlPlaneCa }).(pulumi.StringOutput) +func (o SksClusterOutput) ControlPlaneCa() pulumi.StringOutput { + return o.ApplyT(func(v *SksCluster) pulumi.StringOutput { return v.ControlPlaneCa }).(pulumi.StringOutput) } // The cluster creation date. -func (o SKSClusterOutput) CreatedAt() pulumi.StringOutput { - return o.ApplyT(func(v *SKSCluster) pulumi.StringOutput { return v.CreatedAt }).(pulumi.StringOutput) +func (o SksClusterOutput) CreatedAt() pulumi.StringOutput { + return o.ApplyT(func(v *SksCluster) pulumi.StringOutput { return v.CreatedAt }).(pulumi.StringOutput) } // A free-form text describing the cluster. -func (o SKSClusterOutput) Description() pulumi.StringPtrOutput { - return o.ApplyT(func(v *SKSCluster) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) +func (o SksClusterOutput) Description() pulumi.StringPtrOutput { + return o.ApplyT(func(v *SksCluster) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The cluster API endpoint. -func (o SKSClusterOutput) Endpoint() pulumi.StringOutput { - return o.ApplyT(func(v *SKSCluster) pulumi.StringOutput { return v.Endpoint }).(pulumi.StringOutput) +func (o SksClusterOutput) Endpoint() pulumi.StringOutput { + return o.ApplyT(func(v *SksCluster) pulumi.StringOutput { return v.Endpoint }).(pulumi.StringOutput) } // Deploy the Exoscale [Cloud Controller Manager](https://github.com/exoscale/exoscale-cloud-controller-manager/) in the control plane (boolean; default: `true`; may only be set at creation time). -func (o SKSClusterOutput) ExoscaleCcm() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *SKSCluster) pulumi.BoolPtrOutput { return v.ExoscaleCcm }).(pulumi.BoolPtrOutput) +func (o SksClusterOutput) ExoscaleCcm() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *SksCluster) pulumi.BoolPtrOutput { return v.ExoscaleCcm }).(pulumi.BoolPtrOutput) } // The CA certificate (in PEM format) for TLS communications between kubelets and the control plane. -func (o SKSClusterOutput) KubeletCa() pulumi.StringOutput { - return o.ApplyT(func(v *SKSCluster) pulumi.StringOutput { return v.KubeletCa }).(pulumi.StringOutput) +func (o SksClusterOutput) KubeletCa() pulumi.StringOutput { + return o.ApplyT(func(v *SksCluster) pulumi.StringOutput { return v.KubeletCa }).(pulumi.StringOutput) } // A map of key/value labels. -func (o SKSClusterOutput) Labels() pulumi.StringMapOutput { - return o.ApplyT(func(v *SKSCluster) pulumi.StringMapOutput { return v.Labels }).(pulumi.StringMapOutput) +func (o SksClusterOutput) Labels() pulumi.StringMapOutput { + return o.ApplyT(func(v *SksCluster) pulumi.StringMapOutput { return v.Labels }).(pulumi.StringMapOutput) } // Deploy the [Kubernetes Metrics Server](https://github.com/kubernetes-sigs/metrics-server/) in the control plane (boolean; default: `true`; may only be set at creation time). -func (o SKSClusterOutput) MetricsServer() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *SKSCluster) pulumi.BoolPtrOutput { return v.MetricsServer }).(pulumi.BoolPtrOutput) +func (o SksClusterOutput) MetricsServer() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *SksCluster) pulumi.BoolPtrOutput { return v.MetricsServer }).(pulumi.BoolPtrOutput) } // The SKS cluster name. -func (o SKSClusterOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v *SKSCluster) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +func (o SksClusterOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *SksCluster) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // The list of exoscale*sks*nodepool (IDs) attached to the cluster. -func (o SKSClusterOutput) Nodepools() pulumi.StringArrayOutput { - return o.ApplyT(func(v *SKSCluster) pulumi.StringArrayOutput { return v.Nodepools }).(pulumi.StringArrayOutput) +func (o SksClusterOutput) Nodepools() pulumi.StringArrayOutput { + return o.ApplyT(func(v *SksCluster) pulumi.StringArrayOutput { return v.Nodepools }).(pulumi.StringArrayOutput) } // An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. -func (o SKSClusterOutput) Oidc() SKSClusterOidcOutput { - return o.ApplyT(func(v *SKSCluster) SKSClusterOidcOutput { return v.Oidc }).(SKSClusterOidcOutput) +func (o SksClusterOutput) Oidc() SksClusterOidcOutput { + return o.ApplyT(func(v *SksCluster) SksClusterOidcOutput { return v.Oidc }).(SksClusterOidcOutput) } // The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). -func (o SKSClusterOutput) ServiceLevel() pulumi.StringPtrOutput { - return o.ApplyT(func(v *SKSCluster) pulumi.StringPtrOutput { return v.ServiceLevel }).(pulumi.StringPtrOutput) +func (o SksClusterOutput) ServiceLevel() pulumi.StringPtrOutput { + return o.ApplyT(func(v *SksCluster) pulumi.StringPtrOutput { return v.ServiceLevel }).(pulumi.StringPtrOutput) } // The cluster state. -func (o SKSClusterOutput) State() pulumi.StringOutput { - return o.ApplyT(func(v *SKSCluster) pulumi.StringOutput { return v.State }).(pulumi.StringOutput) +func (o SksClusterOutput) State() pulumi.StringOutput { + return o.ApplyT(func(v *SksCluster) pulumi.StringOutput { return v.State }).(pulumi.StringOutput) } // The version of the control plane (default: latest version available from the API; see `exo compute sks versions` for reference; may only be set at creation time). -func (o SKSClusterOutput) Version() pulumi.StringOutput { - return o.ApplyT(func(v *SKSCluster) pulumi.StringOutput { return v.Version }).(pulumi.StringOutput) +func (o SksClusterOutput) Version() pulumi.StringOutput { + return o.ApplyT(func(v *SksCluster) pulumi.StringOutput { return v.Version }).(pulumi.StringOutput) } // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. -func (o SKSClusterOutput) Zone() pulumi.StringOutput { - return o.ApplyT(func(v *SKSCluster) pulumi.StringOutput { return v.Zone }).(pulumi.StringOutput) +func (o SksClusterOutput) Zone() pulumi.StringOutput { + return o.ApplyT(func(v *SksCluster) pulumi.StringOutput { return v.Zone }).(pulumi.StringOutput) } -type SKSClusterArrayOutput struct{ *pulumi.OutputState } +type SksClusterArrayOutput struct{ *pulumi.OutputState } -func (SKSClusterArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]*SKSCluster)(nil)).Elem() +func (SksClusterArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*SksCluster)(nil)).Elem() } -func (o SKSClusterArrayOutput) ToSKSClusterArrayOutput() SKSClusterArrayOutput { +func (o SksClusterArrayOutput) ToSksClusterArrayOutput() SksClusterArrayOutput { return o } -func (o SKSClusterArrayOutput) ToSKSClusterArrayOutputWithContext(ctx context.Context) SKSClusterArrayOutput { +func (o SksClusterArrayOutput) ToSksClusterArrayOutputWithContext(ctx context.Context) SksClusterArrayOutput { return o } -func (o SKSClusterArrayOutput) Index(i pulumi.IntInput) SKSClusterOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SKSCluster { - return vs[0].([]*SKSCluster)[vs[1].(int)] - }).(SKSClusterOutput) +func (o SksClusterArrayOutput) Index(i pulumi.IntInput) SksClusterOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SksCluster { + return vs[0].([]*SksCluster)[vs[1].(int)] + }).(SksClusterOutput) } -type SKSClusterMapOutput struct{ *pulumi.OutputState } +type SksClusterMapOutput struct{ *pulumi.OutputState } -func (SKSClusterMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*SKSCluster)(nil)).Elem() +func (SksClusterMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*SksCluster)(nil)).Elem() } -func (o SKSClusterMapOutput) ToSKSClusterMapOutput() SKSClusterMapOutput { +func (o SksClusterMapOutput) ToSksClusterMapOutput() SksClusterMapOutput { return o } -func (o SKSClusterMapOutput) ToSKSClusterMapOutputWithContext(ctx context.Context) SKSClusterMapOutput { +func (o SksClusterMapOutput) ToSksClusterMapOutputWithContext(ctx context.Context) SksClusterMapOutput { return o } -func (o SKSClusterMapOutput) MapIndex(k pulumi.StringInput) SKSClusterOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SKSCluster { - return vs[0].(map[string]*SKSCluster)[vs[1].(string)] - }).(SKSClusterOutput) +func (o SksClusterMapOutput) MapIndex(k pulumi.StringInput) SksClusterOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SksCluster { + return vs[0].(map[string]*SksCluster)[vs[1].(string)] + }).(SksClusterOutput) } func init() { - pulumi.RegisterInputType(reflect.TypeOf((*SKSClusterInput)(nil)).Elem(), &SKSCluster{}) - pulumi.RegisterInputType(reflect.TypeOf((*SKSClusterArrayInput)(nil)).Elem(), SKSClusterArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*SKSClusterMapInput)(nil)).Elem(), SKSClusterMap{}) - pulumi.RegisterOutputType(SKSClusterOutput{}) - pulumi.RegisterOutputType(SKSClusterArrayOutput{}) - pulumi.RegisterOutputType(SKSClusterMapOutput{}) + pulumi.RegisterInputType(reflect.TypeOf((*SksClusterInput)(nil)).Elem(), &SksCluster{}) + pulumi.RegisterInputType(reflect.TypeOf((*SksClusterArrayInput)(nil)).Elem(), SksClusterArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*SksClusterMapInput)(nil)).Elem(), SksClusterMap{}) + pulumi.RegisterOutputType(SksClusterOutput{}) + pulumi.RegisterOutputType(SksClusterArrayOutput{}) + pulumi.RegisterOutputType(SksClusterMapOutput{}) } diff --git a/sdk/go/exoscale/skskubeconfig.go b/sdk/go/exoscale/sksKubeconfig.go similarity index 62% rename from sdk/go/exoscale/skskubeconfig.go rename to sdk/go/exoscale/sksKubeconfig.go index 1410e617..a36329ad 100644 --- a/sdk/go/exoscale/skskubeconfig.go +++ b/sdk/go/exoscale/sksKubeconfig.go @@ -12,7 +12,7 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) -type SKSKubeconfig struct { +type SksKubeconfig struct { pulumi.CustomResourceState // ❗ The parent exoscale*sks*cluster ID. @@ -36,9 +36,9 @@ type SKSKubeconfig struct { Zone pulumi.StringOutput `pulumi:"zone"` } -// NewSKSKubeconfig registers a new resource with the given unique name, arguments, and options. -func NewSKSKubeconfig(ctx *pulumi.Context, - name string, args *SKSKubeconfigArgs, opts ...pulumi.ResourceOption) (*SKSKubeconfig, error) { +// NewSksKubeconfig registers a new resource with the given unique name, arguments, and options. +func NewSksKubeconfig(ctx *pulumi.Context, + name string, args *SksKubeconfigArgs, opts ...pulumi.ResourceOption) (*SksKubeconfig, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } @@ -60,28 +60,28 @@ func NewSKSKubeconfig(ctx *pulumi.Context, }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) - var resource SKSKubeconfig - err := ctx.RegisterResource("exoscale:index/sKSKubeconfig:SKSKubeconfig", name, args, &resource, opts...) + var resource SksKubeconfig + err := ctx.RegisterResource("exoscale:index/sksKubeconfig:SksKubeconfig", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } -// GetSKSKubeconfig gets an existing SKSKubeconfig resource's state with the given name, ID, and optional +// GetSksKubeconfig gets an existing SksKubeconfig 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 GetSKSKubeconfig(ctx *pulumi.Context, - name string, id pulumi.IDInput, state *SKSKubeconfigState, opts ...pulumi.ResourceOption) (*SKSKubeconfig, error) { - var resource SKSKubeconfig - err := ctx.ReadResource("exoscale:index/sKSKubeconfig:SKSKubeconfig", name, id, state, &resource, opts...) +func GetSksKubeconfig(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *SksKubeconfigState, opts ...pulumi.ResourceOption) (*SksKubeconfig, error) { + var resource SksKubeconfig + err := ctx.ReadResource("exoscale:index/sksKubeconfig:SksKubeconfig", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } -// Input properties used for looking up and filtering SKSKubeconfig resources. -type skskubeconfigState struct { +// Input properties used for looking up and filtering SksKubeconfig resources. +type sksKubeconfigState struct { // ❗ The parent exoscale*sks*cluster ID. ClusterId *string `pulumi:"clusterId"` // If set, the resource will consider the Kubeconfig to have expired the given number of seconds before its actual CA @@ -103,7 +103,7 @@ type skskubeconfigState struct { Zone *string `pulumi:"zone"` } -type SKSKubeconfigState struct { +type SksKubeconfigState struct { // ❗ The parent exoscale*sks*cluster ID. ClusterId pulumi.StringPtrInput // If set, the resource will consider the Kubeconfig to have expired the given number of seconds before its actual CA @@ -125,11 +125,11 @@ type SKSKubeconfigState struct { Zone pulumi.StringPtrInput } -func (SKSKubeconfigState) ElementType() reflect.Type { - return reflect.TypeOf((*skskubeconfigState)(nil)).Elem() +func (SksKubeconfigState) ElementType() reflect.Type { + return reflect.TypeOf((*sksKubeconfigState)(nil)).Elem() } -type skskubeconfigArgs struct { +type sksKubeconfigArgs struct { // ❗ The parent exoscale*sks*cluster ID. ClusterId string `pulumi:"clusterId"` // If set, the resource will consider the Kubeconfig to have expired the given number of seconds before its actual CA @@ -148,8 +148,8 @@ type skskubeconfigArgs struct { Zone string `pulumi:"zone"` } -// The set of arguments for constructing a SKSKubeconfig resource. -type SKSKubeconfigArgs struct { +// The set of arguments for constructing a SksKubeconfig resource. +type SksKubeconfigArgs struct { // ❗ The parent exoscale*sks*cluster ID. ClusterId pulumi.StringInput // If set, the resource will consider the Kubeconfig to have expired the given number of seconds before its actual CA @@ -168,96 +168,96 @@ type SKSKubeconfigArgs struct { Zone pulumi.StringInput } -func (SKSKubeconfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*skskubeconfigArgs)(nil)).Elem() +func (SksKubeconfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*sksKubeconfigArgs)(nil)).Elem() } -type SKSKubeconfigInput interface { +type SksKubeconfigInput interface { pulumi.Input - ToSKSKubeconfigOutput() SKSKubeconfigOutput - ToSKSKubeconfigOutputWithContext(ctx context.Context) SKSKubeconfigOutput + ToSksKubeconfigOutput() SksKubeconfigOutput + ToSksKubeconfigOutputWithContext(ctx context.Context) SksKubeconfigOutput } -func (*SKSKubeconfig) ElementType() reflect.Type { - return reflect.TypeOf((**SKSKubeconfig)(nil)).Elem() +func (*SksKubeconfig) ElementType() reflect.Type { + return reflect.TypeOf((**SksKubeconfig)(nil)).Elem() } -func (i *SKSKubeconfig) ToSKSKubeconfigOutput() SKSKubeconfigOutput { - return i.ToSKSKubeconfigOutputWithContext(context.Background()) +func (i *SksKubeconfig) ToSksKubeconfigOutput() SksKubeconfigOutput { + return i.ToSksKubeconfigOutputWithContext(context.Background()) } -func (i *SKSKubeconfig) ToSKSKubeconfigOutputWithContext(ctx context.Context) SKSKubeconfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(SKSKubeconfigOutput) +func (i *SksKubeconfig) ToSksKubeconfigOutputWithContext(ctx context.Context) SksKubeconfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(SksKubeconfigOutput) } -// SKSKubeconfigArrayInput is an input type that accepts SKSKubeconfigArray and SKSKubeconfigArrayOutput values. -// You can construct a concrete instance of `SKSKubeconfigArrayInput` via: +// SksKubeconfigArrayInput is an input type that accepts SksKubeconfigArray and SksKubeconfigArrayOutput values. +// You can construct a concrete instance of `SksKubeconfigArrayInput` via: // -// SKSKubeconfigArray{ SKSKubeconfigArgs{...} } -type SKSKubeconfigArrayInput interface { +// SksKubeconfigArray{ SksKubeconfigArgs{...} } +type SksKubeconfigArrayInput interface { pulumi.Input - ToSKSKubeconfigArrayOutput() SKSKubeconfigArrayOutput - ToSKSKubeconfigArrayOutputWithContext(context.Context) SKSKubeconfigArrayOutput + ToSksKubeconfigArrayOutput() SksKubeconfigArrayOutput + ToSksKubeconfigArrayOutputWithContext(context.Context) SksKubeconfigArrayOutput } -type SKSKubeconfigArray []SKSKubeconfigInput +type SksKubeconfigArray []SksKubeconfigInput -func (SKSKubeconfigArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]*SKSKubeconfig)(nil)).Elem() +func (SksKubeconfigArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*SksKubeconfig)(nil)).Elem() } -func (i SKSKubeconfigArray) ToSKSKubeconfigArrayOutput() SKSKubeconfigArrayOutput { - return i.ToSKSKubeconfigArrayOutputWithContext(context.Background()) +func (i SksKubeconfigArray) ToSksKubeconfigArrayOutput() SksKubeconfigArrayOutput { + return i.ToSksKubeconfigArrayOutputWithContext(context.Background()) } -func (i SKSKubeconfigArray) ToSKSKubeconfigArrayOutputWithContext(ctx context.Context) SKSKubeconfigArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(SKSKubeconfigArrayOutput) +func (i SksKubeconfigArray) ToSksKubeconfigArrayOutputWithContext(ctx context.Context) SksKubeconfigArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(SksKubeconfigArrayOutput) } -// SKSKubeconfigMapInput is an input type that accepts SKSKubeconfigMap and SKSKubeconfigMapOutput values. -// You can construct a concrete instance of `SKSKubeconfigMapInput` via: +// SksKubeconfigMapInput is an input type that accepts SksKubeconfigMap and SksKubeconfigMapOutput values. +// You can construct a concrete instance of `SksKubeconfigMapInput` via: // -// SKSKubeconfigMap{ "key": SKSKubeconfigArgs{...} } -type SKSKubeconfigMapInput interface { +// SksKubeconfigMap{ "key": SksKubeconfigArgs{...} } +type SksKubeconfigMapInput interface { pulumi.Input - ToSKSKubeconfigMapOutput() SKSKubeconfigMapOutput - ToSKSKubeconfigMapOutputWithContext(context.Context) SKSKubeconfigMapOutput + ToSksKubeconfigMapOutput() SksKubeconfigMapOutput + ToSksKubeconfigMapOutputWithContext(context.Context) SksKubeconfigMapOutput } -type SKSKubeconfigMap map[string]SKSKubeconfigInput +type SksKubeconfigMap map[string]SksKubeconfigInput -func (SKSKubeconfigMap) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*SKSKubeconfig)(nil)).Elem() +func (SksKubeconfigMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*SksKubeconfig)(nil)).Elem() } -func (i SKSKubeconfigMap) ToSKSKubeconfigMapOutput() SKSKubeconfigMapOutput { - return i.ToSKSKubeconfigMapOutputWithContext(context.Background()) +func (i SksKubeconfigMap) ToSksKubeconfigMapOutput() SksKubeconfigMapOutput { + return i.ToSksKubeconfigMapOutputWithContext(context.Background()) } -func (i SKSKubeconfigMap) ToSKSKubeconfigMapOutputWithContext(ctx context.Context) SKSKubeconfigMapOutput { - return pulumi.ToOutputWithContext(ctx, i).(SKSKubeconfigMapOutput) +func (i SksKubeconfigMap) ToSksKubeconfigMapOutputWithContext(ctx context.Context) SksKubeconfigMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(SksKubeconfigMapOutput) } -type SKSKubeconfigOutput struct{ *pulumi.OutputState } +type SksKubeconfigOutput struct{ *pulumi.OutputState } -func (SKSKubeconfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((**SKSKubeconfig)(nil)).Elem() +func (SksKubeconfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((**SksKubeconfig)(nil)).Elem() } -func (o SKSKubeconfigOutput) ToSKSKubeconfigOutput() SKSKubeconfigOutput { +func (o SksKubeconfigOutput) ToSksKubeconfigOutput() SksKubeconfigOutput { return o } -func (o SKSKubeconfigOutput) ToSKSKubeconfigOutputWithContext(ctx context.Context) SKSKubeconfigOutput { +func (o SksKubeconfigOutput) ToSksKubeconfigOutputWithContext(ctx context.Context) SksKubeconfigOutput { return o } // ❗ The parent exoscale*sks*cluster ID. -func (o SKSKubeconfigOutput) ClusterId() pulumi.StringOutput { - return o.ApplyT(func(v *SKSKubeconfig) pulumi.StringOutput { return v.ClusterId }).(pulumi.StringOutput) +func (o SksKubeconfigOutput) ClusterId() pulumi.StringOutput { + return o.ApplyT(func(v *SksKubeconfig) pulumi.StringOutput { return v.ClusterId }).(pulumi.StringOutput) } // If set, the resource will consider the Kubeconfig to have expired the given number of seconds before its actual CA @@ -265,84 +265,84 @@ func (o SKSKubeconfigOutput) ClusterId() pulumi.StringOutput { // expiration of its internal current certificate. Note however that the old certificate remains valid until its true // expiration time since this resource does not (and cannot) support revocation. Also note this advance update can only // take place if the Terraform configuration is applied during the early renewal period (seconds; default: 0). -func (o SKSKubeconfigOutput) EarlyRenewalSeconds() pulumi.IntPtrOutput { - return o.ApplyT(func(v *SKSKubeconfig) pulumi.IntPtrOutput { return v.EarlyRenewalSeconds }).(pulumi.IntPtrOutput) +func (o SksKubeconfigOutput) EarlyRenewalSeconds() pulumi.IntPtrOutput { + return o.ApplyT(func(v *SksKubeconfig) pulumi.IntPtrOutput { return v.EarlyRenewalSeconds }).(pulumi.IntPtrOutput) } // ❗ Group names in the generated Kubeconfig. The certificate present in the Kubeconfig will have these roles set in the Organization field. -func (o SKSKubeconfigOutput) Groups() pulumi.StringArrayOutput { - return o.ApplyT(func(v *SKSKubeconfig) pulumi.StringArrayOutput { return v.Groups }).(pulumi.StringArrayOutput) +func (o SksKubeconfigOutput) Groups() pulumi.StringArrayOutput { + return o.ApplyT(func(v *SksKubeconfig) pulumi.StringArrayOutput { return v.Groups }).(pulumi.StringArrayOutput) } // The generated Kubeconfig (YAML content). -func (o SKSKubeconfigOutput) Kubeconfig() pulumi.StringOutput { - return o.ApplyT(func(v *SKSKubeconfig) pulumi.StringOutput { return v.Kubeconfig }).(pulumi.StringOutput) +func (o SksKubeconfigOutput) Kubeconfig() pulumi.StringOutput { + return o.ApplyT(func(v *SksKubeconfig) pulumi.StringOutput { return v.Kubeconfig }).(pulumi.StringOutput) } -func (o SKSKubeconfigOutput) ReadyForRenewal() pulumi.BoolOutput { - return o.ApplyT(func(v *SKSKubeconfig) pulumi.BoolOutput { return v.ReadyForRenewal }).(pulumi.BoolOutput) +func (o SksKubeconfigOutput) ReadyForRenewal() pulumi.BoolOutput { + return o.ApplyT(func(v *SksKubeconfig) pulumi.BoolOutput { return v.ReadyForRenewal }).(pulumi.BoolOutput) } // ❗ The Time-to-Live of the Kubeconfig, after which it will expire / become invalid (seconds; default: 2592000 = 30 days). -func (o SKSKubeconfigOutput) TtlSeconds() pulumi.Float64PtrOutput { - return o.ApplyT(func(v *SKSKubeconfig) pulumi.Float64PtrOutput { return v.TtlSeconds }).(pulumi.Float64PtrOutput) +func (o SksKubeconfigOutput) TtlSeconds() pulumi.Float64PtrOutput { + return o.ApplyT(func(v *SksKubeconfig) pulumi.Float64PtrOutput { return v.TtlSeconds }).(pulumi.Float64PtrOutput) } // ❗ User name in the generated Kubeconfig. The certificate present in the Kubeconfig will also have this name set for the CN field. -func (o SKSKubeconfigOutput) User() pulumi.StringOutput { - return o.ApplyT(func(v *SKSKubeconfig) pulumi.StringOutput { return v.User }).(pulumi.StringOutput) +func (o SksKubeconfigOutput) User() pulumi.StringOutput { + return o.ApplyT(func(v *SksKubeconfig) pulumi.StringOutput { return v.User }).(pulumi.StringOutput) } // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. -func (o SKSKubeconfigOutput) Zone() pulumi.StringOutput { - return o.ApplyT(func(v *SKSKubeconfig) pulumi.StringOutput { return v.Zone }).(pulumi.StringOutput) +func (o SksKubeconfigOutput) Zone() pulumi.StringOutput { + return o.ApplyT(func(v *SksKubeconfig) pulumi.StringOutput { return v.Zone }).(pulumi.StringOutput) } -type SKSKubeconfigArrayOutput struct{ *pulumi.OutputState } +type SksKubeconfigArrayOutput struct{ *pulumi.OutputState } -func (SKSKubeconfigArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]*SKSKubeconfig)(nil)).Elem() +func (SksKubeconfigArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*SksKubeconfig)(nil)).Elem() } -func (o SKSKubeconfigArrayOutput) ToSKSKubeconfigArrayOutput() SKSKubeconfigArrayOutput { +func (o SksKubeconfigArrayOutput) ToSksKubeconfigArrayOutput() SksKubeconfigArrayOutput { return o } -func (o SKSKubeconfigArrayOutput) ToSKSKubeconfigArrayOutputWithContext(ctx context.Context) SKSKubeconfigArrayOutput { +func (o SksKubeconfigArrayOutput) ToSksKubeconfigArrayOutputWithContext(ctx context.Context) SksKubeconfigArrayOutput { return o } -func (o SKSKubeconfigArrayOutput) Index(i pulumi.IntInput) SKSKubeconfigOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SKSKubeconfig { - return vs[0].([]*SKSKubeconfig)[vs[1].(int)] - }).(SKSKubeconfigOutput) +func (o SksKubeconfigArrayOutput) Index(i pulumi.IntInput) SksKubeconfigOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SksKubeconfig { + return vs[0].([]*SksKubeconfig)[vs[1].(int)] + }).(SksKubeconfigOutput) } -type SKSKubeconfigMapOutput struct{ *pulumi.OutputState } +type SksKubeconfigMapOutput struct{ *pulumi.OutputState } -func (SKSKubeconfigMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*SKSKubeconfig)(nil)).Elem() +func (SksKubeconfigMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*SksKubeconfig)(nil)).Elem() } -func (o SKSKubeconfigMapOutput) ToSKSKubeconfigMapOutput() SKSKubeconfigMapOutput { +func (o SksKubeconfigMapOutput) ToSksKubeconfigMapOutput() SksKubeconfigMapOutput { return o } -func (o SKSKubeconfigMapOutput) ToSKSKubeconfigMapOutputWithContext(ctx context.Context) SKSKubeconfigMapOutput { +func (o SksKubeconfigMapOutput) ToSksKubeconfigMapOutputWithContext(ctx context.Context) SksKubeconfigMapOutput { return o } -func (o SKSKubeconfigMapOutput) MapIndex(k pulumi.StringInput) SKSKubeconfigOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SKSKubeconfig { - return vs[0].(map[string]*SKSKubeconfig)[vs[1].(string)] - }).(SKSKubeconfigOutput) +func (o SksKubeconfigMapOutput) MapIndex(k pulumi.StringInput) SksKubeconfigOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SksKubeconfig { + return vs[0].(map[string]*SksKubeconfig)[vs[1].(string)] + }).(SksKubeconfigOutput) } func init() { - pulumi.RegisterInputType(reflect.TypeOf((*SKSKubeconfigInput)(nil)).Elem(), &SKSKubeconfig{}) - pulumi.RegisterInputType(reflect.TypeOf((*SKSKubeconfigArrayInput)(nil)).Elem(), SKSKubeconfigArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*SKSKubeconfigMapInput)(nil)).Elem(), SKSKubeconfigMap{}) - pulumi.RegisterOutputType(SKSKubeconfigOutput{}) - pulumi.RegisterOutputType(SKSKubeconfigArrayOutput{}) - pulumi.RegisterOutputType(SKSKubeconfigMapOutput{}) + pulumi.RegisterInputType(reflect.TypeOf((*SksKubeconfigInput)(nil)).Elem(), &SksKubeconfig{}) + pulumi.RegisterInputType(reflect.TypeOf((*SksKubeconfigArrayInput)(nil)).Elem(), SksKubeconfigArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*SksKubeconfigMapInput)(nil)).Elem(), SksKubeconfigMap{}) + pulumi.RegisterOutputType(SksKubeconfigOutput{}) + pulumi.RegisterOutputType(SksKubeconfigArrayOutput{}) + pulumi.RegisterOutputType(SksKubeconfigMapOutput{}) } diff --git a/sdk/go/exoscale/sksnodepool.go b/sdk/go/exoscale/sksNodepool.go similarity index 59% rename from sdk/go/exoscale/sksnodepool.go rename to sdk/go/exoscale/sksNodepool.go index a9fa8dc7..3f04e1b2 100644 --- a/sdk/go/exoscale/sksnodepool.go +++ b/sdk/go/exoscale/sksNodepool.go @@ -12,20 +12,60 @@ import ( "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" ) +// Manage Exoscale [Scalable Kubernetes Service (SKS)](https://community.exoscale.com/documentation/sks/) Node Pools. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// mySksCluster, err := exoscale.NewSksCluster(ctx, "mySksCluster", &exoscale.SksClusterArgs{ +// Zone: pulumi.String("ch-gva-2"), +// }) +// if err != nil { +// return err +// } +// _, err = exoscale.NewSksNodepool(ctx, "mySksNodepool", &exoscale.SksNodepoolArgs{ +// ClusterId: mySksCluster.ID(), +// Zone: mySksCluster.Zone, +// InstanceType: pulumi.String("standard.medium"), +// Size: pulumi.Int(3), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// Please refer to the examples +// directory for complete configuration examples. +// // ## Import // // An existing SKS node pool may be imported by `/@` // // ```sh // -// $ pulumi import exoscale:index/sKSNodepool:SKSNodepool \ +// $ pulumi import exoscale:index/sksNodepool:SksNodepool \ // // ``` // // exoscale_sks_nodepool.my_sks_nodepool \ // // f81d4fae-7dec-11d0-a765-00a0c91e6bf6/9ecc6b8b-73d4-4211-8ced-f7f29bb79524@ch-gva-2 -type SKSNodepool struct { +type SksNodepool struct { pulumi.CustomResourceState // A list of exoscale*anti*affinity_group (IDs) to be attached to the managed instances. @@ -59,7 +99,7 @@ type SKSNodepool struct { State pulumi.StringOutput `pulumi:"state"` // Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time). StorageLvm pulumi.BoolPtrOutput `pulumi:"storageLvm"` - // A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + // A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }'). Taints pulumi.StringMapOutput `pulumi:"taints"` // The managed instances template ID. TemplateId pulumi.StringOutput `pulumi:"templateId"` @@ -69,9 +109,9 @@ type SKSNodepool struct { Zone pulumi.StringOutput `pulumi:"zone"` } -// NewSKSNodepool registers a new resource with the given unique name, arguments, and options. -func NewSKSNodepool(ctx *pulumi.Context, - name string, args *SKSNodepoolArgs, opts ...pulumi.ResourceOption) (*SKSNodepool, error) { +// NewSksNodepool registers a new resource with the given unique name, arguments, and options. +func NewSksNodepool(ctx *pulumi.Context, + name string, args *SksNodepoolArgs, opts ...pulumi.ResourceOption) (*SksNodepool, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } @@ -89,28 +129,28 @@ func NewSKSNodepool(ctx *pulumi.Context, return nil, errors.New("invalid value for required argument 'Zone'") } opts = internal.PkgResourceDefaultOpts(opts) - var resource SKSNodepool - err := ctx.RegisterResource("exoscale:index/sKSNodepool:SKSNodepool", name, args, &resource, opts...) + var resource SksNodepool + err := ctx.RegisterResource("exoscale:index/sksNodepool:SksNodepool", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } -// GetSKSNodepool gets an existing SKSNodepool resource's state with the given name, ID, and optional +// GetSksNodepool gets an existing SksNodepool 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 GetSKSNodepool(ctx *pulumi.Context, - name string, id pulumi.IDInput, state *SKSNodepoolState, opts ...pulumi.ResourceOption) (*SKSNodepool, error) { - var resource SKSNodepool - err := ctx.ReadResource("exoscale:index/sKSNodepool:SKSNodepool", name, id, state, &resource, opts...) +func GetSksNodepool(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *SksNodepoolState, opts ...pulumi.ResourceOption) (*SksNodepool, error) { + var resource SksNodepool + err := ctx.ReadResource("exoscale:index/sksNodepool:SksNodepool", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } -// Input properties used for looking up and filtering SKSNodepool resources. -type sksnodepoolState struct { +// Input properties used for looking up and filtering SksNodepool resources. +type sksNodepoolState struct { // A list of exoscale*anti*affinity_group (IDs) to be attached to the managed instances. AntiAffinityGroupIds []string `pulumi:"antiAffinityGroupIds"` // ❗ The parent exoscale*sks*cluster ID. @@ -142,7 +182,7 @@ type sksnodepoolState struct { State *string `pulumi:"state"` // Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time). StorageLvm *bool `pulumi:"storageLvm"` - // A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + // A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }'). Taints map[string]string `pulumi:"taints"` // The managed instances template ID. TemplateId *string `pulumi:"templateId"` @@ -152,7 +192,7 @@ type sksnodepoolState struct { Zone *string `pulumi:"zone"` } -type SKSNodepoolState struct { +type SksNodepoolState struct { // A list of exoscale*anti*affinity_group (IDs) to be attached to the managed instances. AntiAffinityGroupIds pulumi.StringArrayInput // ❗ The parent exoscale*sks*cluster ID. @@ -184,7 +224,7 @@ type SKSNodepoolState struct { State pulumi.StringPtrInput // Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time). StorageLvm pulumi.BoolPtrInput - // A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + // A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }'). Taints pulumi.StringMapInput // The managed instances template ID. TemplateId pulumi.StringPtrInput @@ -194,11 +234,11 @@ type SKSNodepoolState struct { Zone pulumi.StringPtrInput } -func (SKSNodepoolState) ElementType() reflect.Type { - return reflect.TypeOf((*sksnodepoolState)(nil)).Elem() +func (SksNodepoolState) ElementType() reflect.Type { + return reflect.TypeOf((*sksNodepoolState)(nil)).Elem() } -type sksnodepoolArgs struct { +type sksNodepoolArgs struct { // A list of exoscale*anti*affinity_group (IDs) to be attached to the managed instances. AntiAffinityGroupIds []string `pulumi:"antiAffinityGroupIds"` // ❗ The parent exoscale*sks*cluster ID. @@ -224,14 +264,14 @@ type sksnodepoolArgs struct { Size int `pulumi:"size"` // Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time). StorageLvm *bool `pulumi:"storageLvm"` - // A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + // A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }'). Taints map[string]string `pulumi:"taints"` // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. Zone string `pulumi:"zone"` } -// The set of arguments for constructing a SKSNodepool resource. -type SKSNodepoolArgs struct { +// The set of arguments for constructing a SksNodepool resource. +type SksNodepoolArgs struct { // A list of exoscale*anti*affinity_group (IDs) to be attached to the managed instances. AntiAffinityGroupIds pulumi.StringArrayInput // ❗ The parent exoscale*sks*cluster ID. @@ -257,243 +297,243 @@ type SKSNodepoolArgs struct { Size pulumi.IntInput // Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time). StorageLvm pulumi.BoolPtrInput - // A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + // A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }'). Taints pulumi.StringMapInput // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. Zone pulumi.StringInput } -func (SKSNodepoolArgs) ElementType() reflect.Type { - return reflect.TypeOf((*sksnodepoolArgs)(nil)).Elem() +func (SksNodepoolArgs) ElementType() reflect.Type { + return reflect.TypeOf((*sksNodepoolArgs)(nil)).Elem() } -type SKSNodepoolInput interface { +type SksNodepoolInput interface { pulumi.Input - ToSKSNodepoolOutput() SKSNodepoolOutput - ToSKSNodepoolOutputWithContext(ctx context.Context) SKSNodepoolOutput + ToSksNodepoolOutput() SksNodepoolOutput + ToSksNodepoolOutputWithContext(ctx context.Context) SksNodepoolOutput } -func (*SKSNodepool) ElementType() reflect.Type { - return reflect.TypeOf((**SKSNodepool)(nil)).Elem() +func (*SksNodepool) ElementType() reflect.Type { + return reflect.TypeOf((**SksNodepool)(nil)).Elem() } -func (i *SKSNodepool) ToSKSNodepoolOutput() SKSNodepoolOutput { - return i.ToSKSNodepoolOutputWithContext(context.Background()) +func (i *SksNodepool) ToSksNodepoolOutput() SksNodepoolOutput { + return i.ToSksNodepoolOutputWithContext(context.Background()) } -func (i *SKSNodepool) ToSKSNodepoolOutputWithContext(ctx context.Context) SKSNodepoolOutput { - return pulumi.ToOutputWithContext(ctx, i).(SKSNodepoolOutput) +func (i *SksNodepool) ToSksNodepoolOutputWithContext(ctx context.Context) SksNodepoolOutput { + return pulumi.ToOutputWithContext(ctx, i).(SksNodepoolOutput) } -// SKSNodepoolArrayInput is an input type that accepts SKSNodepoolArray and SKSNodepoolArrayOutput values. -// You can construct a concrete instance of `SKSNodepoolArrayInput` via: +// SksNodepoolArrayInput is an input type that accepts SksNodepoolArray and SksNodepoolArrayOutput values. +// You can construct a concrete instance of `SksNodepoolArrayInput` via: // -// SKSNodepoolArray{ SKSNodepoolArgs{...} } -type SKSNodepoolArrayInput interface { +// SksNodepoolArray{ SksNodepoolArgs{...} } +type SksNodepoolArrayInput interface { pulumi.Input - ToSKSNodepoolArrayOutput() SKSNodepoolArrayOutput - ToSKSNodepoolArrayOutputWithContext(context.Context) SKSNodepoolArrayOutput + ToSksNodepoolArrayOutput() SksNodepoolArrayOutput + ToSksNodepoolArrayOutputWithContext(context.Context) SksNodepoolArrayOutput } -type SKSNodepoolArray []SKSNodepoolInput +type SksNodepoolArray []SksNodepoolInput -func (SKSNodepoolArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]*SKSNodepool)(nil)).Elem() +func (SksNodepoolArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*SksNodepool)(nil)).Elem() } -func (i SKSNodepoolArray) ToSKSNodepoolArrayOutput() SKSNodepoolArrayOutput { - return i.ToSKSNodepoolArrayOutputWithContext(context.Background()) +func (i SksNodepoolArray) ToSksNodepoolArrayOutput() SksNodepoolArrayOutput { + return i.ToSksNodepoolArrayOutputWithContext(context.Background()) } -func (i SKSNodepoolArray) ToSKSNodepoolArrayOutputWithContext(ctx context.Context) SKSNodepoolArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(SKSNodepoolArrayOutput) +func (i SksNodepoolArray) ToSksNodepoolArrayOutputWithContext(ctx context.Context) SksNodepoolArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(SksNodepoolArrayOutput) } -// SKSNodepoolMapInput is an input type that accepts SKSNodepoolMap and SKSNodepoolMapOutput values. -// You can construct a concrete instance of `SKSNodepoolMapInput` via: +// SksNodepoolMapInput is an input type that accepts SksNodepoolMap and SksNodepoolMapOutput values. +// You can construct a concrete instance of `SksNodepoolMapInput` via: // -// SKSNodepoolMap{ "key": SKSNodepoolArgs{...} } -type SKSNodepoolMapInput interface { +// SksNodepoolMap{ "key": SksNodepoolArgs{...} } +type SksNodepoolMapInput interface { pulumi.Input - ToSKSNodepoolMapOutput() SKSNodepoolMapOutput - ToSKSNodepoolMapOutputWithContext(context.Context) SKSNodepoolMapOutput + ToSksNodepoolMapOutput() SksNodepoolMapOutput + ToSksNodepoolMapOutputWithContext(context.Context) SksNodepoolMapOutput } -type SKSNodepoolMap map[string]SKSNodepoolInput +type SksNodepoolMap map[string]SksNodepoolInput -func (SKSNodepoolMap) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*SKSNodepool)(nil)).Elem() +func (SksNodepoolMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*SksNodepool)(nil)).Elem() } -func (i SKSNodepoolMap) ToSKSNodepoolMapOutput() SKSNodepoolMapOutput { - return i.ToSKSNodepoolMapOutputWithContext(context.Background()) +func (i SksNodepoolMap) ToSksNodepoolMapOutput() SksNodepoolMapOutput { + return i.ToSksNodepoolMapOutputWithContext(context.Background()) } -func (i SKSNodepoolMap) ToSKSNodepoolMapOutputWithContext(ctx context.Context) SKSNodepoolMapOutput { - return pulumi.ToOutputWithContext(ctx, i).(SKSNodepoolMapOutput) +func (i SksNodepoolMap) ToSksNodepoolMapOutputWithContext(ctx context.Context) SksNodepoolMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(SksNodepoolMapOutput) } -type SKSNodepoolOutput struct{ *pulumi.OutputState } +type SksNodepoolOutput struct{ *pulumi.OutputState } -func (SKSNodepoolOutput) ElementType() reflect.Type { - return reflect.TypeOf((**SKSNodepool)(nil)).Elem() +func (SksNodepoolOutput) ElementType() reflect.Type { + return reflect.TypeOf((**SksNodepool)(nil)).Elem() } -func (o SKSNodepoolOutput) ToSKSNodepoolOutput() SKSNodepoolOutput { +func (o SksNodepoolOutput) ToSksNodepoolOutput() SksNodepoolOutput { return o } -func (o SKSNodepoolOutput) ToSKSNodepoolOutputWithContext(ctx context.Context) SKSNodepoolOutput { +func (o SksNodepoolOutput) ToSksNodepoolOutputWithContext(ctx context.Context) SksNodepoolOutput { return o } // A list of exoscale*anti*affinity_group (IDs) to be attached to the managed instances. -func (o SKSNodepoolOutput) AntiAffinityGroupIds() pulumi.StringArrayOutput { - return o.ApplyT(func(v *SKSNodepool) pulumi.StringArrayOutput { return v.AntiAffinityGroupIds }).(pulumi.StringArrayOutput) +func (o SksNodepoolOutput) AntiAffinityGroupIds() pulumi.StringArrayOutput { + return o.ApplyT(func(v *SksNodepool) pulumi.StringArrayOutput { return v.AntiAffinityGroupIds }).(pulumi.StringArrayOutput) } // ❗ The parent exoscale*sks*cluster ID. -func (o SKSNodepoolOutput) ClusterId() pulumi.StringOutput { - return o.ApplyT(func(v *SKSNodepool) pulumi.StringOutput { return v.ClusterId }).(pulumi.StringOutput) +func (o SksNodepoolOutput) ClusterId() pulumi.StringOutput { + return o.ApplyT(func(v *SksNodepool) pulumi.StringOutput { return v.ClusterId }).(pulumi.StringOutput) } // The pool creation date. -func (o SKSNodepoolOutput) CreatedAt() pulumi.StringOutput { - return o.ApplyT(func(v *SKSNodepool) pulumi.StringOutput { return v.CreatedAt }).(pulumi.StringOutput) +func (o SksNodepoolOutput) CreatedAt() pulumi.StringOutput { + return o.ApplyT(func(v *SksNodepool) pulumi.StringOutput { return v.CreatedAt }).(pulumi.StringOutput) } // A deploy target ID. -func (o SKSNodepoolOutput) DeployTargetId() pulumi.StringPtrOutput { - return o.ApplyT(func(v *SKSNodepool) pulumi.StringPtrOutput { return v.DeployTargetId }).(pulumi.StringPtrOutput) +func (o SksNodepoolOutput) DeployTargetId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *SksNodepool) pulumi.StringPtrOutput { return v.DeployTargetId }).(pulumi.StringPtrOutput) } // A free-form text describing the pool. -func (o SKSNodepoolOutput) Description() pulumi.StringPtrOutput { - return o.ApplyT(func(v *SKSNodepool) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) +func (o SksNodepoolOutput) Description() pulumi.StringPtrOutput { + return o.ApplyT(func(v *SksNodepool) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } // The managed instances disk size (GiB; default: `50`). -func (o SKSNodepoolOutput) DiskSize() pulumi.IntPtrOutput { - return o.ApplyT(func(v *SKSNodepool) pulumi.IntPtrOutput { return v.DiskSize }).(pulumi.IntPtrOutput) +func (o SksNodepoolOutput) DiskSize() pulumi.IntPtrOutput { + return o.ApplyT(func(v *SksNodepool) pulumi.IntPtrOutput { return v.DiskSize }).(pulumi.IntPtrOutput) } // The underlying exoscale*instance*pool ID. -func (o SKSNodepoolOutput) InstancePoolId() pulumi.StringOutput { - return o.ApplyT(func(v *SKSNodepool) pulumi.StringOutput { return v.InstancePoolId }).(pulumi.StringOutput) +func (o SksNodepoolOutput) InstancePoolId() pulumi.StringOutput { + return o.ApplyT(func(v *SksNodepool) pulumi.StringOutput { return v.InstancePoolId }).(pulumi.StringOutput) } // The string used to prefix the managed instances name (default `pool`). -func (o SKSNodepoolOutput) InstancePrefix() pulumi.StringPtrOutput { - return o.ApplyT(func(v *SKSNodepool) pulumi.StringPtrOutput { return v.InstancePrefix }).(pulumi.StringPtrOutput) +func (o SksNodepoolOutput) InstancePrefix() pulumi.StringPtrOutput { + return o.ApplyT(func(v *SksNodepool) pulumi.StringPtrOutput { return v.InstancePrefix }).(pulumi.StringPtrOutput) } // The managed compute instances type (`.`, e.g. `standard.medium`; use the [Exoscale CLI](https://github.com/exoscale/cli/) - `exo compute instance-type list` - for the list of available types). -func (o SKSNodepoolOutput) InstanceType() pulumi.StringOutput { - return o.ApplyT(func(v *SKSNodepool) pulumi.StringOutput { return v.InstanceType }).(pulumi.StringOutput) +func (o SksNodepoolOutput) InstanceType() pulumi.StringOutput { + return o.ApplyT(func(v *SksNodepool) pulumi.StringOutput { return v.InstanceType }).(pulumi.StringOutput) } // A map of key/value labels. -func (o SKSNodepoolOutput) Labels() pulumi.StringMapOutput { - return o.ApplyT(func(v *SKSNodepool) pulumi.StringMapOutput { return v.Labels }).(pulumi.StringMapOutput) +func (o SksNodepoolOutput) Labels() pulumi.StringMapOutput { + return o.ApplyT(func(v *SksNodepool) pulumi.StringMapOutput { return v.Labels }).(pulumi.StringMapOutput) } // The SKS node pool name. -func (o SKSNodepoolOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v *SKSNodepool) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +func (o SksNodepoolOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *SksNodepool) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } // A list of exoscale*private*network (IDs) to be attached to the managed instances. -func (o SKSNodepoolOutput) PrivateNetworkIds() pulumi.StringArrayOutput { - return o.ApplyT(func(v *SKSNodepool) pulumi.StringArrayOutput { return v.PrivateNetworkIds }).(pulumi.StringArrayOutput) +func (o SksNodepoolOutput) PrivateNetworkIds() pulumi.StringArrayOutput { + return o.ApplyT(func(v *SksNodepool) pulumi.StringArrayOutput { return v.PrivateNetworkIds }).(pulumi.StringArrayOutput) } // A list of exoscale*security*group (IDs) to be attached to the managed instances. -func (o SKSNodepoolOutput) SecurityGroupIds() pulumi.StringArrayOutput { - return o.ApplyT(func(v *SKSNodepool) pulumi.StringArrayOutput { return v.SecurityGroupIds }).(pulumi.StringArrayOutput) +func (o SksNodepoolOutput) SecurityGroupIds() pulumi.StringArrayOutput { + return o.ApplyT(func(v *SksNodepool) pulumi.StringArrayOutput { return v.SecurityGroupIds }).(pulumi.StringArrayOutput) } -func (o SKSNodepoolOutput) Size() pulumi.IntOutput { - return o.ApplyT(func(v *SKSNodepool) pulumi.IntOutput { return v.Size }).(pulumi.IntOutput) +func (o SksNodepoolOutput) Size() pulumi.IntOutput { + return o.ApplyT(func(v *SksNodepool) pulumi.IntOutput { return v.Size }).(pulumi.IntOutput) } // The current pool state. -func (o SKSNodepoolOutput) State() pulumi.StringOutput { - return o.ApplyT(func(v *SKSNodepool) pulumi.StringOutput { return v.State }).(pulumi.StringOutput) +func (o SksNodepoolOutput) State() pulumi.StringOutput { + return o.ApplyT(func(v *SksNodepool) pulumi.StringOutput { return v.State }).(pulumi.StringOutput) } // Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time). -func (o SKSNodepoolOutput) StorageLvm() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *SKSNodepool) pulumi.BoolPtrOutput { return v.StorageLvm }).(pulumi.BoolPtrOutput) +func (o SksNodepoolOutput) StorageLvm() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *SksNodepool) pulumi.BoolPtrOutput { return v.StorageLvm }).(pulumi.BoolPtrOutput) } -// A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). -func (o SKSNodepoolOutput) Taints() pulumi.StringMapOutput { - return o.ApplyT(func(v *SKSNodepool) pulumi.StringMapOutput { return v.Taints }).(pulumi.StringMapOutput) +// A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }'). +func (o SksNodepoolOutput) Taints() pulumi.StringMapOutput { + return o.ApplyT(func(v *SksNodepool) pulumi.StringMapOutput { return v.Taints }).(pulumi.StringMapOutput) } // The managed instances template ID. -func (o SKSNodepoolOutput) TemplateId() pulumi.StringOutput { - return o.ApplyT(func(v *SKSNodepool) pulumi.StringOutput { return v.TemplateId }).(pulumi.StringOutput) +func (o SksNodepoolOutput) TemplateId() pulumi.StringOutput { + return o.ApplyT(func(v *SksNodepool) pulumi.StringOutput { return v.TemplateId }).(pulumi.StringOutput) } // The managed instances version. -func (o SKSNodepoolOutput) Version() pulumi.StringOutput { - return o.ApplyT(func(v *SKSNodepool) pulumi.StringOutput { return v.Version }).(pulumi.StringOutput) +func (o SksNodepoolOutput) Version() pulumi.StringOutput { + return o.ApplyT(func(v *SksNodepool) pulumi.StringOutput { return v.Version }).(pulumi.StringOutput) } // ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. -func (o SKSNodepoolOutput) Zone() pulumi.StringOutput { - return o.ApplyT(func(v *SKSNodepool) pulumi.StringOutput { return v.Zone }).(pulumi.StringOutput) +func (o SksNodepoolOutput) Zone() pulumi.StringOutput { + return o.ApplyT(func(v *SksNodepool) pulumi.StringOutput { return v.Zone }).(pulumi.StringOutput) } -type SKSNodepoolArrayOutput struct{ *pulumi.OutputState } +type SksNodepoolArrayOutput struct{ *pulumi.OutputState } -func (SKSNodepoolArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]*SKSNodepool)(nil)).Elem() +func (SksNodepoolArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*SksNodepool)(nil)).Elem() } -func (o SKSNodepoolArrayOutput) ToSKSNodepoolArrayOutput() SKSNodepoolArrayOutput { +func (o SksNodepoolArrayOutput) ToSksNodepoolArrayOutput() SksNodepoolArrayOutput { return o } -func (o SKSNodepoolArrayOutput) ToSKSNodepoolArrayOutputWithContext(ctx context.Context) SKSNodepoolArrayOutput { +func (o SksNodepoolArrayOutput) ToSksNodepoolArrayOutputWithContext(ctx context.Context) SksNodepoolArrayOutput { return o } -func (o SKSNodepoolArrayOutput) Index(i pulumi.IntInput) SKSNodepoolOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SKSNodepool { - return vs[0].([]*SKSNodepool)[vs[1].(int)] - }).(SKSNodepoolOutput) +func (o SksNodepoolArrayOutput) Index(i pulumi.IntInput) SksNodepoolOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SksNodepool { + return vs[0].([]*SksNodepool)[vs[1].(int)] + }).(SksNodepoolOutput) } -type SKSNodepoolMapOutput struct{ *pulumi.OutputState } +type SksNodepoolMapOutput struct{ *pulumi.OutputState } -func (SKSNodepoolMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*SKSNodepool)(nil)).Elem() +func (SksNodepoolMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*SksNodepool)(nil)).Elem() } -func (o SKSNodepoolMapOutput) ToSKSNodepoolMapOutput() SKSNodepoolMapOutput { +func (o SksNodepoolMapOutput) ToSksNodepoolMapOutput() SksNodepoolMapOutput { return o } -func (o SKSNodepoolMapOutput) ToSKSNodepoolMapOutputWithContext(ctx context.Context) SKSNodepoolMapOutput { +func (o SksNodepoolMapOutput) ToSksNodepoolMapOutputWithContext(ctx context.Context) SksNodepoolMapOutput { return o } -func (o SKSNodepoolMapOutput) MapIndex(k pulumi.StringInput) SKSNodepoolOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SKSNodepool { - return vs[0].(map[string]*SKSNodepool)[vs[1].(string)] - }).(SKSNodepoolOutput) +func (o SksNodepoolMapOutput) MapIndex(k pulumi.StringInput) SksNodepoolOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SksNodepool { + return vs[0].(map[string]*SksNodepool)[vs[1].(string)] + }).(SksNodepoolOutput) } func init() { - pulumi.RegisterInputType(reflect.TypeOf((*SKSNodepoolInput)(nil)).Elem(), &SKSNodepool{}) - pulumi.RegisterInputType(reflect.TypeOf((*SKSNodepoolArrayInput)(nil)).Elem(), SKSNodepoolArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*SKSNodepoolMapInput)(nil)).Elem(), SKSNodepoolMap{}) - pulumi.RegisterOutputType(SKSNodepoolOutput{}) - pulumi.RegisterOutputType(SKSNodepoolArrayOutput{}) - pulumi.RegisterOutputType(SKSNodepoolMapOutput{}) + pulumi.RegisterInputType(reflect.TypeOf((*SksNodepoolInput)(nil)).Elem(), &SksNodepool{}) + pulumi.RegisterInputType(reflect.TypeOf((*SksNodepoolArrayInput)(nil)).Elem(), SksNodepoolArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*SksNodepoolMapInput)(nil)).Elem(), SksNodepoolMap{}) + pulumi.RegisterOutputType(SksNodepoolOutput{}) + pulumi.RegisterOutputType(SksNodepoolArrayOutput{}) + pulumi.RegisterOutputType(SksNodepoolMapOutput{}) } diff --git a/sdk/go/exoscale/sshKey.go b/sdk/go/exoscale/sshKey.go new file mode 100644 index 00000000..964bd417 --- /dev/null +++ b/sdk/go/exoscale/sshKey.go @@ -0,0 +1,257 @@ +// 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 exoscale + +import ( + "context" + "reflect" + + "errors" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" + "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" +) + +// ## Import +// +// An existing SSH key may be imported as a resource by `` +// +// ```sh +// +// $ pulumi import exoscale:index/sshKey:SshKey \ +// +// ``` +// +// exoscale_ssh_key.my_ssh_key \ +// +// my-ssh-key +type SshKey struct { + pulumi.CustomResourceState + + // The SSH key unique identifier. + Fingerprint pulumi.StringOutput `pulumi:"fingerprint"` + // ❗ The SSH key name. + Name pulumi.StringOutput `pulumi:"name"` + // ❗ The SSH *public* key that will be authorized in compute instances. + PublicKey pulumi.StringOutput `pulumi:"publicKey"` +} + +// NewSshKey registers a new resource with the given unique name, arguments, and options. +func NewSshKey(ctx *pulumi.Context, + name string, args *SshKeyArgs, opts ...pulumi.ResourceOption) (*SshKey, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.PublicKey == nil { + return nil, errors.New("invalid value for required argument 'PublicKey'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource SshKey + err := ctx.RegisterResource("exoscale:index/sshKey:SshKey", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetSshKey gets an existing SshKey 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 GetSshKey(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *SshKeyState, opts ...pulumi.ResourceOption) (*SshKey, error) { + var resource SshKey + err := ctx.ReadResource("exoscale:index/sshKey:SshKey", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering SshKey resources. +type sshKeyState struct { + // The SSH key unique identifier. + Fingerprint *string `pulumi:"fingerprint"` + // ❗ The SSH key name. + Name *string `pulumi:"name"` + // ❗ The SSH *public* key that will be authorized in compute instances. + PublicKey *string `pulumi:"publicKey"` +} + +type SshKeyState struct { + // The SSH key unique identifier. + Fingerprint pulumi.StringPtrInput + // ❗ The SSH key name. + Name pulumi.StringPtrInput + // ❗ The SSH *public* key that will be authorized in compute instances. + PublicKey pulumi.StringPtrInput +} + +func (SshKeyState) ElementType() reflect.Type { + return reflect.TypeOf((*sshKeyState)(nil)).Elem() +} + +type sshKeyArgs struct { + // ❗ The SSH key name. + Name *string `pulumi:"name"` + // ❗ The SSH *public* key that will be authorized in compute instances. + PublicKey string `pulumi:"publicKey"` +} + +// The set of arguments for constructing a SshKey resource. +type SshKeyArgs struct { + // ❗ The SSH key name. + Name pulumi.StringPtrInput + // ❗ The SSH *public* key that will be authorized in compute instances. + PublicKey pulumi.StringInput +} + +func (SshKeyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*sshKeyArgs)(nil)).Elem() +} + +type SshKeyInput interface { + pulumi.Input + + ToSshKeyOutput() SshKeyOutput + ToSshKeyOutputWithContext(ctx context.Context) SshKeyOutput +} + +func (*SshKey) ElementType() reflect.Type { + return reflect.TypeOf((**SshKey)(nil)).Elem() +} + +func (i *SshKey) ToSshKeyOutput() SshKeyOutput { + return i.ToSshKeyOutputWithContext(context.Background()) +} + +func (i *SshKey) ToSshKeyOutputWithContext(ctx context.Context) SshKeyOutput { + return pulumi.ToOutputWithContext(ctx, i).(SshKeyOutput) +} + +// SshKeyArrayInput is an input type that accepts SshKeyArray and SshKeyArrayOutput values. +// You can construct a concrete instance of `SshKeyArrayInput` via: +// +// SshKeyArray{ SshKeyArgs{...} } +type SshKeyArrayInput interface { + pulumi.Input + + ToSshKeyArrayOutput() SshKeyArrayOutput + ToSshKeyArrayOutputWithContext(context.Context) SshKeyArrayOutput +} + +type SshKeyArray []SshKeyInput + +func (SshKeyArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*SshKey)(nil)).Elem() +} + +func (i SshKeyArray) ToSshKeyArrayOutput() SshKeyArrayOutput { + return i.ToSshKeyArrayOutputWithContext(context.Background()) +} + +func (i SshKeyArray) ToSshKeyArrayOutputWithContext(ctx context.Context) SshKeyArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(SshKeyArrayOutput) +} + +// SshKeyMapInput is an input type that accepts SshKeyMap and SshKeyMapOutput values. +// You can construct a concrete instance of `SshKeyMapInput` via: +// +// SshKeyMap{ "key": SshKeyArgs{...} } +type SshKeyMapInput interface { + pulumi.Input + + ToSshKeyMapOutput() SshKeyMapOutput + ToSshKeyMapOutputWithContext(context.Context) SshKeyMapOutput +} + +type SshKeyMap map[string]SshKeyInput + +func (SshKeyMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*SshKey)(nil)).Elem() +} + +func (i SshKeyMap) ToSshKeyMapOutput() SshKeyMapOutput { + return i.ToSshKeyMapOutputWithContext(context.Background()) +} + +func (i SshKeyMap) ToSshKeyMapOutputWithContext(ctx context.Context) SshKeyMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(SshKeyMapOutput) +} + +type SshKeyOutput struct{ *pulumi.OutputState } + +func (SshKeyOutput) ElementType() reflect.Type { + return reflect.TypeOf((**SshKey)(nil)).Elem() +} + +func (o SshKeyOutput) ToSshKeyOutput() SshKeyOutput { + return o +} + +func (o SshKeyOutput) ToSshKeyOutputWithContext(ctx context.Context) SshKeyOutput { + return o +} + +// The SSH key unique identifier. +func (o SshKeyOutput) Fingerprint() pulumi.StringOutput { + return o.ApplyT(func(v *SshKey) pulumi.StringOutput { return v.Fingerprint }).(pulumi.StringOutput) +} + +// ❗ The SSH key name. +func (o SshKeyOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *SshKey) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// ❗ The SSH *public* key that will be authorized in compute instances. +func (o SshKeyOutput) PublicKey() pulumi.StringOutput { + return o.ApplyT(func(v *SshKey) pulumi.StringOutput { return v.PublicKey }).(pulumi.StringOutput) +} + +type SshKeyArrayOutput struct{ *pulumi.OutputState } + +func (SshKeyArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*SshKey)(nil)).Elem() +} + +func (o SshKeyArrayOutput) ToSshKeyArrayOutput() SshKeyArrayOutput { + return o +} + +func (o SshKeyArrayOutput) ToSshKeyArrayOutputWithContext(ctx context.Context) SshKeyArrayOutput { + return o +} + +func (o SshKeyArrayOutput) Index(i pulumi.IntInput) SshKeyOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SshKey { + return vs[0].([]*SshKey)[vs[1].(int)] + }).(SshKeyOutput) +} + +type SshKeyMapOutput struct{ *pulumi.OutputState } + +func (SshKeyMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*SshKey)(nil)).Elem() +} + +func (o SshKeyMapOutput) ToSshKeyMapOutput() SshKeyMapOutput { + return o +} + +func (o SshKeyMapOutput) ToSshKeyMapOutputWithContext(ctx context.Context) SshKeyMapOutput { + return o +} + +func (o SshKeyMapOutput) MapIndex(k pulumi.StringInput) SshKeyOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SshKey { + return vs[0].(map[string]*SshKey)[vs[1].(string)] + }).(SshKeyOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*SshKeyInput)(nil)).Elem(), &SshKey{}) + pulumi.RegisterInputType(reflect.TypeOf((*SshKeyArrayInput)(nil)).Elem(), SshKeyArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*SshKeyMapInput)(nil)).Elem(), SshKeyMap{}) + pulumi.RegisterOutputType(SshKeyOutput{}) + pulumi.RegisterOutputType(SshKeyArrayOutput{}) + pulumi.RegisterOutputType(SshKeyMapOutput{}) +} diff --git a/sdk/go/exoscale/sshkey.go b/sdk/go/exoscale/sshkey.go deleted file mode 100644 index 688018f7..00000000 --- a/sdk/go/exoscale/sshkey.go +++ /dev/null @@ -1,257 +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 exoscale - -import ( - "context" - "reflect" - - "errors" - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" - "github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal" -) - -// ## Import -// -// An existing SSH key may be imported as a resource by `` -// -// ```sh -// -// $ pulumi import exoscale:index/sSHKey:SSHKey \ -// -// ``` -// -// exoscale_ssh_key.my_ssh_key \ -// -// my-ssh-key -type SSHKey struct { - pulumi.CustomResourceState - - // The SSH key unique identifier. - Fingerprint pulumi.StringOutput `pulumi:"fingerprint"` - // ❗ The SSH key name. - Name pulumi.StringOutput `pulumi:"name"` - // ❗ The SSH *public* key that will be authorized in compute instances. - PublicKey pulumi.StringOutput `pulumi:"publicKey"` -} - -// NewSSHKey registers a new resource with the given unique name, arguments, and options. -func NewSSHKey(ctx *pulumi.Context, - name string, args *SSHKeyArgs, opts ...pulumi.ResourceOption) (*SSHKey, error) { - if args == nil { - return nil, errors.New("missing one or more required arguments") - } - - if args.PublicKey == nil { - return nil, errors.New("invalid value for required argument 'PublicKey'") - } - opts = internal.PkgResourceDefaultOpts(opts) - var resource SSHKey - err := ctx.RegisterResource("exoscale:index/sSHKey:SSHKey", name, args, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// GetSSHKey gets an existing SSHKey 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 GetSSHKey(ctx *pulumi.Context, - name string, id pulumi.IDInput, state *SSHKeyState, opts ...pulumi.ResourceOption) (*SSHKey, error) { - var resource SSHKey - err := ctx.ReadResource("exoscale:index/sSHKey:SSHKey", name, id, state, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// Input properties used for looking up and filtering SSHKey resources. -type sshkeyState struct { - // The SSH key unique identifier. - Fingerprint *string `pulumi:"fingerprint"` - // ❗ The SSH key name. - Name *string `pulumi:"name"` - // ❗ The SSH *public* key that will be authorized in compute instances. - PublicKey *string `pulumi:"publicKey"` -} - -type SSHKeyState struct { - // The SSH key unique identifier. - Fingerprint pulumi.StringPtrInput - // ❗ The SSH key name. - Name pulumi.StringPtrInput - // ❗ The SSH *public* key that will be authorized in compute instances. - PublicKey pulumi.StringPtrInput -} - -func (SSHKeyState) ElementType() reflect.Type { - return reflect.TypeOf((*sshkeyState)(nil)).Elem() -} - -type sshkeyArgs struct { - // ❗ The SSH key name. - Name *string `pulumi:"name"` - // ❗ The SSH *public* key that will be authorized in compute instances. - PublicKey string `pulumi:"publicKey"` -} - -// The set of arguments for constructing a SSHKey resource. -type SSHKeyArgs struct { - // ❗ The SSH key name. - Name pulumi.StringPtrInput - // ❗ The SSH *public* key that will be authorized in compute instances. - PublicKey pulumi.StringInput -} - -func (SSHKeyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*sshkeyArgs)(nil)).Elem() -} - -type SSHKeyInput interface { - pulumi.Input - - ToSSHKeyOutput() SSHKeyOutput - ToSSHKeyOutputWithContext(ctx context.Context) SSHKeyOutput -} - -func (*SSHKey) ElementType() reflect.Type { - return reflect.TypeOf((**SSHKey)(nil)).Elem() -} - -func (i *SSHKey) ToSSHKeyOutput() SSHKeyOutput { - return i.ToSSHKeyOutputWithContext(context.Background()) -} - -func (i *SSHKey) ToSSHKeyOutputWithContext(ctx context.Context) SSHKeyOutput { - return pulumi.ToOutputWithContext(ctx, i).(SSHKeyOutput) -} - -// SSHKeyArrayInput is an input type that accepts SSHKeyArray and SSHKeyArrayOutput values. -// You can construct a concrete instance of `SSHKeyArrayInput` via: -// -// SSHKeyArray{ SSHKeyArgs{...} } -type SSHKeyArrayInput interface { - pulumi.Input - - ToSSHKeyArrayOutput() SSHKeyArrayOutput - ToSSHKeyArrayOutputWithContext(context.Context) SSHKeyArrayOutput -} - -type SSHKeyArray []SSHKeyInput - -func (SSHKeyArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]*SSHKey)(nil)).Elem() -} - -func (i SSHKeyArray) ToSSHKeyArrayOutput() SSHKeyArrayOutput { - return i.ToSSHKeyArrayOutputWithContext(context.Background()) -} - -func (i SSHKeyArray) ToSSHKeyArrayOutputWithContext(ctx context.Context) SSHKeyArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(SSHKeyArrayOutput) -} - -// SSHKeyMapInput is an input type that accepts SSHKeyMap and SSHKeyMapOutput values. -// You can construct a concrete instance of `SSHKeyMapInput` via: -// -// SSHKeyMap{ "key": SSHKeyArgs{...} } -type SSHKeyMapInput interface { - pulumi.Input - - ToSSHKeyMapOutput() SSHKeyMapOutput - ToSSHKeyMapOutputWithContext(context.Context) SSHKeyMapOutput -} - -type SSHKeyMap map[string]SSHKeyInput - -func (SSHKeyMap) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*SSHKey)(nil)).Elem() -} - -func (i SSHKeyMap) ToSSHKeyMapOutput() SSHKeyMapOutput { - return i.ToSSHKeyMapOutputWithContext(context.Background()) -} - -func (i SSHKeyMap) ToSSHKeyMapOutputWithContext(ctx context.Context) SSHKeyMapOutput { - return pulumi.ToOutputWithContext(ctx, i).(SSHKeyMapOutput) -} - -type SSHKeyOutput struct{ *pulumi.OutputState } - -func (SSHKeyOutput) ElementType() reflect.Type { - return reflect.TypeOf((**SSHKey)(nil)).Elem() -} - -func (o SSHKeyOutput) ToSSHKeyOutput() SSHKeyOutput { - return o -} - -func (o SSHKeyOutput) ToSSHKeyOutputWithContext(ctx context.Context) SSHKeyOutput { - return o -} - -// The SSH key unique identifier. -func (o SSHKeyOutput) Fingerprint() pulumi.StringOutput { - return o.ApplyT(func(v *SSHKey) pulumi.StringOutput { return v.Fingerprint }).(pulumi.StringOutput) -} - -// ❗ The SSH key name. -func (o SSHKeyOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v *SSHKey) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) -} - -// ❗ The SSH *public* key that will be authorized in compute instances. -func (o SSHKeyOutput) PublicKey() pulumi.StringOutput { - return o.ApplyT(func(v *SSHKey) pulumi.StringOutput { return v.PublicKey }).(pulumi.StringOutput) -} - -type SSHKeyArrayOutput struct{ *pulumi.OutputState } - -func (SSHKeyArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]*SSHKey)(nil)).Elem() -} - -func (o SSHKeyArrayOutput) ToSSHKeyArrayOutput() SSHKeyArrayOutput { - return o -} - -func (o SSHKeyArrayOutput) ToSSHKeyArrayOutputWithContext(ctx context.Context) SSHKeyArrayOutput { - return o -} - -func (o SSHKeyArrayOutput) Index(i pulumi.IntInput) SSHKeyOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SSHKey { - return vs[0].([]*SSHKey)[vs[1].(int)] - }).(SSHKeyOutput) -} - -type SSHKeyMapOutput struct{ *pulumi.OutputState } - -func (SSHKeyMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*SSHKey)(nil)).Elem() -} - -func (o SSHKeyMapOutput) ToSSHKeyMapOutput() SSHKeyMapOutput { - return o -} - -func (o SSHKeyMapOutput) ToSSHKeyMapOutputWithContext(ctx context.Context) SSHKeyMapOutput { - return o -} - -func (o SSHKeyMapOutput) MapIndex(k pulumi.StringInput) SSHKeyOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SSHKey { - return vs[0].(map[string]*SSHKey)[vs[1].(string)] - }).(SSHKeyOutput) -} - -func init() { - pulumi.RegisterInputType(reflect.TypeOf((*SSHKeyInput)(nil)).Elem(), &SSHKey{}) - pulumi.RegisterInputType(reflect.TypeOf((*SSHKeyArrayInput)(nil)).Elem(), SSHKeyArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*SSHKeyMapInput)(nil)).Elem(), SSHKeyMap{}) - pulumi.RegisterOutputType(SSHKeyOutput{}) - pulumi.RegisterOutputType(SSHKeyArrayOutput{}) - pulumi.RegisterOutputType(SSHKeyMapOutput{}) -} diff --git a/sdk/nodejs/antiAffinityGroup.ts b/sdk/nodejs/antiAffinityGroup.ts index ec2cc071..2296429d 100644 --- a/sdk/nodejs/antiAffinityGroup.ts +++ b/sdk/nodejs/antiAffinityGroup.ts @@ -5,6 +5,22 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; /** + * Manage Exoscale [Anti-Affinity Groups](https://community.exoscale.com/documentation/compute/anti-affinity-groups/). + * + * Corresponding data source: exoscale_anti_affinity_group. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumiverse/exoscale"; + * + * const myAntiAffinityGroup = new exoscale.AntiAffinityGroup("myAntiAffinityGroup", {description: "Prevent compute instances to run on the same host"}); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + * * ## Import * * An existing anti-affinity group may be imported by `` diff --git a/sdk/nodejs/computeInstance.ts b/sdk/nodejs/computeInstance.ts index 36f0d16d..bb7b6877 100644 --- a/sdk/nodejs/computeInstance.ts +++ b/sdk/nodejs/computeInstance.ts @@ -7,6 +7,34 @@ import * as outputs from "./types/output"; import * as utilities from "./utilities"; /** + * Manage Exoscale [Compute Instances](https://community.exoscale.com/documentation/compute/). + * + * Corresponding data sources: exoscale_compute_instance, exoscale_compute_instance_list. + * + * After the creation, you can retrieve the password of an instance with [Exoscale CLI](https://github.com/exoscale/cli): `exo compute instance reveal-password NAME`. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumi/exoscale"; + * import * as exoscale from "@pulumiverse/exoscale"; + * + * const myTemplate = exoscale.getTemplate({ + * zone: "ch-gva-2", + * name: "Linux Ubuntu 22.04 LTS 64-bit", + * }); + * const myInstance = new exoscale.ComputeInstance("myInstance", { + * zone: "ch-gva-2", + * templateId: myTemplate.then(myTemplate => myTemplate.id), + * type: "standard.medium", + * diskSize: 10, + * }); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + * * ## Import * * An existing compute instance may be imported by `@` @@ -60,7 +88,7 @@ export class ComputeInstance extends pulumi.CustomResource { */ public readonly deployTargetId!: pulumi.Output; /** - * The instance disk size (GiB; at least `10`). **WARNING**: updating this attribute stops/restarts the instance. + * The instance disk size (GiB; at least `10`). Can not be decreased after creation. **WARNING**: updating this attribute stops/restarts the instance. */ public readonly diskSize!: pulumi.Output; /** @@ -223,7 +251,7 @@ export interface ComputeInstanceState { */ deployTargetId?: pulumi.Input; /** - * The instance disk size (GiB; at least `10`). **WARNING**: updating this attribute stops/restarts the instance. + * The instance disk size (GiB; at least `10`). Can not be decreased after creation. **WARNING**: updating this attribute stops/restarts the instance. */ diskSize?: pulumi.Input; /** @@ -311,7 +339,7 @@ export interface ComputeInstanceArgs { */ deployTargetId?: pulumi.Input; /** - * The instance disk size (GiB; at least `10`). **WARNING**: updating this attribute stops/restarts the instance. + * The instance disk size (GiB; at least `10`). Can not be decreased after creation. **WARNING**: updating this attribute stops/restarts the instance. */ diskSize?: pulumi.Input; /** diff --git a/sdk/nodejs/database.ts b/sdk/nodejs/database.ts index 88cd0f04..fd97e784 100644 --- a/sdk/nodejs/database.ts +++ b/sdk/nodejs/database.ts @@ -7,6 +7,8 @@ import * as outputs from "./types/output"; import * as utilities from "./utilities"; /** + * Manage Exoscale [Database Services (DBaaS)](https://community.exoscale.com/documentation/dbaas/). + * * ## Import * * An existing database service may be imported by `@` diff --git a/sdk/nodejs/domain.ts b/sdk/nodejs/domain.ts index cea4987a..864bd0a7 100644 --- a/sdk/nodejs/domain.ts +++ b/sdk/nodejs/domain.ts @@ -5,6 +5,24 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; /** + * Manage Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domains. + * + * Corresponding data source: exoscale_domain. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumiverse/exoscale"; + * + * const myDomain = new exoscale.Domain("myDomain", {}); + * ``` + * + * Next step is to attach exoscale_domain_record(s) to the domain. + * + * Please refer to the examples + * directory for complete configuration examples. + * * ## Import * * An existing DNS domain may be imported by `ID` diff --git a/sdk/nodejs/domainRecord.ts b/sdk/nodejs/domainRecord.ts index 8dd0f12c..e0c874d6 100644 --- a/sdk/nodejs/domainRecord.ts +++ b/sdk/nodejs/domainRecord.ts @@ -5,6 +5,32 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; /** + * Manage Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domain Records. + * + * Corresponding data source: exoscale_domain_record. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumiverse/exoscale"; + * + * const myDomain = new exoscale.Domain("myDomain", {}); + * const myHost = new exoscale.DomainRecord("myHost", { + * domain: myDomain.id, + * recordType: "A", + * content: "1.2.3.4", + * }); + * const myHostAlias = new exoscale.DomainRecord("myHostAlias", { + * domain: myDomain.id, + * recordType: "CNAME", + * content: myHost.hostname, + * }); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + * * ## Import * * An existing DNS domain record may be imported by `` @@ -49,6 +75,10 @@ export class DomainRecord extends pulumi.CustomResource { * The record value. */ public readonly content!: pulumi.Output; + /** + * The normalized value of the record + */ + public /*out*/ readonly contentNormalized!: pulumi.Output; /** * ❗ The parent exoscale.Domain to attach the record to. */ @@ -88,6 +118,7 @@ export class DomainRecord extends pulumi.CustomResource { if (opts.id) { const state = argsOrState as DomainRecordState | undefined; resourceInputs["content"] = state ? state.content : undefined; + resourceInputs["contentNormalized"] = state ? state.contentNormalized : undefined; resourceInputs["domain"] = state ? state.domain : undefined; resourceInputs["hostname"] = state ? state.hostname : undefined; resourceInputs["name"] = state ? state.name : undefined; @@ -111,6 +142,7 @@ export class DomainRecord extends pulumi.CustomResource { resourceInputs["prio"] = args ? args.prio : undefined; resourceInputs["recordType"] = args ? args.recordType : undefined; resourceInputs["ttl"] = args ? args.ttl : undefined; + resourceInputs["contentNormalized"] = undefined /*out*/; resourceInputs["hostname"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); @@ -126,6 +158,10 @@ export interface DomainRecordState { * The record value. */ content?: pulumi.Input; + /** + * The normalized value of the record + */ + contentNormalized?: pulumi.Input; /** * ❗ The parent exoscale.Domain to attach the record to. */ diff --git a/sdk/nodejs/elasticIP.ts b/sdk/nodejs/elasticIp.ts similarity index 72% rename from sdk/nodejs/elasticIP.ts rename to sdk/nodejs/elasticIp.ts index aedb0300..eaccbd39 100644 --- a/sdk/nodejs/elasticIP.ts +++ b/sdk/nodejs/elasticIp.ts @@ -7,21 +7,62 @@ import * as outputs from "./types/output"; import * as utilities from "./utilities"; /** + * Manage Exoscale [Elastic IPs (EIP)](https://community.exoscale.com/documentation/compute/eip/). + * + * Corresponding data source: exoscale_elastic_ip. + * + * ## Example Usage + * + * *Unmanaged* EIPv4: + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumiverse/exoscale"; + * + * const myElasticIp = new exoscale.ElasticIp("myElasticIp", {zone: "ch-gva-2"}); + * ``` + * + * *Managed* EIPv6: + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumiverse/exoscale"; + * + * const myManagedElasticIp = new exoscale.ElasticIp("myManagedElasticIp", { + * addressFamily: "inet6", + * healthcheck: { + * interval: 5, + * mode: "https", + * port: 443, + * strikesFail: 3, + * strikesOk: 2, + * timeout: 3, + * tlsSni: "example.net", + * uri: "/health", + * }, + * reverseDns: "example.net", + * zone: "ch-gva-2", + * }); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + * * ## Import * * An existing Elastic IP (EIP) may be imported by `@` * * ```sh - * $ pulumi import exoscale:index/elasticIP:ElasticIP \ + * $ pulumi import exoscale:index/elasticIp:ElasticIp \ * ``` * * exoscale_elastic_ip.my_elastic_ip \ * * f81d4fae-7dec-11d0-a765-00a0c91e6bf6@ch-gva-2 */ -export class ElasticIP extends pulumi.CustomResource { +export class ElasticIp extends pulumi.CustomResource { /** - * Get an existing ElasticIP resource's state with the given name, ID, and optional extra + * Get an existing ElasticIp 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. @@ -29,22 +70,22 @@ export class ElasticIP extends pulumi.CustomResource { * @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?: ElasticIPState, opts?: pulumi.CustomResourceOptions): ElasticIP { - return new ElasticIP(name, state, { ...opts, id: id }); + public static get(name: string, id: pulumi.Input, state?: ElasticIpState, opts?: pulumi.CustomResourceOptions): ElasticIp { + return new ElasticIp(name, state, { ...opts, id: id }); } /** @internal */ - public static readonly __pulumiType = 'exoscale:index/elasticIP:ElasticIP'; + public static readonly __pulumiType = 'exoscale:index/elasticIp:ElasticIp'; /** - * Returns true if the given object is an instance of ElasticIP. This is designed to work even + * Returns true if the given object is an instance of ElasticIp. 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 ElasticIP { + public static isInstance(obj: any): obj is ElasticIp { if (obj === undefined || obj === null) { return false; } - return obj['__pulumiType'] === ElasticIP.__pulumiType; + return obj['__pulumiType'] === ElasticIp.__pulumiType; } /** @@ -62,7 +103,7 @@ export class ElasticIP extends pulumi.CustomResource { /** * Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. */ - public readonly healthcheck!: pulumi.Output; + public readonly healthcheck!: pulumi.Output; /** * The Elastic IP (EIP) IPv4 or IPv6 address. */ @@ -81,18 +122,18 @@ export class ElasticIP extends pulumi.CustomResource { public readonly zone!: pulumi.Output; /** - * Create a ElasticIP resource with the given unique name, arguments, and options. + * Create a ElasticIp 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. */ - constructor(name: string, args: ElasticIPArgs, opts?: pulumi.CustomResourceOptions) - constructor(name: string, argsOrState?: ElasticIPArgs | ElasticIPState, opts?: pulumi.CustomResourceOptions) { + constructor(name: string, args: ElasticIpArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: ElasticIpArgs | ElasticIpState, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; if (opts.id) { - const state = argsOrState as ElasticIPState | undefined; + const state = argsOrState as ElasticIpState | undefined; resourceInputs["addressFamily"] = state ? state.addressFamily : undefined; resourceInputs["cidr"] = state ? state.cidr : undefined; resourceInputs["description"] = state ? state.description : undefined; @@ -102,7 +143,7 @@ export class ElasticIP extends pulumi.CustomResource { resourceInputs["reverseDns"] = state ? state.reverseDns : undefined; resourceInputs["zone"] = state ? state.zone : undefined; } else { - const args = argsOrState as ElasticIPArgs | undefined; + const args = argsOrState as ElasticIpArgs | undefined; if ((!args || args.zone === undefined) && !opts.urn) { throw new Error("Missing required property 'zone'"); } @@ -116,14 +157,14 @@ export class ElasticIP extends pulumi.CustomResource { resourceInputs["ipAddress"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - super(ElasticIP.__pulumiType, name, resourceInputs, opts); + super(ElasticIp.__pulumiType, name, resourceInputs, opts); } } /** - * Input properties used for looking up and filtering ElasticIP resources. + * Input properties used for looking up and filtering ElasticIp resources. */ -export interface ElasticIPState { +export interface ElasticIpState { /** * ❗ The Elastic IP (EIP) address family (`inet4` or `inet6`; default: `inet4`). */ @@ -139,7 +180,7 @@ export interface ElasticIPState { /** * Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. */ - healthcheck?: pulumi.Input; + healthcheck?: pulumi.Input; /** * The Elastic IP (EIP) IPv4 or IPv6 address. */ @@ -159,9 +200,9 @@ export interface ElasticIPState { } /** - * The set of arguments for constructing a ElasticIP resource. + * The set of arguments for constructing a ElasticIp resource. */ -export interface ElasticIPArgs { +export interface ElasticIpArgs { /** * ❗ The Elastic IP (EIP) address family (`inet4` or `inet6`; default: `inet4`). */ @@ -173,7 +214,7 @@ export interface ElasticIPArgs { /** * Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. */ - healthcheck?: pulumi.Input; + healthcheck?: pulumi.Input; /** * A map of key/value labels. */ diff --git a/sdk/nodejs/getAntiAffinityGroup.ts b/sdk/nodejs/getAntiAffinityGroup.ts index b8deed9f..c98eb146 100644 --- a/sdk/nodejs/getAntiAffinityGroup.ts +++ b/sdk/nodejs/getAntiAffinityGroup.ts @@ -4,6 +4,26 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; +/** + * Fetch Exoscale [Anti-Affinity Groups](https://community.exoscale.com/documentation/compute/anti-affinity-groups/) data. + * + * Corresponding resource: exoscale_anti_affinity_group. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumi/exoscale"; + * + * const myAntiAffinityGroup = exoscale.getAntiAffinityGroup({ + * name: "my-anti-affinity-group", + * }); + * export const myAntiAffinityGroupId = myAntiAffinityGroup.then(myAntiAffinityGroup => myAntiAffinityGroup.id); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + */ export function getAntiAffinityGroup(args?: GetAntiAffinityGroupArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -45,6 +65,26 @@ export interface GetAntiAffinityGroupResult { */ readonly name?: string; } +/** + * Fetch Exoscale [Anti-Affinity Groups](https://community.exoscale.com/documentation/compute/anti-affinity-groups/) data. + * + * Corresponding resource: exoscale_anti_affinity_group. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumi/exoscale"; + * + * const myAntiAffinityGroup = exoscale.getAntiAffinityGroup({ + * name: "my-anti-affinity-group", + * }); + * export const myAntiAffinityGroupId = myAntiAffinityGroup.then(myAntiAffinityGroup => myAntiAffinityGroup.id); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + */ export function getAntiAffinityGroupOutput(args?: GetAntiAffinityGroupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getAntiAffinityGroup(a, opts)) } diff --git a/sdk/nodejs/getComputeInstance.ts b/sdk/nodejs/getComputeInstance.ts index 6d424492..bc8ef2d8 100644 --- a/sdk/nodejs/getComputeInstance.ts +++ b/sdk/nodejs/getComputeInstance.ts @@ -4,6 +4,27 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; +/** + * Fetch Exoscale [Compute Instances](https://community.exoscale.com/documentation/compute/) data. + * + * Corresponding resource: exoscale_compute_instance. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumi/exoscale"; + * + * const myInstance = exoscale.getComputeInstance({ + * zone: "ch-gva-2", + * name: "my-instance", + * }); + * export const myInstanceId = myInstance.then(myInstance => myInstance.id); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + */ export function getComputeInstance(args: GetComputeInstanceArgs, opts?: pulumi.InvokeOptions): Promise { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); @@ -125,6 +146,27 @@ export interface GetComputeInstanceResult { */ readonly zone: string; } +/** + * Fetch Exoscale [Compute Instances](https://community.exoscale.com/documentation/compute/) data. + * + * Corresponding resource: exoscale_compute_instance. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumi/exoscale"; + * + * const myInstance = exoscale.getComputeInstance({ + * zone: "ch-gva-2", + * name: "my-instance", + * }); + * export const myInstanceId = myInstance.then(myInstance => myInstance.id); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + */ export function getComputeInstanceOutput(args: GetComputeInstanceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getComputeInstance(a, opts)) } diff --git a/sdk/nodejs/getComputeInstanceList.ts b/sdk/nodejs/getComputeInstanceList.ts index 1aaf729b..28e4b9b4 100644 --- a/sdk/nodejs/getComputeInstanceList.ts +++ b/sdk/nodejs/getComputeInstanceList.ts @@ -6,6 +6,11 @@ import * as inputs from "./types/input"; import * as outputs from "./types/output"; import * as utilities from "./utilities"; +/** + * List Exoscale [Compute Instances](https://community.exoscale.com/documentation/compute/). + * + * Corresponding resource: exoscale_compute_instance. + */ export function getComputeInstanceList(args: GetComputeInstanceListArgs, opts?: pulumi.InvokeOptions): Promise { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); @@ -136,6 +141,11 @@ export interface GetComputeInstanceListResult { */ readonly zone: string; } +/** + * List Exoscale [Compute Instances](https://community.exoscale.com/documentation/compute/). + * + * Corresponding resource: exoscale_compute_instance. + */ export function getComputeInstanceListOutput(args: GetComputeInstanceListOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getComputeInstanceList(a, opts)) } diff --git a/sdk/nodejs/getDatabaseURI.ts b/sdk/nodejs/getDatabaseUri.ts similarity index 65% rename from sdk/nodejs/getDatabaseURI.ts rename to sdk/nodejs/getDatabaseUri.ts index 1aa19d87..0cc06815 100644 --- a/sdk/nodejs/getDatabaseURI.ts +++ b/sdk/nodejs/getDatabaseUri.ts @@ -6,10 +6,10 @@ import * as inputs from "./types/input"; import * as outputs from "./types/output"; import * as utilities from "./utilities"; -export function getDatabaseURI(args: GetDatabaseURIArgs, opts?: pulumi.InvokeOptions): Promise { +export function getDatabaseUri(args: GetDatabaseUriArgs, opts?: pulumi.InvokeOptions): Promise { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); - return pulumi.runtime.invoke("exoscale:index/getDatabaseURI:getDatabaseURI", { + return pulumi.runtime.invoke("exoscale:index/getDatabaseUri:getDatabaseUri", { "name": args.name, "timeouts": args.timeouts, "type": args.type, @@ -18,14 +18,14 @@ export function getDatabaseURI(args: GetDatabaseURIArgs, opts?: pulumi.InvokeOpt } /** - * A collection of arguments for invoking getDatabaseURI. + * A collection of arguments for invoking getDatabaseUri. */ -export interface GetDatabaseURIArgs { +export interface GetDatabaseUriArgs { /** * The database name to match. */ name: string; - timeouts?: inputs.GetDatabaseURITimeouts; + timeouts?: inputs.GetDatabaseUriTimeouts; /** * The type of the database service (`kafka`, `mysql`, `opensearch`, `pg`, `redis`). */ @@ -37,9 +37,9 @@ export interface GetDatabaseURIArgs { } /** - * A collection of values returned by getDatabaseURI. + * A collection of values returned by getDatabaseUri. */ -export interface GetDatabaseURIResult { +export interface GetDatabaseUriResult { /** * The ID of this resource. */ @@ -48,7 +48,7 @@ export interface GetDatabaseURIResult { * The database name to match. */ readonly name: string; - readonly timeouts?: outputs.GetDatabaseURITimeouts; + readonly timeouts?: outputs.GetDatabaseUriTimeouts; /** * The type of the database service (`kafka`, `mysql`, `opensearch`, `pg`, `redis`). */ @@ -62,19 +62,19 @@ export interface GetDatabaseURIResult { */ readonly zone: string; } -export function getDatabaseURIOutput(args: GetDatabaseURIOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getDatabaseURI(a, opts)) +export function getDatabaseUriOutput(args: GetDatabaseUriOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { + return pulumi.output(args).apply((a: any) => getDatabaseUri(a, opts)) } /** - * A collection of arguments for invoking getDatabaseURI. + * A collection of arguments for invoking getDatabaseUri. */ -export interface GetDatabaseURIOutputArgs { +export interface GetDatabaseUriOutputArgs { /** * The database name to match. */ name: pulumi.Input; - timeouts?: pulumi.Input; + timeouts?: pulumi.Input; /** * The type of the database service (`kafka`, `mysql`, `opensearch`, `pg`, `redis`). */ diff --git a/sdk/nodejs/getDomain.ts b/sdk/nodejs/getDomain.ts index b51b5eea..efe79e3d 100644 --- a/sdk/nodejs/getDomain.ts +++ b/sdk/nodejs/getDomain.ts @@ -4,6 +4,26 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; +/** + * Fetch Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domains data. + * + * Corresponding resource: exoscale_domain. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumi/exoscale"; + * + * const myDomain = exoscale.getDomain({ + * name: "my.domain", + * }); + * export const myDomainId = myDomain.then(myDomain => myDomain.id); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + */ export function getDomain(args: GetDomainArgs, opts?: pulumi.InvokeOptions): Promise { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); @@ -35,6 +55,26 @@ export interface GetDomainResult { */ readonly name: string; } +/** + * Fetch Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domains data. + * + * Corresponding resource: exoscale_domain. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumi/exoscale"; + * + * const myDomain = exoscale.getDomain({ + * name: "my.domain", + * }); + * export const myDomainId = myDomain.then(myDomain => myDomain.id); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + */ export function getDomainOutput(args: GetDomainOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getDomain(a, opts)) } diff --git a/sdk/nodejs/getDomainRecord.ts b/sdk/nodejs/getDomainRecord.ts index de762f9b..c35422d9 100644 --- a/sdk/nodejs/getDomainRecord.ts +++ b/sdk/nodejs/getDomainRecord.ts @@ -6,6 +6,11 @@ import * as inputs from "./types/input"; import * as outputs from "./types/output"; import * as utilities from "./utilities"; +/** + * Fetch Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domain Records data. + * + * Corresponding resource: exoscale_domain_record. + */ export function getDomainRecord(args: GetDomainRecordArgs, opts?: pulumi.InvokeOptions): Promise { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); @@ -47,6 +52,11 @@ export interface GetDomainRecordResult { */ readonly records: outputs.GetDomainRecordRecord[]; } +/** + * Fetch Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domain Records data. + * + * Corresponding resource: exoscale_domain_record. + */ export function getDomainRecordOutput(args: GetDomainRecordOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getDomainRecord(a, opts)) } diff --git a/sdk/nodejs/getElasticIP.ts b/sdk/nodejs/getElasticIp.ts similarity index 57% rename from sdk/nodejs/getElasticIP.ts rename to sdk/nodejs/getElasticIp.ts index cd9f4f1f..39e230c6 100644 --- a/sdk/nodejs/getElasticIP.ts +++ b/sdk/nodejs/getElasticIp.ts @@ -6,10 +6,31 @@ import * as inputs from "./types/input"; import * as outputs from "./types/output"; import * as utilities from "./utilities"; -export function getElasticIP(args: GetElasticIPArgs, opts?: pulumi.InvokeOptions): Promise { +/** + * Fetch Exoscale [Elastic IPs (EIP)](https://community.exoscale.com/documentation/compute/eip/) data. + * + * Corresponding resource: exoscale_elastic_ip. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumi/exoscale"; + * + * const myElasticIp = exoscale.getElasticIp({ + * zone: "ch-gva-2", + * ipAddress: "1.2.3.4", + * }); + * export const myElasticIpId = myElasticIp.then(myElasticIp => myElasticIp.id); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + */ +export function getElasticIp(args: GetElasticIpArgs, opts?: pulumi.InvokeOptions): Promise { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); - return pulumi.runtime.invoke("exoscale:index/getElasticIP:getElasticIP", { + return pulumi.runtime.invoke("exoscale:index/getElasticIp:getElasticIp", { "id": args.id, "ipAddress": args.ipAddress, "labels": args.labels, @@ -18,9 +39,9 @@ export function getElasticIP(args: GetElasticIPArgs, opts?: pulumi.InvokeOptions } /** - * A collection of arguments for invoking getElasticIP. + * A collection of arguments for invoking getElasticIp. */ -export interface GetElasticIPArgs { +export interface GetElasticIpArgs { /** * The Elastic IP (EIP) ID to match (conflicts with `ipAddress` and `labels`). */ @@ -40,9 +61,9 @@ export interface GetElasticIPArgs { } /** - * A collection of values returned by getElasticIP. + * A collection of values returned by getElasticIp. */ -export interface GetElasticIPResult { +export interface GetElasticIpResult { /** * The Elastic IP (EIP) address family (`inet4` or `inet6`). */ @@ -58,7 +79,7 @@ export interface GetElasticIPResult { /** * The *managed* EIP healthcheck configuration. */ - readonly healthchecks: outputs.GetElasticIPHealthcheck[]; + readonly healthchecks: outputs.GetElasticIpHealthcheck[]; /** * The Elastic IP (EIP) ID to match (conflicts with `ipAddress` and `labels`). */ @@ -80,14 +101,35 @@ export interface GetElasticIPResult { */ readonly zone: string; } -export function getElasticIPOutput(args: GetElasticIPOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getElasticIP(a, opts)) +/** + * Fetch Exoscale [Elastic IPs (EIP)](https://community.exoscale.com/documentation/compute/eip/) data. + * + * Corresponding resource: exoscale_elastic_ip. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumi/exoscale"; + * + * const myElasticIp = exoscale.getElasticIp({ + * zone: "ch-gva-2", + * ipAddress: "1.2.3.4", + * }); + * export const myElasticIpId = myElasticIp.then(myElasticIp => myElasticIp.id); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + */ +export function getElasticIpOutput(args: GetElasticIpOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { + return pulumi.output(args).apply((a: any) => getElasticIp(a, opts)) } /** - * A collection of arguments for invoking getElasticIP. + * A collection of arguments for invoking getElasticIp. */ -export interface GetElasticIPOutputArgs { +export interface GetElasticIpOutputArgs { /** * The Elastic IP (EIP) ID to match (conflicts with `ipAddress` and `labels`). */ diff --git a/sdk/nodejs/getIAMAPIKey.ts b/sdk/nodejs/getIamApiKey.ts similarity index 60% rename from sdk/nodejs/getIAMAPIKey.ts rename to sdk/nodejs/getIamApiKey.ts index 8152a886..23d6697b 100644 --- a/sdk/nodejs/getIAMAPIKey.ts +++ b/sdk/nodejs/getIamApiKey.ts @@ -11,30 +11,30 @@ import * as utilities from "./utilities"; * * Corresponding resource: exoscale_iam_role. */ -export function getIAMAPIKey(args: GetIAMAPIKeyArgs, opts?: pulumi.InvokeOptions): Promise { +export function getIamApiKey(args: GetIamApiKeyArgs, opts?: pulumi.InvokeOptions): Promise { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); - return pulumi.runtime.invoke("exoscale:index/getIAMAPIKey:getIAMAPIKey", { + return pulumi.runtime.invoke("exoscale:index/getIamApiKey:getIamApiKey", { "key": args.key, "timeouts": args.timeouts, }, opts); } /** - * A collection of arguments for invoking getIAMAPIKey. + * A collection of arguments for invoking getIamApiKey. */ -export interface GetIAMAPIKeyArgs { +export interface GetIamApiKeyArgs { /** * The IAM API Key to match. */ key: string; - timeouts?: inputs.GetIAMAPIKeyTimeouts; + timeouts?: inputs.GetIamApiKeyTimeouts; } /** - * A collection of values returned by getIAMAPIKey. + * A collection of values returned by getIamApiKey. */ -export interface GetIAMAPIKeyResult { +export interface GetIamApiKeyResult { /** * The ID of this resource. */ @@ -51,24 +51,24 @@ export interface GetIAMAPIKeyResult { * IAM API Key role ID. */ readonly roleId: string; - readonly timeouts?: outputs.GetIAMAPIKeyTimeouts; + readonly timeouts?: outputs.GetIamApiKeyTimeouts; } /** * Fetch Exoscale [IAM](https://community.exoscale.com/documentation/iam/) API Key. * * Corresponding resource: exoscale_iam_role. */ -export function getIAMAPIKeyOutput(args: GetIAMAPIKeyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getIAMAPIKey(a, opts)) +export function getIamApiKeyOutput(args: GetIamApiKeyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { + return pulumi.output(args).apply((a: any) => getIamApiKey(a, opts)) } /** - * A collection of arguments for invoking getIAMAPIKey. + * A collection of arguments for invoking getIamApiKey. */ -export interface GetIAMAPIKeyOutputArgs { +export interface GetIamApiKeyOutputArgs { /** * The IAM API Key to match. */ key: pulumi.Input; - timeouts?: pulumi.Input; + timeouts?: pulumi.Input; } diff --git a/sdk/nodejs/getIAMOrgPolicy.ts b/sdk/nodejs/getIamOrgPolicy.ts similarity index 54% rename from sdk/nodejs/getIAMOrgPolicy.ts rename to sdk/nodejs/getIamOrgPolicy.ts index 9d330aa0..4dc0c1c9 100644 --- a/sdk/nodejs/getIAMOrgPolicy.ts +++ b/sdk/nodejs/getIamOrgPolicy.ts @@ -11,26 +11,26 @@ import * as utilities from "./utilities"; * * Corresponding resource: exoscale_iam_org_policy. */ -export function getIAMOrgPolicy(args?: GetIAMOrgPolicyArgs, opts?: pulumi.InvokeOptions): Promise { +export function getIamOrgPolicy(args?: GetIamOrgPolicyArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); - return pulumi.runtime.invoke("exoscale:index/getIAMOrgPolicy:getIAMOrgPolicy", { + return pulumi.runtime.invoke("exoscale:index/getIamOrgPolicy:getIamOrgPolicy", { "timeouts": args.timeouts, }, opts); } /** - * A collection of arguments for invoking getIAMOrgPolicy. + * A collection of arguments for invoking getIamOrgPolicy. */ -export interface GetIAMOrgPolicyArgs { - timeouts?: inputs.GetIAMOrgPolicyTimeouts; +export interface GetIamOrgPolicyArgs { + timeouts?: inputs.GetIamOrgPolicyTimeouts; } /** - * A collection of values returned by getIAMOrgPolicy. + * A collection of values returned by getIamOrgPolicy. */ -export interface GetIAMOrgPolicyResult { +export interface GetIamOrgPolicyResult { /** * Default service strategy (`allow` or `deny`). */ @@ -42,21 +42,21 @@ export interface GetIAMOrgPolicyResult { /** * IAM policy services. */ - readonly services: {[key: string]: outputs.GetIAMOrgPolicyServices}; - readonly timeouts?: outputs.GetIAMOrgPolicyTimeouts; + readonly services: {[key: string]: outputs.GetIamOrgPolicyServices}; + readonly timeouts?: outputs.GetIamOrgPolicyTimeouts; } /** * Fetch Exoscale [IAM](https://community.exoscale.com/documentation/iam/) Organization Policy. * * Corresponding resource: exoscale_iam_org_policy. */ -export function getIAMOrgPolicyOutput(args?: GetIAMOrgPolicyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getIAMOrgPolicy(a, opts)) +export function getIamOrgPolicyOutput(args?: GetIamOrgPolicyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { + return pulumi.output(args).apply((a: any) => getIamOrgPolicy(a, opts)) } /** - * A collection of arguments for invoking getIAMOrgPolicy. + * A collection of arguments for invoking getIamOrgPolicy. */ -export interface GetIAMOrgPolicyOutputArgs { - timeouts?: pulumi.Input; +export interface GetIamOrgPolicyOutputArgs { + timeouts?: pulumi.Input; } diff --git a/sdk/nodejs/getIAMRole.ts b/sdk/nodejs/getIamRole.ts similarity index 68% rename from sdk/nodejs/getIAMRole.ts rename to sdk/nodejs/getIamRole.ts index c42f5781..84989a0e 100644 --- a/sdk/nodejs/getIAMRole.ts +++ b/sdk/nodejs/getIamRole.ts @@ -11,11 +11,11 @@ import * as utilities from "./utilities"; * * Corresponding resource: exoscale_iam_role. */ -export function getIAMRole(args?: GetIAMRoleArgs, opts?: pulumi.InvokeOptions): Promise { +export function getIamRole(args?: GetIamRoleArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); - return pulumi.runtime.invoke("exoscale:index/getIAMRole:getIAMRole", { + return pulumi.runtime.invoke("exoscale:index/getIamRole:getIamRole", { "id": args.id, "name": args.name, "timeouts": args.timeouts, @@ -23,9 +23,9 @@ export function getIAMRole(args?: GetIAMRoleArgs, opts?: pulumi.InvokeOptions): } /** - * A collection of arguments for invoking getIAMRole. + * A collection of arguments for invoking getIamRole. */ -export interface GetIAMRoleArgs { +export interface GetIamRoleArgs { /** * The role ID to match (conflicts with `name`). */ @@ -34,13 +34,13 @@ export interface GetIAMRoleArgs { * the role name to match (conflicts with `id`). */ name?: string; - timeouts?: inputs.GetIAMRoleTimeouts; + timeouts?: inputs.GetIamRoleTimeouts; } /** - * A collection of values returned by getIAMRole. + * A collection of values returned by getIamRole. */ -export interface GetIAMRoleResult { +export interface GetIamRoleResult { /** * A free-form text describing the IAM Role */ @@ -68,22 +68,22 @@ export interface GetIAMRoleResult { /** * IAM Policy. */ - readonly policy: outputs.GetIAMRolePolicy; - readonly timeouts?: outputs.GetIAMRoleTimeouts; + readonly policy: outputs.GetIamRolePolicy; + readonly timeouts?: outputs.GetIamRoleTimeouts; } /** * Fetch Exoscale [IAM](https://community.exoscale.com/documentation/iam/) Role. * * Corresponding resource: exoscale_iam_role. */ -export function getIAMRoleOutput(args?: GetIAMRoleOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getIAMRole(a, opts)) +export function getIamRoleOutput(args?: GetIamRoleOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { + return pulumi.output(args).apply((a: any) => getIamRole(a, opts)) } /** - * A collection of arguments for invoking getIAMRole. + * A collection of arguments for invoking getIamRole. */ -export interface GetIAMRoleOutputArgs { +export interface GetIamRoleOutputArgs { /** * The role ID to match (conflicts with `name`). */ @@ -92,5 +92,5 @@ export interface GetIAMRoleOutputArgs { * the role name to match (conflicts with `id`). */ name?: pulumi.Input; - timeouts?: pulumi.Input; + timeouts?: pulumi.Input; } diff --git a/sdk/nodejs/getInstancePool.ts b/sdk/nodejs/getInstancePool.ts index f97b587b..29703349 100644 --- a/sdk/nodejs/getInstancePool.ts +++ b/sdk/nodejs/getInstancePool.ts @@ -6,6 +6,27 @@ import * as inputs from "./types/input"; import * as outputs from "./types/output"; import * as utilities from "./utilities"; +/** + * Fetch Exoscale [Instance Pools](https://community.exoscale.com/documentation/compute/instance-pools/) data. + * + * Corresponding resource: exoscale_instance_pool. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumi/exoscale"; + * + * const myInstancePool = exoscale.getInstancePool({ + * zone: "ch-gva-2", + * name: "my-instance-pool", + * }); + * export const myInstancePoolId = myInstancePool.then(myInstancePool => myInstancePool.id); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + */ export function getInstancePool(args: GetInstancePoolArgs, opts?: pulumi.InvokeOptions): Promise { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); @@ -118,6 +139,27 @@ export interface GetInstancePoolResult { */ readonly zone: string; } +/** + * Fetch Exoscale [Instance Pools](https://community.exoscale.com/documentation/compute/instance-pools/) data. + * + * Corresponding resource: exoscale_instance_pool. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumi/exoscale"; + * + * const myInstancePool = exoscale.getInstancePool({ + * zone: "ch-gva-2", + * name: "my-instance-pool", + * }); + * export const myInstancePoolId = myInstancePool.then(myInstancePool => myInstancePool.id); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + */ export function getInstancePoolOutput(args: GetInstancePoolOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getInstancePool(a, opts)) } diff --git a/sdk/nodejs/getInstancePoolList.ts b/sdk/nodejs/getInstancePoolList.ts index 383f5382..baede4bb 100644 --- a/sdk/nodejs/getInstancePoolList.ts +++ b/sdk/nodejs/getInstancePoolList.ts @@ -6,6 +6,11 @@ import * as inputs from "./types/input"; import * as outputs from "./types/output"; import * as utilities from "./utilities"; +/** + * List Exoscale [Instance Pools](https://community.exoscale.com/documentation/compute/instance-pools/). + * + * Corresponding resource: exoscale_instance_pool. + */ export function getInstancePoolList(args: GetInstancePoolListArgs, opts?: pulumi.InvokeOptions): Promise { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); @@ -38,6 +43,11 @@ export interface GetInstancePoolListResult { */ readonly zone: string; } +/** + * List Exoscale [Instance Pools](https://community.exoscale.com/documentation/compute/instance-pools/). + * + * Corresponding resource: exoscale_instance_pool. + */ export function getInstancePoolListOutput(args: GetInstancePoolListOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getInstancePoolList(a, opts)) } diff --git a/sdk/nodejs/getNLB.ts b/sdk/nodejs/getNlb.ts similarity index 51% rename from sdk/nodejs/getNLB.ts rename to sdk/nodejs/getNlb.ts index 3db98700..b036b55b 100644 --- a/sdk/nodejs/getNLB.ts +++ b/sdk/nodejs/getNlb.ts @@ -4,10 +4,31 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; -export function getNLB(args: GetNLBArgs, opts?: pulumi.InvokeOptions): Promise { +/** + * Fetch Exoscale [Network Load Balancers (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/) data. + * + * Corresponding resource: exoscale_nlb. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumi/exoscale"; + * + * const myNlb = exoscale.getNlb({ + * zone: "ch-gva-2", + * name: "my-nlb", + * }); + * export const myNlbId = myNlb.then(myNlb => myNlb.id); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + */ +export function getNlb(args: GetNlbArgs, opts?: pulumi.InvokeOptions): Promise { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); - return pulumi.runtime.invoke("exoscale:index/getNLB:getNLB", { + return pulumi.runtime.invoke("exoscale:index/getNlb:getNlb", { "id": args.id, "name": args.name, "zone": args.zone, @@ -15,9 +36,9 @@ export function getNLB(args: GetNLBArgs, opts?: pulumi.InvokeOptions): Promise { - return pulumi.output(args).apply((a: any) => getNLB(a, opts)) +/** + * Fetch Exoscale [Network Load Balancers (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/) data. + * + * Corresponding resource: exoscale_nlb. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumi/exoscale"; + * + * const myNlb = exoscale.getNlb({ + * zone: "ch-gva-2", + * name: "my-nlb", + * }); + * export const myNlbId = myNlb.then(myNlb => myNlb.id); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + */ +export function getNlbOutput(args: GetNlbOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { + return pulumi.output(args).apply((a: any) => getNlb(a, opts)) } /** - * A collection of arguments for invoking getNLB. + * A collection of arguments for invoking getNlb. */ -export interface GetNLBOutputArgs { +export interface GetNlbOutputArgs { /** * The Network Load Balancers (NLB) ID to match (conflicts with `name`). */ diff --git a/sdk/nodejs/getNLBServiceList.ts b/sdk/nodejs/getNlbServiceList.ts similarity index 55% rename from sdk/nodejs/getNLBServiceList.ts rename to sdk/nodejs/getNlbServiceList.ts index f05eff7d..c9499d7c 100644 --- a/sdk/nodejs/getNLBServiceList.ts +++ b/sdk/nodejs/getNlbServiceList.ts @@ -6,10 +6,15 @@ import * as inputs from "./types/input"; import * as outputs from "./types/output"; import * as utilities from "./utilities"; -export function getNLBServiceList(args: GetNLBServiceListArgs, opts?: pulumi.InvokeOptions): Promise { +/** + * Fetch Exoscale [Network Load Balancers (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/) Services. + * + * Corresponding resource: exoscale_nlb. + */ +export function getNlbServiceList(args: GetNlbServiceListArgs, opts?: pulumi.InvokeOptions): Promise { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); - return pulumi.runtime.invoke("exoscale:index/getNLBServiceList:getNLBServiceList", { + return pulumi.runtime.invoke("exoscale:index/getNlbServiceList:getNlbServiceList", { "nlbId": args.nlbId, "nlbName": args.nlbName, "timeouts": args.timeouts, @@ -18,9 +23,9 @@ export function getNLBServiceList(args: GetNLBServiceListArgs, opts?: pulumi.Inv } /** - * A collection of arguments for invoking getNLBServiceList. + * A collection of arguments for invoking getNlbServiceList. */ -export interface GetNLBServiceListArgs { +export interface GetNlbServiceListArgs { /** * The NLB ID to match (conflicts with `name`). */ @@ -29,7 +34,7 @@ export interface GetNLBServiceListArgs { * The NLB name to match (conflicts with `id`). */ nlbName?: string; - timeouts?: inputs.GetNLBServiceListTimeouts; + timeouts?: inputs.GetNlbServiceListTimeouts; /** * The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. */ @@ -37,9 +42,9 @@ export interface GetNLBServiceListArgs { } /** - * A collection of values returned by getNLBServiceList. + * A collection of values returned by getNlbServiceList. */ -export interface GetNLBServiceListResult { +export interface GetNlbServiceListResult { /** * The ID of this resource. */ @@ -55,21 +60,26 @@ export interface GetNLBServiceListResult { /** * The list of exoscale*nlb*service. */ - readonly services: outputs.GetNLBServiceListService[]; - readonly timeouts?: outputs.GetNLBServiceListTimeouts; + readonly services: outputs.GetNlbServiceListService[]; + readonly timeouts?: outputs.GetNlbServiceListTimeouts; /** * The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. */ readonly zone: string; } -export function getNLBServiceListOutput(args: GetNLBServiceListOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getNLBServiceList(a, opts)) +/** + * Fetch Exoscale [Network Load Balancers (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/) Services. + * + * Corresponding resource: exoscale_nlb. + */ +export function getNlbServiceListOutput(args: GetNlbServiceListOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { + return pulumi.output(args).apply((a: any) => getNlbServiceList(a, opts)) } /** - * A collection of arguments for invoking getNLBServiceList. + * A collection of arguments for invoking getNlbServiceList. */ -export interface GetNLBServiceListOutputArgs { +export interface GetNlbServiceListOutputArgs { /** * The NLB ID to match (conflicts with `name`). */ @@ -78,7 +88,7 @@ export interface GetNLBServiceListOutputArgs { * The NLB name to match (conflicts with `id`). */ nlbName?: pulumi.Input; - timeouts?: pulumi.Input; + timeouts?: pulumi.Input; /** * The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. */ diff --git a/sdk/nodejs/getPrivateNetwork.ts b/sdk/nodejs/getPrivateNetwork.ts index 24cce317..7dfbb4a7 100644 --- a/sdk/nodejs/getPrivateNetwork.ts +++ b/sdk/nodejs/getPrivateNetwork.ts @@ -4,6 +4,27 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; +/** + * Fetch Exoscale [Private Networks](https://community.exoscale.com/documentation/compute/private-networks/) data. + * + * Corresponding resource: exoscale_private_network. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumi/exoscale"; + * + * const myPrivateNetwork = exoscale.getPrivateNetwork({ + * zone: "ch-gva-2", + * name: "my-private-network", + * }); + * export const myPrivateNetworkId = myPrivateNetwork.then(myPrivateNetwork => myPrivateNetwork.id); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + */ export function getPrivateNetwork(args: GetPrivateNetworkArgs, opts?: pulumi.InvokeOptions): Promise { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); @@ -79,6 +100,27 @@ export interface GetPrivateNetworkResult { */ readonly zone: string; } +/** + * Fetch Exoscale [Private Networks](https://community.exoscale.com/documentation/compute/private-networks/) data. + * + * Corresponding resource: exoscale_private_network. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumi/exoscale"; + * + * const myPrivateNetwork = exoscale.getPrivateNetwork({ + * zone: "ch-gva-2", + * name: "my-private-network", + * }); + * export const myPrivateNetworkId = myPrivateNetwork.then(myPrivateNetwork => myPrivateNetwork.id); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + */ export function getPrivateNetworkOutput(args: GetPrivateNetworkOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getPrivateNetwork(a, opts)) } diff --git a/sdk/nodejs/getSecurityGroup.ts b/sdk/nodejs/getSecurityGroup.ts index 6bc0d301..016eb4c0 100644 --- a/sdk/nodejs/getSecurityGroup.ts +++ b/sdk/nodejs/getSecurityGroup.ts @@ -4,6 +4,26 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; +/** + * Fetch Exoscale [Security Groups](https://community.exoscale.com/documentation/compute/security-groups/) data. + * + * Corresponding resource: exoscale_security_group. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumi/exoscale"; + * + * const mySecurityGroup = exoscale.getSecurityGroup({ + * name: "my-security-group", + * }); + * export const mySecurityGroupId = mySecurityGroup.then(mySecurityGroup => mySecurityGroup.id); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + */ export function getSecurityGroup(args?: GetSecurityGroupArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -45,6 +65,26 @@ export interface GetSecurityGroupResult { */ readonly name?: string; } +/** + * Fetch Exoscale [Security Groups](https://community.exoscale.com/documentation/compute/security-groups/) data. + * + * Corresponding resource: exoscale_security_group. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumi/exoscale"; + * + * const mySecurityGroup = exoscale.getSecurityGroup({ + * name: "my-security-group", + * }); + * export const mySecurityGroupId = mySecurityGroup.then(mySecurityGroup => mySecurityGroup.id); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + */ export function getSecurityGroupOutput(args?: GetSecurityGroupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getSecurityGroup(a, opts)) } diff --git a/sdk/nodejs/getSKSCluster.ts b/sdk/nodejs/getSksCluster.ts similarity index 92% rename from sdk/nodejs/getSKSCluster.ts rename to sdk/nodejs/getSksCluster.ts index 2eece4f8..3b823b9f 100644 --- a/sdk/nodejs/getSKSCluster.ts +++ b/sdk/nodejs/getSksCluster.ts @@ -6,10 +6,10 @@ import * as inputs from "./types/input"; import * as outputs from "./types/output"; import * as utilities from "./utilities"; -export function getSKSCluster(args: GetSKSClusterArgs, opts?: pulumi.InvokeOptions): Promise { +export function getSksCluster(args: GetSksClusterArgs, opts?: pulumi.InvokeOptions): Promise { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); - return pulumi.runtime.invoke("exoscale:index/getSKSCluster:getSKSCluster", { + return pulumi.runtime.invoke("exoscale:index/getSksCluster:getSksCluster", { "addons": args.addons, "aggregationCa": args.aggregationCa, "autoUpgrade": args.autoUpgrade, @@ -34,9 +34,9 @@ export function getSKSCluster(args: GetSKSClusterArgs, opts?: pulumi.InvokeOptio } /** - * A collection of arguments for invoking getSKSCluster. + * A collection of arguments for invoking getSksCluster. */ -export interface GetSKSClusterArgs { +export interface GetSksClusterArgs { /** * @deprecated This attribute has been replaced by `exoscale_ccm`/`metrics_server` attributes, it will be removed in a future release. */ @@ -97,7 +97,7 @@ export interface GetSKSClusterArgs { /** * An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. */ - oidc?: inputs.GetSKSClusterOidc; + oidc?: inputs.GetSksClusterOidc; /** * The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). */ @@ -114,9 +114,9 @@ export interface GetSKSClusterArgs { } /** - * A collection of values returned by getSKSCluster. + * A collection of values returned by getSksCluster. */ -export interface GetSKSClusterResult { +export interface GetSksClusterResult { /** * @deprecated This attribute has been replaced by `exoscale_ccm`/`metrics_server` attributes, it will be removed in a future release. */ @@ -177,7 +177,7 @@ export interface GetSKSClusterResult { /** * An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. */ - readonly oidc: outputs.GetSKSClusterOidc; + readonly oidc: outputs.GetSksClusterOidc; /** * The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). */ @@ -192,14 +192,14 @@ export interface GetSKSClusterResult { readonly version: string; readonly zone: string; } -export function getSKSClusterOutput(args: GetSKSClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getSKSCluster(a, opts)) +export function getSksClusterOutput(args: GetSksClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { + return pulumi.output(args).apply((a: any) => getSksCluster(a, opts)) } /** - * A collection of arguments for invoking getSKSCluster. + * A collection of arguments for invoking getSksCluster. */ -export interface GetSKSClusterOutputArgs { +export interface GetSksClusterOutputArgs { /** * @deprecated This attribute has been replaced by `exoscale_ccm`/`metrics_server` attributes, it will be removed in a future release. */ @@ -260,7 +260,7 @@ export interface GetSKSClusterOutputArgs { /** * An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. */ - oidc?: pulumi.Input; + oidc?: pulumi.Input; /** * The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). */ diff --git a/sdk/nodejs/getSKSClusterList.ts b/sdk/nodejs/getSksClusterList.ts similarity index 86% rename from sdk/nodejs/getSKSClusterList.ts rename to sdk/nodejs/getSksClusterList.ts index 6cdb5e65..adbecef1 100644 --- a/sdk/nodejs/getSKSClusterList.ts +++ b/sdk/nodejs/getSksClusterList.ts @@ -6,10 +6,10 @@ import * as inputs from "./types/input"; import * as outputs from "./types/output"; import * as utilities from "./utilities"; -export function getSKSClusterList(args: GetSKSClusterListArgs, opts?: pulumi.InvokeOptions): Promise { +export function getSksClusterList(args: GetSksClusterListArgs, opts?: pulumi.InvokeOptions): Promise { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); - return pulumi.runtime.invoke("exoscale:index/getSKSClusterList:getSKSClusterList", { + return pulumi.runtime.invoke("exoscale:index/getSksClusterList:getSksClusterList", { "aggregationCa": args.aggregationCa, "autoUpgrade": args.autoUpgrade, "cni": args.cni, @@ -31,9 +31,9 @@ export function getSKSClusterList(args: GetSKSClusterListArgs, opts?: pulumi.Inv } /** - * A collection of arguments for invoking getSKSClusterList. + * A collection of arguments for invoking getSksClusterList. */ -export interface GetSKSClusterListArgs { +export interface GetSksClusterListArgs { aggregationCa?: string; autoUpgrade?: boolean; cni?: string; @@ -54,9 +54,9 @@ export interface GetSKSClusterListArgs { } /** - * A collection of values returned by getSKSClusterList. + * A collection of values returned by getSksClusterList. */ -export interface GetSKSClusterListResult { +export interface GetSksClusterListResult { /** * Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. */ @@ -65,7 +65,7 @@ export interface GetSKSClusterListResult { * Match against this bool */ readonly autoUpgrade?: boolean; - readonly clusters: outputs.GetSKSClusterListCluster[]; + readonly clusters: outputs.GetSksClusterListCluster[]; /** * Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. */ @@ -127,14 +127,14 @@ export interface GetSKSClusterListResult { */ readonly zone: string; } -export function getSKSClusterListOutput(args: GetSKSClusterListOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getSKSClusterList(a, opts)) +export function getSksClusterListOutput(args: GetSksClusterListOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { + return pulumi.output(args).apply((a: any) => getSksClusterList(a, opts)) } /** - * A collection of arguments for invoking getSKSClusterList. + * A collection of arguments for invoking getSksClusterList. */ -export interface GetSKSClusterListOutputArgs { +export interface GetSksClusterListOutputArgs { aggregationCa?: pulumi.Input; autoUpgrade?: pulumi.Input; cni?: pulumi.Input; diff --git a/sdk/nodejs/getSKSNodepool.ts b/sdk/nodejs/getSksNodepool.ts similarity index 88% rename from sdk/nodejs/getSKSNodepool.ts rename to sdk/nodejs/getSksNodepool.ts index a074eff5..062c9edf 100644 --- a/sdk/nodejs/getSKSNodepool.ts +++ b/sdk/nodejs/getSksNodepool.ts @@ -4,10 +4,10 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; -export function getSKSNodepool(args: GetSKSNodepoolArgs, opts?: pulumi.InvokeOptions): Promise { +export function getSksNodepool(args: GetSksNodepoolArgs, opts?: pulumi.InvokeOptions): Promise { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); - return pulumi.runtime.invoke("exoscale:index/getSKSNodepool:getSKSNodepool", { + return pulumi.runtime.invoke("exoscale:index/getSksNodepool:getSksNodepool", { "antiAffinityGroupIds": args.antiAffinityGroupIds, "clusterId": args.clusterId, "createdAt": args.createdAt, @@ -33,9 +33,9 @@ export function getSKSNodepool(args: GetSKSNodepoolArgs, opts?: pulumi.InvokeOpt } /** - * A collection of arguments for invoking getSKSNodepool. + * A collection of arguments for invoking getSksNodepool. */ -export interface GetSKSNodepoolArgs { +export interface GetSksNodepoolArgs { /** * A list of exoscale*anti*affinity_group (IDs) to be attached to the managed instances. */ @@ -96,7 +96,7 @@ export interface GetSKSNodepoolArgs { */ storageLvm?: boolean; /** - * A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + * A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }'). */ taints?: {[key: string]: string}; /** @@ -111,9 +111,9 @@ export interface GetSKSNodepoolArgs { } /** - * A collection of values returned by getSKSNodepool. + * A collection of values returned by getSksNodepool. */ -export interface GetSKSNodepoolResult { +export interface GetSksNodepoolResult { /** * A list of exoscale*anti*affinity_group (IDs) to be attached to the managed instances. */ @@ -174,7 +174,7 @@ export interface GetSKSNodepoolResult { */ readonly storageLvm?: boolean; /** - * A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + * A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }'). */ readonly taints?: {[key: string]: string}; /** @@ -187,14 +187,14 @@ export interface GetSKSNodepoolResult { readonly version: string; readonly zone: string; } -export function getSKSNodepoolOutput(args: GetSKSNodepoolOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getSKSNodepool(a, opts)) +export function getSksNodepoolOutput(args: GetSksNodepoolOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { + return pulumi.output(args).apply((a: any) => getSksNodepool(a, opts)) } /** - * A collection of arguments for invoking getSKSNodepool. + * A collection of arguments for invoking getSksNodepool. */ -export interface GetSKSNodepoolOutputArgs { +export interface GetSksNodepoolOutputArgs { /** * A list of exoscale*anti*affinity_group (IDs) to be attached to the managed instances. */ @@ -255,7 +255,7 @@ export interface GetSKSNodepoolOutputArgs { */ storageLvm?: pulumi.Input; /** - * A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + * A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }'). */ taints?: pulumi.Input<{[key: string]: pulumi.Input}>; /** diff --git a/sdk/nodejs/getSKSNodepoolList.ts b/sdk/nodejs/getSksNodepoolList.ts similarity index 86% rename from sdk/nodejs/getSKSNodepoolList.ts rename to sdk/nodejs/getSksNodepoolList.ts index d6434ed2..0053136f 100644 --- a/sdk/nodejs/getSKSNodepoolList.ts +++ b/sdk/nodejs/getSksNodepoolList.ts @@ -6,10 +6,10 @@ import * as inputs from "./types/input"; import * as outputs from "./types/output"; import * as utilities from "./utilities"; -export function getSKSNodepoolList(args: GetSKSNodepoolListArgs, opts?: pulumi.InvokeOptions): Promise { +export function getSksNodepoolList(args: GetSksNodepoolListArgs, opts?: pulumi.InvokeOptions): Promise { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); - return pulumi.runtime.invoke("exoscale:index/getSKSNodepoolList:getSKSNodepoolList", { + return pulumi.runtime.invoke("exoscale:index/getSksNodepoolList:getSksNodepoolList", { "clusterId": args.clusterId, "createdAt": args.createdAt, "deployTargetId": args.deployTargetId, @@ -32,9 +32,9 @@ export function getSKSNodepoolList(args: GetSKSNodepoolListArgs, opts?: pulumi.I } /** - * A collection of arguments for invoking getSKSNodepoolList. + * A collection of arguments for invoking getSksNodepoolList. */ -export interface GetSKSNodepoolListArgs { +export interface GetSksNodepoolListArgs { clusterId?: string; createdAt?: string; deployTargetId?: string; @@ -56,9 +56,9 @@ export interface GetSKSNodepoolListArgs { } /** - * A collection of values returned by getSKSNodepoolList. + * A collection of values returned by getSksNodepoolList. */ -export interface GetSKSNodepoolListResult { +export interface GetSksNodepoolListResult { /** * Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. */ @@ -103,7 +103,7 @@ export interface GetSKSNodepoolListResult { * Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex. */ readonly name?: string; - readonly nodepools: outputs.GetSKSNodepoolListNodepool[]; + readonly nodepools: outputs.GetSksNodepoolListNodepool[]; /** * Match against this int */ @@ -133,14 +133,14 @@ export interface GetSKSNodepoolListResult { */ readonly zone: string; } -export function getSKSNodepoolListOutput(args: GetSKSNodepoolListOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getSKSNodepoolList(a, opts)) +export function getSksNodepoolListOutput(args: GetSksNodepoolListOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { + return pulumi.output(args).apply((a: any) => getSksNodepoolList(a, opts)) } /** - * A collection of arguments for invoking getSKSNodepoolList. + * A collection of arguments for invoking getSksNodepoolList. */ -export interface GetSKSNodepoolListOutputArgs { +export interface GetSksNodepoolListOutputArgs { clusterId?: pulumi.Input; createdAt?: pulumi.Input; deployTargetId?: pulumi.Input; diff --git a/sdk/nodejs/getTemplate.ts b/sdk/nodejs/getTemplate.ts index 7e62d41b..03110312 100644 --- a/sdk/nodejs/getTemplate.ts +++ b/sdk/nodejs/getTemplate.ts @@ -4,6 +4,25 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; +/** + * Fetch Exoscale [Compute Instance Templates](https://community.exoscale.com/documentation/compute/custom-templates/) data. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumi/exoscale"; + * + * const myTemplate = exoscale.getTemplate({ + * zone: "ch-gva-2", + * name: "Linux Ubuntu 22.04 LTS 64-bit", + * }); + * export const myTemplateId = myTemplate.then(myTemplate => myTemplate.id); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + */ export function getTemplate(args: GetTemplateArgs, opts?: pulumi.InvokeOptions): Promise { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); @@ -62,6 +81,25 @@ export interface GetTemplateResult { */ readonly zone: string; } +/** + * Fetch Exoscale [Compute Instance Templates](https://community.exoscale.com/documentation/compute/custom-templates/) data. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumi/exoscale"; + * + * const myTemplate = exoscale.getTemplate({ + * zone: "ch-gva-2", + * name: "Linux Ubuntu 22.04 LTS 64-bit", + * }); + * export const myTemplateId = myTemplate.then(myTemplate => myTemplate.id); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + */ export function getTemplateOutput(args: GetTemplateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getTemplate(a, opts)) } diff --git a/sdk/nodejs/getZones.ts b/sdk/nodejs/getZones.ts index 357838fb..1f8e4693 100644 --- a/sdk/nodejs/getZones.ts +++ b/sdk/nodejs/getZones.ts @@ -4,6 +4,22 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; +/** + * Lists all zones. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumi/exoscale"; + * + * const exampleZones = exoscale.getZones({}); + * export const zonesOutput = exampleZones.then(exampleZones => exampleZones.zones); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + */ export function getZones(opts?: pulumi.InvokeOptions): Promise { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); @@ -24,6 +40,22 @@ export interface GetZonesResult { */ readonly zones: string[]; } +/** + * Lists all zones. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumi/exoscale"; + * + * const exampleZones = exoscale.getZones({}); + * export const zonesOutput = exampleZones.then(exampleZones => exampleZones.zones); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + */ export function getZonesOutput(opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(getZones(opts)) } diff --git a/sdk/nodejs/iamaccessKey.ts b/sdk/nodejs/iamAccessKey.ts similarity index 72% rename from sdk/nodejs/iamaccessKey.ts rename to sdk/nodejs/iamAccessKey.ts index e99f19ff..a6ec3222 100644 --- a/sdk/nodejs/iamaccessKey.ts +++ b/sdk/nodejs/iamAccessKey.ts @@ -4,9 +4,31 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; -export class IAMAccessKey extends pulumi.CustomResource { +/** + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumiverse/exoscale"; + * + * const mySosAccessKey = new exoscale.IamAccessKey("mySosAccessKey", { + * operations: [ + * "get-sos-object", + * "list-sos-bucket", + * ], + * resources: ["sos/bucket:my-bucket"], + * }); + * const mySksAccessKey = new exoscale.IamAccessKey("mySksAccessKey", {tags: ["sks"]}); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + * + * > **NOTE:** You can retrieve the list of available operations and tags using the [Exoscale CLI](https://github.com/exoscale/cli/): `exo iam access-key list-operations`. + */ +export class IamAccessKey extends pulumi.CustomResource { /** - * Get an existing IAMAccessKey resource's state with the given name, ID, and optional extra + * Get an existing IamAccessKey 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. @@ -14,22 +36,22 @@ export class IAMAccessKey extends pulumi.CustomResource { * @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?: IAMAccessKeyState, opts?: pulumi.CustomResourceOptions): IAMAccessKey { - return new IAMAccessKey(name, state, { ...opts, id: id }); + public static get(name: string, id: pulumi.Input, state?: IamAccessKeyState, opts?: pulumi.CustomResourceOptions): IamAccessKey { + return new IamAccessKey(name, state, { ...opts, id: id }); } /** @internal */ - public static readonly __pulumiType = 'exoscale:index/iAMAccessKey:IAMAccessKey'; + public static readonly __pulumiType = 'exoscale:index/iamAccessKey:IamAccessKey'; /** - * Returns true if the given object is an instance of IAMAccessKey. This is designed to work even + * Returns true if the given object is an instance of IamAccessKey. 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 IAMAccessKey { + public static isInstance(obj: any): obj is IamAccessKey { if (obj === undefined || obj === null) { return false; } - return obj['__pulumiType'] === IAMAccessKey.__pulumiType; + return obj['__pulumiType'] === IamAccessKey.__pulumiType; } /** @@ -59,18 +81,18 @@ export class IAMAccessKey extends pulumi.CustomResource { public /*out*/ readonly tagsOperations!: pulumi.Output; /** - * Create a IAMAccessKey resource with the given unique name, arguments, and options. + * Create a IamAccessKey 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. */ - constructor(name: string, args?: IAMAccessKeyArgs, opts?: pulumi.CustomResourceOptions) - constructor(name: string, argsOrState?: IAMAccessKeyArgs | IAMAccessKeyState, opts?: pulumi.CustomResourceOptions) { + constructor(name: string, args?: IamAccessKeyArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: IamAccessKeyArgs | IamAccessKeyState, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; if (opts.id) { - const state = argsOrState as IAMAccessKeyState | undefined; + const state = argsOrState as IamAccessKeyState | undefined; resourceInputs["key"] = state ? state.key : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["operations"] = state ? state.operations : undefined; @@ -79,7 +101,7 @@ export class IAMAccessKey extends pulumi.CustomResource { resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["tagsOperations"] = state ? state.tagsOperations : undefined; } else { - const args = argsOrState as IAMAccessKeyArgs | undefined; + const args = argsOrState as IamAccessKeyArgs | undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["operations"] = args ? args.operations : undefined; resourceInputs["resources"] = args ? args.resources : undefined; @@ -91,14 +113,14 @@ export class IAMAccessKey extends pulumi.CustomResource { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["key", "secret"] }; opts = pulumi.mergeOptions(opts, secretOpts); - super(IAMAccessKey.__pulumiType, name, resourceInputs, opts); + super(IamAccessKey.__pulumiType, name, resourceInputs, opts); } } /** - * Input properties used for looking up and filtering IAMAccessKey resources. + * Input properties used for looking up and filtering IamAccessKey resources. */ -export interface IAMAccessKeyState { +export interface IamAccessKeyState { /** * The IAM access key (identifier). */ @@ -127,9 +149,9 @@ export interface IAMAccessKeyState { } /** - * The set of arguments for constructing a IAMAccessKey resource. + * The set of arguments for constructing a IamAccessKey resource. */ -export interface IAMAccessKeyArgs { +export interface IamAccessKeyArgs { /** * ❗ The IAM access key name. */ diff --git a/sdk/nodejs/iamapikey.ts b/sdk/nodejs/iamApiKey.ts similarity index 72% rename from sdk/nodejs/iamapikey.ts rename to sdk/nodejs/iamApiKey.ts index 1ab3c273..057c3c03 100644 --- a/sdk/nodejs/iamapikey.ts +++ b/sdk/nodejs/iamApiKey.ts @@ -6,9 +6,9 @@ import * as inputs from "./types/input"; import * as outputs from "./types/output"; import * as utilities from "./utilities"; -export class IAMAPIKey extends pulumi.CustomResource { +export class IamApiKey extends pulumi.CustomResource { /** - * Get an existing IAMAPIKey resource's state with the given name, ID, and optional extra + * Get an existing IamApiKey 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. @@ -16,22 +16,22 @@ export class IAMAPIKey extends pulumi.CustomResource { * @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?: IAMAPIKeyState, opts?: pulumi.CustomResourceOptions): IAMAPIKey { - return new IAMAPIKey(name, state, { ...opts, id: id }); + public static get(name: string, id: pulumi.Input, state?: IamApiKeyState, opts?: pulumi.CustomResourceOptions): IamApiKey { + return new IamApiKey(name, state, { ...opts, id: id }); } /** @internal */ - public static readonly __pulumiType = 'exoscale:index/iAMAPIKey:IAMAPIKey'; + public static readonly __pulumiType = 'exoscale:index/iamApiKey:IamApiKey'; /** - * Returns true if the given object is an instance of IAMAPIKey. This is designed to work even + * Returns true if the given object is an instance of IamApiKey. 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 IAMAPIKey { + public static isInstance(obj: any): obj is IamApiKey { if (obj === undefined || obj === null) { return false; } - return obj['__pulumiType'] === IAMAPIKey.__pulumiType; + return obj['__pulumiType'] === IamApiKey.__pulumiType; } /** @@ -50,28 +50,28 @@ export class IAMAPIKey extends pulumi.CustomResource { * Secret for the IAM API Key. */ public /*out*/ readonly secret!: pulumi.Output; - public readonly timeouts!: pulumi.Output; + public readonly timeouts!: pulumi.Output; /** - * Create a IAMAPIKey resource with the given unique name, arguments, and options. + * Create a IamApiKey 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. */ - constructor(name: string, args: IAMAPIKeyArgs, opts?: pulumi.CustomResourceOptions) - constructor(name: string, argsOrState?: IAMAPIKeyArgs | IAMAPIKeyState, opts?: pulumi.CustomResourceOptions) { + constructor(name: string, args: IamApiKeyArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: IamApiKeyArgs | IamApiKeyState, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; if (opts.id) { - const state = argsOrState as IAMAPIKeyState | undefined; + const state = argsOrState as IamApiKeyState | undefined; resourceInputs["key"] = state ? state.key : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["roleId"] = state ? state.roleId : undefined; resourceInputs["secret"] = state ? state.secret : undefined; resourceInputs["timeouts"] = state ? state.timeouts : undefined; } else { - const args = argsOrState as IAMAPIKeyArgs | undefined; + const args = argsOrState as IamApiKeyArgs | undefined; if ((!args || args.roleId === undefined) && !opts.urn) { throw new Error("Missing required property 'roleId'"); } @@ -84,14 +84,14 @@ export class IAMAPIKey extends pulumi.CustomResource { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["secret"] }; opts = pulumi.mergeOptions(opts, secretOpts); - super(IAMAPIKey.__pulumiType, name, resourceInputs, opts); + super(IamApiKey.__pulumiType, name, resourceInputs, opts); } } /** - * Input properties used for looking up and filtering IAMAPIKey resources. + * Input properties used for looking up and filtering IamApiKey resources. */ -export interface IAMAPIKeyState { +export interface IamApiKeyState { /** * The IAM API Key to match. */ @@ -108,13 +108,13 @@ export interface IAMAPIKeyState { * Secret for the IAM API Key. */ secret?: pulumi.Input; - timeouts?: pulumi.Input; + timeouts?: pulumi.Input; } /** - * The set of arguments for constructing a IAMAPIKey resource. + * The set of arguments for constructing a IamApiKey resource. */ -export interface IAMAPIKeyArgs { +export interface IamApiKeyArgs { /** * ❗ IAM API Key name. */ @@ -123,5 +123,5 @@ export interface IAMAPIKeyArgs { * ❗ IAM API role ID. */ roleId: pulumi.Input; - timeouts?: pulumi.Input; + timeouts?: pulumi.Input; } diff --git a/sdk/nodejs/iamorgPolicy.ts b/sdk/nodejs/iamOrgPolicy.ts similarity index 68% rename from sdk/nodejs/iamorgPolicy.ts rename to sdk/nodejs/iamOrgPolicy.ts index 8bcb9f01..b729780b 100644 --- a/sdk/nodejs/iamorgPolicy.ts +++ b/sdk/nodejs/iamOrgPolicy.ts @@ -6,9 +6,9 @@ import * as inputs from "./types/input"; import * as outputs from "./types/output"; import * as utilities from "./utilities"; -export class IAMOrgPolicy extends pulumi.CustomResource { +export class IamOrgPolicy extends pulumi.CustomResource { /** - * Get an existing IAMOrgPolicy resource's state with the given name, ID, and optional extra + * Get an existing IamOrgPolicy 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. @@ -16,22 +16,22 @@ export class IAMOrgPolicy extends pulumi.CustomResource { * @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?: IAMOrgPolicyState, opts?: pulumi.CustomResourceOptions): IAMOrgPolicy { - return new IAMOrgPolicy(name, state, { ...opts, id: id }); + public static get(name: string, id: pulumi.Input, state?: IamOrgPolicyState, opts?: pulumi.CustomResourceOptions): IamOrgPolicy { + return new IamOrgPolicy(name, state, { ...opts, id: id }); } /** @internal */ - public static readonly __pulumiType = 'exoscale:index/iAMOrgPolicy:IAMOrgPolicy'; + public static readonly __pulumiType = 'exoscale:index/iamOrgPolicy:IamOrgPolicy'; /** - * Returns true if the given object is an instance of IAMOrgPolicy. This is designed to work even + * Returns true if the given object is an instance of IamOrgPolicy. 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 IAMOrgPolicy { + public static isInstance(obj: any): obj is IamOrgPolicy { if (obj === undefined || obj === null) { return false; } - return obj['__pulumiType'] === IAMOrgPolicy.__pulumiType; + return obj['__pulumiType'] === IamOrgPolicy.__pulumiType; } /** @@ -41,27 +41,27 @@ export class IAMOrgPolicy extends pulumi.CustomResource { /** * IAM policy services. */ - public readonly services!: pulumi.Output<{[key: string]: outputs.IAMOrgPolicyServices}>; - public readonly timeouts!: pulumi.Output; + public readonly services!: pulumi.Output<{[key: string]: outputs.IamOrgPolicyServices}>; + public readonly timeouts!: pulumi.Output; /** - * Create a IAMOrgPolicy resource with the given unique name, arguments, and options. + * Create a IamOrgPolicy 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. */ - constructor(name: string, args: IAMOrgPolicyArgs, opts?: pulumi.CustomResourceOptions) - constructor(name: string, argsOrState?: IAMOrgPolicyArgs | IAMOrgPolicyState, opts?: pulumi.CustomResourceOptions) { + constructor(name: string, args: IamOrgPolicyArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: IamOrgPolicyArgs | IamOrgPolicyState, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; if (opts.id) { - const state = argsOrState as IAMOrgPolicyState | undefined; + const state = argsOrState as IamOrgPolicyState | undefined; resourceInputs["defaultServiceStrategy"] = state ? state.defaultServiceStrategy : undefined; resourceInputs["services"] = state ? state.services : undefined; resourceInputs["timeouts"] = state ? state.timeouts : undefined; } else { - const args = argsOrState as IAMOrgPolicyArgs | undefined; + const args = argsOrState as IamOrgPolicyArgs | undefined; if ((!args || args.defaultServiceStrategy === undefined) && !opts.urn) { throw new Error("Missing required property 'defaultServiceStrategy'"); } @@ -73,14 +73,14 @@ export class IAMOrgPolicy extends pulumi.CustomResource { resourceInputs["timeouts"] = args ? args.timeouts : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - super(IAMOrgPolicy.__pulumiType, name, resourceInputs, opts); + super(IamOrgPolicy.__pulumiType, name, resourceInputs, opts); } } /** - * Input properties used for looking up and filtering IAMOrgPolicy resources. + * Input properties used for looking up and filtering IamOrgPolicy resources. */ -export interface IAMOrgPolicyState { +export interface IamOrgPolicyState { /** * Default service strategy (`allow` or `deny`). */ @@ -88,14 +88,14 @@ export interface IAMOrgPolicyState { /** * IAM policy services. */ - services?: pulumi.Input<{[key: string]: pulumi.Input}>; - timeouts?: pulumi.Input; + services?: pulumi.Input<{[key: string]: pulumi.Input}>; + timeouts?: pulumi.Input; } /** - * The set of arguments for constructing a IAMOrgPolicy resource. + * The set of arguments for constructing a IamOrgPolicy resource. */ -export interface IAMOrgPolicyArgs { +export interface IamOrgPolicyArgs { /** * Default service strategy (`allow` or `deny`). */ @@ -103,6 +103,6 @@ export interface IAMOrgPolicyArgs { /** * IAM policy services. */ - services: pulumi.Input<{[key: string]: pulumi.Input}>; - timeouts?: pulumi.Input; + services: pulumi.Input<{[key: string]: pulumi.Input}>; + timeouts?: pulumi.Input; } diff --git a/sdk/nodejs/iamrole.ts b/sdk/nodejs/iamRole.ts similarity index 74% rename from sdk/nodejs/iamrole.ts rename to sdk/nodejs/iamRole.ts index 582f4cb4..4d710bfd 100644 --- a/sdk/nodejs/iamrole.ts +++ b/sdk/nodejs/iamRole.ts @@ -9,9 +9,9 @@ import * as utilities from "./utilities"; /** * Manage Exoscale [IAM](https://community.exoscale.com/documentation/iam/) Role. */ -export class IAMRole extends pulumi.CustomResource { +export class IamRole extends pulumi.CustomResource { /** - * Get an existing IAMRole resource's state with the given name, ID, and optional extra + * Get an existing IamRole 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. @@ -19,22 +19,22 @@ export class IAMRole extends pulumi.CustomResource { * @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?: IAMRoleState, opts?: pulumi.CustomResourceOptions): IAMRole { - return new IAMRole(name, state, { ...opts, id: id }); + public static get(name: string, id: pulumi.Input, state?: IamRoleState, opts?: pulumi.CustomResourceOptions): IamRole { + return new IamRole(name, state, { ...opts, id: id }); } /** @internal */ - public static readonly __pulumiType = 'exoscale:index/iAMRole:IAMRole'; + public static readonly __pulumiType = 'exoscale:index/iamRole:IamRole'; /** - * Returns true if the given object is an instance of IAMRole. This is designed to work even + * Returns true if the given object is an instance of IamRole. 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 IAMRole { + public static isInstance(obj: any): obj is IamRole { if (obj === undefined || obj === null) { return false; } - return obj['__pulumiType'] === IAMRole.__pulumiType; + return obj['__pulumiType'] === IamRole.__pulumiType; } /** @@ -50,7 +50,7 @@ export class IAMRole extends pulumi.CustomResource { */ public readonly labels!: pulumi.Output<{[key: string]: string}>; /** - * Name of IAM Role. + * ❗Name of IAM Role. */ public readonly name!: pulumi.Output; /** @@ -60,22 +60,22 @@ export class IAMRole extends pulumi.CustomResource { /** * IAM Policy. */ - public readonly policy!: pulumi.Output; - public readonly timeouts!: pulumi.Output; + public readonly policy!: pulumi.Output; + public readonly timeouts!: pulumi.Output; /** - * Create a IAMRole resource with the given unique name, arguments, and options. + * Create a IamRole 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. */ - constructor(name: string, args?: IAMRoleArgs, opts?: pulumi.CustomResourceOptions) - constructor(name: string, argsOrState?: IAMRoleArgs | IAMRoleState, opts?: pulumi.CustomResourceOptions) { + constructor(name: string, args?: IamRoleArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: IamRoleArgs | IamRoleState, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; if (opts.id) { - const state = argsOrState as IAMRoleState | undefined; + const state = argsOrState as IamRoleState | undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["editable"] = state ? state.editable : undefined; resourceInputs["labels"] = state ? state.labels : undefined; @@ -84,7 +84,7 @@ export class IAMRole extends pulumi.CustomResource { resourceInputs["policy"] = state ? state.policy : undefined; resourceInputs["timeouts"] = state ? state.timeouts : undefined; } else { - const args = argsOrState as IAMRoleArgs | undefined; + const args = argsOrState as IamRoleArgs | undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["editable"] = args ? args.editable : undefined; resourceInputs["labels"] = args ? args.labels : undefined; @@ -94,14 +94,14 @@ export class IAMRole extends pulumi.CustomResource { resourceInputs["timeouts"] = args ? args.timeouts : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - super(IAMRole.__pulumiType, name, resourceInputs, opts); + super(IamRole.__pulumiType, name, resourceInputs, opts); } } /** - * Input properties used for looking up and filtering IAMRole resources. + * Input properties used for looking up and filtering IamRole resources. */ -export interface IAMRoleState { +export interface IamRoleState { /** * A free-form text describing the IAM Role */ @@ -115,7 +115,7 @@ export interface IAMRoleState { */ labels?: pulumi.Input<{[key: string]: pulumi.Input}>; /** - * Name of IAM Role. + * ❗Name of IAM Role. */ name?: pulumi.Input; /** @@ -125,14 +125,14 @@ export interface IAMRoleState { /** * IAM Policy. */ - policy?: pulumi.Input; - timeouts?: pulumi.Input; + policy?: pulumi.Input; + timeouts?: pulumi.Input; } /** - * The set of arguments for constructing a IAMRole resource. + * The set of arguments for constructing a IamRole resource. */ -export interface IAMRoleArgs { +export interface IamRoleArgs { /** * A free-form text describing the IAM Role */ @@ -146,7 +146,7 @@ export interface IAMRoleArgs { */ labels?: pulumi.Input<{[key: string]: pulumi.Input}>; /** - * Name of IAM Role. + * ❗Name of IAM Role. */ name?: pulumi.Input; /** @@ -156,6 +156,6 @@ export interface IAMRoleArgs { /** * IAM Policy. */ - policy?: pulumi.Input; - timeouts?: pulumi.Input; + policy?: pulumi.Input; + timeouts?: pulumi.Input; } diff --git a/sdk/nodejs/index.ts b/sdk/nodejs/index.ts index 2b50f743..ee440421 100644 --- a/sdk/nodejs/index.ts +++ b/sdk/nodejs/index.ts @@ -30,10 +30,10 @@ export type DomainRecord = import("./domainRecord").DomainRecord; export const DomainRecord: typeof import("./domainRecord").DomainRecord = null as any; utilities.lazyLoad(exports, ["DomainRecord"], () => require("./domainRecord")); -export { ElasticIPArgs, ElasticIPState } from "./elasticIP"; -export type ElasticIP = import("./elasticIP").ElasticIP; -export const ElasticIP: typeof import("./elasticIP").ElasticIP = null as any; -utilities.lazyLoad(exports, ["ElasticIP"], () => require("./elasticIP")); +export { ElasticIpArgs, ElasticIpState } from "./elasticIp"; +export type ElasticIp = import("./elasticIp").ElasticIp; +export const ElasticIp: typeof import("./elasticIp").ElasticIp = null as any; +utilities.lazyLoad(exports, ["ElasticIp"], () => require("./elasticIp")); export { GetAntiAffinityGroupArgs, GetAntiAffinityGroupResult, GetAntiAffinityGroupOutputArgs } from "./getAntiAffinityGroup"; export const getAntiAffinityGroup: typeof import("./getAntiAffinityGroup").getAntiAffinityGroup = null as any; @@ -50,10 +50,10 @@ export const getComputeInstanceList: typeof import("./getComputeInstanceList").g export const getComputeInstanceListOutput: typeof import("./getComputeInstanceList").getComputeInstanceListOutput = null as any; utilities.lazyLoad(exports, ["getComputeInstanceList","getComputeInstanceListOutput"], () => require("./getComputeInstanceList")); -export { GetDatabaseURIArgs, GetDatabaseURIResult, GetDatabaseURIOutputArgs } from "./getDatabaseURI"; -export const getDatabaseURI: typeof import("./getDatabaseURI").getDatabaseURI = null as any; -export const getDatabaseURIOutput: typeof import("./getDatabaseURI").getDatabaseURIOutput = null as any; -utilities.lazyLoad(exports, ["getDatabaseURI","getDatabaseURIOutput"], () => require("./getDatabaseURI")); +export { GetDatabaseUriArgs, GetDatabaseUriResult, GetDatabaseUriOutputArgs } from "./getDatabaseUri"; +export const getDatabaseUri: typeof import("./getDatabaseUri").getDatabaseUri = null as any; +export const getDatabaseUriOutput: typeof import("./getDatabaseUri").getDatabaseUriOutput = null as any; +utilities.lazyLoad(exports, ["getDatabaseUri","getDatabaseUriOutput"], () => require("./getDatabaseUri")); export { GetDomainArgs, GetDomainResult, GetDomainOutputArgs } from "./getDomain"; export const getDomain: typeof import("./getDomain").getDomain = null as any; @@ -65,25 +65,25 @@ export const getDomainRecord: typeof import("./getDomainRecord").getDomainRecord export const getDomainRecordOutput: typeof import("./getDomainRecord").getDomainRecordOutput = null as any; utilities.lazyLoad(exports, ["getDomainRecord","getDomainRecordOutput"], () => require("./getDomainRecord")); -export { GetElasticIPArgs, GetElasticIPResult, GetElasticIPOutputArgs } from "./getElasticIP"; -export const getElasticIP: typeof import("./getElasticIP").getElasticIP = null as any; -export const getElasticIPOutput: typeof import("./getElasticIP").getElasticIPOutput = null as any; -utilities.lazyLoad(exports, ["getElasticIP","getElasticIPOutput"], () => require("./getElasticIP")); +export { GetElasticIpArgs, GetElasticIpResult, GetElasticIpOutputArgs } from "./getElasticIp"; +export const getElasticIp: typeof import("./getElasticIp").getElasticIp = null as any; +export const getElasticIpOutput: typeof import("./getElasticIp").getElasticIpOutput = null as any; +utilities.lazyLoad(exports, ["getElasticIp","getElasticIpOutput"], () => require("./getElasticIp")); -export { GetIAMAPIKeyArgs, GetIAMAPIKeyResult, GetIAMAPIKeyOutputArgs } from "./getIAMAPIKey"; -export const getIAMAPIKey: typeof import("./getIAMAPIKey").getIAMAPIKey = null as any; -export const getIAMAPIKeyOutput: typeof import("./getIAMAPIKey").getIAMAPIKeyOutput = null as any; -utilities.lazyLoad(exports, ["getIAMAPIKey","getIAMAPIKeyOutput"], () => require("./getIAMAPIKey")); +export { GetIamApiKeyArgs, GetIamApiKeyResult, GetIamApiKeyOutputArgs } from "./getIamApiKey"; +export const getIamApiKey: typeof import("./getIamApiKey").getIamApiKey = null as any; +export const getIamApiKeyOutput: typeof import("./getIamApiKey").getIamApiKeyOutput = null as any; +utilities.lazyLoad(exports, ["getIamApiKey","getIamApiKeyOutput"], () => require("./getIamApiKey")); -export { GetIAMOrgPolicyArgs, GetIAMOrgPolicyResult, GetIAMOrgPolicyOutputArgs } from "./getIAMOrgPolicy"; -export const getIAMOrgPolicy: typeof import("./getIAMOrgPolicy").getIAMOrgPolicy = null as any; -export const getIAMOrgPolicyOutput: typeof import("./getIAMOrgPolicy").getIAMOrgPolicyOutput = null as any; -utilities.lazyLoad(exports, ["getIAMOrgPolicy","getIAMOrgPolicyOutput"], () => require("./getIAMOrgPolicy")); +export { GetIamOrgPolicyArgs, GetIamOrgPolicyResult, GetIamOrgPolicyOutputArgs } from "./getIamOrgPolicy"; +export const getIamOrgPolicy: typeof import("./getIamOrgPolicy").getIamOrgPolicy = null as any; +export const getIamOrgPolicyOutput: typeof import("./getIamOrgPolicy").getIamOrgPolicyOutput = null as any; +utilities.lazyLoad(exports, ["getIamOrgPolicy","getIamOrgPolicyOutput"], () => require("./getIamOrgPolicy")); -export { GetIAMRoleArgs, GetIAMRoleResult, GetIAMRoleOutputArgs } from "./getIAMRole"; -export const getIAMRole: typeof import("./getIAMRole").getIAMRole = null as any; -export const getIAMRoleOutput: typeof import("./getIAMRole").getIAMRoleOutput = null as any; -utilities.lazyLoad(exports, ["getIAMRole","getIAMRoleOutput"], () => require("./getIAMRole")); +export { GetIamRoleArgs, GetIamRoleResult, GetIamRoleOutputArgs } from "./getIamRole"; +export const getIamRole: typeof import("./getIamRole").getIamRole = null as any; +export const getIamRoleOutput: typeof import("./getIamRole").getIamRoleOutput = null as any; +utilities.lazyLoad(exports, ["getIamRole","getIamRoleOutput"], () => require("./getIamRole")); export { GetInstancePoolArgs, GetInstancePoolResult, GetInstancePoolOutputArgs } from "./getInstancePool"; export const getInstancePool: typeof import("./getInstancePool").getInstancePool = null as any; @@ -95,46 +95,46 @@ export const getInstancePoolList: typeof import("./getInstancePoolList").getInst export const getInstancePoolListOutput: typeof import("./getInstancePoolList").getInstancePoolListOutput = null as any; utilities.lazyLoad(exports, ["getInstancePoolList","getInstancePoolListOutput"], () => require("./getInstancePoolList")); -export { GetNLBArgs, GetNLBResult, GetNLBOutputArgs } from "./getNLB"; -export const getNLB: typeof import("./getNLB").getNLB = null as any; -export const getNLBOutput: typeof import("./getNLB").getNLBOutput = null as any; -utilities.lazyLoad(exports, ["getNLB","getNLBOutput"], () => require("./getNLB")); +export { GetNlbArgs, GetNlbResult, GetNlbOutputArgs } from "./getNlb"; +export const getNlb: typeof import("./getNlb").getNlb = null as any; +export const getNlbOutput: typeof import("./getNlb").getNlbOutput = null as any; +utilities.lazyLoad(exports, ["getNlb","getNlbOutput"], () => require("./getNlb")); -export { GetNLBServiceListArgs, GetNLBServiceListResult, GetNLBServiceListOutputArgs } from "./getNLBServiceList"; -export const getNLBServiceList: typeof import("./getNLBServiceList").getNLBServiceList = null as any; -export const getNLBServiceListOutput: typeof import("./getNLBServiceList").getNLBServiceListOutput = null as any; -utilities.lazyLoad(exports, ["getNLBServiceList","getNLBServiceListOutput"], () => require("./getNLBServiceList")); +export { GetNlbServiceListArgs, GetNlbServiceListResult, GetNlbServiceListOutputArgs } from "./getNlbServiceList"; +export const getNlbServiceList: typeof import("./getNlbServiceList").getNlbServiceList = null as any; +export const getNlbServiceListOutput: typeof import("./getNlbServiceList").getNlbServiceListOutput = null as any; +utilities.lazyLoad(exports, ["getNlbServiceList","getNlbServiceListOutput"], () => require("./getNlbServiceList")); export { GetPrivateNetworkArgs, GetPrivateNetworkResult, GetPrivateNetworkOutputArgs } from "./getPrivateNetwork"; export const getPrivateNetwork: typeof import("./getPrivateNetwork").getPrivateNetwork = null as any; export const getPrivateNetworkOutput: typeof import("./getPrivateNetwork").getPrivateNetworkOutput = null as any; utilities.lazyLoad(exports, ["getPrivateNetwork","getPrivateNetworkOutput"], () => require("./getPrivateNetwork")); -export { GetSKSClusterArgs, GetSKSClusterResult, GetSKSClusterOutputArgs } from "./getSKSCluster"; -export const getSKSCluster: typeof import("./getSKSCluster").getSKSCluster = null as any; -export const getSKSClusterOutput: typeof import("./getSKSCluster").getSKSClusterOutput = null as any; -utilities.lazyLoad(exports, ["getSKSCluster","getSKSClusterOutput"], () => require("./getSKSCluster")); - -export { GetSKSClusterListArgs, GetSKSClusterListResult, GetSKSClusterListOutputArgs } from "./getSKSClusterList"; -export const getSKSClusterList: typeof import("./getSKSClusterList").getSKSClusterList = null as any; -export const getSKSClusterListOutput: typeof import("./getSKSClusterList").getSKSClusterListOutput = null as any; -utilities.lazyLoad(exports, ["getSKSClusterList","getSKSClusterListOutput"], () => require("./getSKSClusterList")); - -export { GetSKSNodepoolArgs, GetSKSNodepoolResult, GetSKSNodepoolOutputArgs } from "./getSKSNodepool"; -export const getSKSNodepool: typeof import("./getSKSNodepool").getSKSNodepool = null as any; -export const getSKSNodepoolOutput: typeof import("./getSKSNodepool").getSKSNodepoolOutput = null as any; -utilities.lazyLoad(exports, ["getSKSNodepool","getSKSNodepoolOutput"], () => require("./getSKSNodepool")); - -export { GetSKSNodepoolListArgs, GetSKSNodepoolListResult, GetSKSNodepoolListOutputArgs } from "./getSKSNodepoolList"; -export const getSKSNodepoolList: typeof import("./getSKSNodepoolList").getSKSNodepoolList = null as any; -export const getSKSNodepoolListOutput: typeof import("./getSKSNodepoolList").getSKSNodepoolListOutput = null as any; -utilities.lazyLoad(exports, ["getSKSNodepoolList","getSKSNodepoolListOutput"], () => require("./getSKSNodepoolList")); - export { GetSecurityGroupArgs, GetSecurityGroupResult, GetSecurityGroupOutputArgs } from "./getSecurityGroup"; export const getSecurityGroup: typeof import("./getSecurityGroup").getSecurityGroup = null as any; export const getSecurityGroupOutput: typeof import("./getSecurityGroup").getSecurityGroupOutput = null as any; utilities.lazyLoad(exports, ["getSecurityGroup","getSecurityGroupOutput"], () => require("./getSecurityGroup")); +export { GetSksClusterArgs, GetSksClusterResult, GetSksClusterOutputArgs } from "./getSksCluster"; +export const getSksCluster: typeof import("./getSksCluster").getSksCluster = null as any; +export const getSksClusterOutput: typeof import("./getSksCluster").getSksClusterOutput = null as any; +utilities.lazyLoad(exports, ["getSksCluster","getSksClusterOutput"], () => require("./getSksCluster")); + +export { GetSksClusterListArgs, GetSksClusterListResult, GetSksClusterListOutputArgs } from "./getSksClusterList"; +export const getSksClusterList: typeof import("./getSksClusterList").getSksClusterList = null as any; +export const getSksClusterListOutput: typeof import("./getSksClusterList").getSksClusterListOutput = null as any; +utilities.lazyLoad(exports, ["getSksClusterList","getSksClusterListOutput"], () => require("./getSksClusterList")); + +export { GetSksNodepoolArgs, GetSksNodepoolResult, GetSksNodepoolOutputArgs } from "./getSksNodepool"; +export const getSksNodepool: typeof import("./getSksNodepool").getSksNodepool = null as any; +export const getSksNodepoolOutput: typeof import("./getSksNodepool").getSksNodepoolOutput = null as any; +utilities.lazyLoad(exports, ["getSksNodepool","getSksNodepoolOutput"], () => require("./getSksNodepool")); + +export { GetSksNodepoolListArgs, GetSksNodepoolListResult, GetSksNodepoolListOutputArgs } from "./getSksNodepoolList"; +export const getSksNodepoolList: typeof import("./getSksNodepoolList").getSksNodepoolList = null as any; +export const getSksNodepoolListOutput: typeof import("./getSksNodepoolList").getSksNodepoolListOutput = null as any; +utilities.lazyLoad(exports, ["getSksNodepoolList","getSksNodepoolListOutput"], () => require("./getSksNodepoolList")); + export { GetTemplateArgs, GetTemplateResult, GetTemplateOutputArgs } from "./getTemplate"; export const getTemplate: typeof import("./getTemplate").getTemplate = null as any; export const getTemplateOutput: typeof import("./getTemplate").getTemplateOutput = null as any; @@ -145,40 +145,40 @@ export const getZones: typeof import("./getZones").getZones = null as any; export const getZonesOutput: typeof import("./getZones").getZonesOutput = null as any; utilities.lazyLoad(exports, ["getZones","getZonesOutput"], () => require("./getZones")); -export { IAMAccessKeyArgs, IAMAccessKeyState } from "./iamaccessKey"; -export type IAMAccessKey = import("./iamaccessKey").IAMAccessKey; -export const IAMAccessKey: typeof import("./iamaccessKey").IAMAccessKey = null as any; -utilities.lazyLoad(exports, ["IAMAccessKey"], () => require("./iamaccessKey")); +export { IamAccessKeyArgs, IamAccessKeyState } from "./iamAccessKey"; +export type IamAccessKey = import("./iamAccessKey").IamAccessKey; +export const IamAccessKey: typeof import("./iamAccessKey").IamAccessKey = null as any; +utilities.lazyLoad(exports, ["IamAccessKey"], () => require("./iamAccessKey")); -export { IAMAPIKeyArgs, IAMAPIKeyState } from "./iamapikey"; -export type IAMAPIKey = import("./iamapikey").IAMAPIKey; -export const IAMAPIKey: typeof import("./iamapikey").IAMAPIKey = null as any; -utilities.lazyLoad(exports, ["IAMAPIKey"], () => require("./iamapikey")); +export { IamApiKeyArgs, IamApiKeyState } from "./iamApiKey"; +export type IamApiKey = import("./iamApiKey").IamApiKey; +export const IamApiKey: typeof import("./iamApiKey").IamApiKey = null as any; +utilities.lazyLoad(exports, ["IamApiKey"], () => require("./iamApiKey")); -export { IAMOrgPolicyArgs, IAMOrgPolicyState } from "./iamorgPolicy"; -export type IAMOrgPolicy = import("./iamorgPolicy").IAMOrgPolicy; -export const IAMOrgPolicy: typeof import("./iamorgPolicy").IAMOrgPolicy = null as any; -utilities.lazyLoad(exports, ["IAMOrgPolicy"], () => require("./iamorgPolicy")); +export { IamOrgPolicyArgs, IamOrgPolicyState } from "./iamOrgPolicy"; +export type IamOrgPolicy = import("./iamOrgPolicy").IamOrgPolicy; +export const IamOrgPolicy: typeof import("./iamOrgPolicy").IamOrgPolicy = null as any; +utilities.lazyLoad(exports, ["IamOrgPolicy"], () => require("./iamOrgPolicy")); -export { IAMRoleArgs, IAMRoleState } from "./iamrole"; -export type IAMRole = import("./iamrole").IAMRole; -export const IAMRole: typeof import("./iamrole").IAMRole = null as any; -utilities.lazyLoad(exports, ["IAMRole"], () => require("./iamrole")); +export { IamRoleArgs, IamRoleState } from "./iamRole"; +export type IamRole = import("./iamRole").IamRole; +export const IamRole: typeof import("./iamRole").IamRole = null as any; +utilities.lazyLoad(exports, ["IamRole"], () => require("./iamRole")); export { InstancePoolArgs, InstancePoolState } from "./instancePool"; export type InstancePool = import("./instancePool").InstancePool; export const InstancePool: typeof import("./instancePool").InstancePool = null as any; utilities.lazyLoad(exports, ["InstancePool"], () => require("./instancePool")); -export { NLBArgs, NLBState } from "./nlb"; -export type NLB = import("./nlb").NLB; -export const NLB: typeof import("./nlb").NLB = null as any; -utilities.lazyLoad(exports, ["NLB"], () => require("./nlb")); +export { NlbArgs, NlbState } from "./nlb"; +export type Nlb = import("./nlb").Nlb; +export const Nlb: typeof import("./nlb").Nlb = null as any; +utilities.lazyLoad(exports, ["Nlb"], () => require("./nlb")); -export { NLBServiceArgs, NLBServiceState } from "./nlbservice"; -export type NLBService = import("./nlbservice").NLBService; -export const NLBService: typeof import("./nlbservice").NLBService = null as any; -utilities.lazyLoad(exports, ["NLBService"], () => require("./nlbservice")); +export { NlbServiceArgs, NlbServiceState } from "./nlbService"; +export type NlbService = import("./nlbService").NlbService; +export const NlbService: typeof import("./nlbService").NlbService = null as any; +utilities.lazyLoad(exports, ["NlbService"], () => require("./nlbService")); export { PrivateNetworkArgs, PrivateNetworkState } from "./privateNetwork"; export type PrivateNetwork = import("./privateNetwork").PrivateNetwork; @@ -200,25 +200,25 @@ export type SecurityGroupRule = import("./securityGroupRule").SecurityGroupRule; export const SecurityGroupRule: typeof import("./securityGroupRule").SecurityGroupRule = null as any; utilities.lazyLoad(exports, ["SecurityGroupRule"], () => require("./securityGroupRule")); -export { SKSClusterArgs, SKSClusterState } from "./skscluster"; -export type SKSCluster = import("./skscluster").SKSCluster; -export const SKSCluster: typeof import("./skscluster").SKSCluster = null as any; -utilities.lazyLoad(exports, ["SKSCluster"], () => require("./skscluster")); +export { SksClusterArgs, SksClusterState } from "./sksCluster"; +export type SksCluster = import("./sksCluster").SksCluster; +export const SksCluster: typeof import("./sksCluster").SksCluster = null as any; +utilities.lazyLoad(exports, ["SksCluster"], () => require("./sksCluster")); -export { SKSKubeconfigArgs, SKSKubeconfigState } from "./skskubeconfig"; -export type SKSKubeconfig = import("./skskubeconfig").SKSKubeconfig; -export const SKSKubeconfig: typeof import("./skskubeconfig").SKSKubeconfig = null as any; -utilities.lazyLoad(exports, ["SKSKubeconfig"], () => require("./skskubeconfig")); +export { SksKubeconfigArgs, SksKubeconfigState } from "./sksKubeconfig"; +export type SksKubeconfig = import("./sksKubeconfig").SksKubeconfig; +export const SksKubeconfig: typeof import("./sksKubeconfig").SksKubeconfig = null as any; +utilities.lazyLoad(exports, ["SksKubeconfig"], () => require("./sksKubeconfig")); -export { SKSNodepoolArgs, SKSNodepoolState } from "./sksnodepool"; -export type SKSNodepool = import("./sksnodepool").SKSNodepool; -export const SKSNodepool: typeof import("./sksnodepool").SKSNodepool = null as any; -utilities.lazyLoad(exports, ["SKSNodepool"], () => require("./sksnodepool")); +export { SksNodepoolArgs, SksNodepoolState } from "./sksNodepool"; +export type SksNodepool = import("./sksNodepool").SksNodepool; +export const SksNodepool: typeof import("./sksNodepool").SksNodepool = null as any; +utilities.lazyLoad(exports, ["SksNodepool"], () => require("./sksNodepool")); -export { SSHKeyArgs, SSHKeyState } from "./sshkey"; -export type SSHKey = import("./sshkey").SSHKey; -export const SSHKey: typeof import("./sshkey").SSHKey = null as any; -utilities.lazyLoad(exports, ["SSHKey"], () => require("./sshkey")); +export { SshKeyArgs, SshKeyState } from "./sshKey"; +export type SshKey = import("./sshKey").SshKey; +export const SshKey: typeof import("./sshKey").SshKey = null as any; +utilities.lazyLoad(exports, ["SshKey"], () => require("./sshKey")); // Export sub-modules: @@ -244,36 +244,36 @@ const _module = { return new Domain(name, undefined, { urn }) case "exoscale:index/domainRecord:DomainRecord": return new DomainRecord(name, undefined, { urn }) - case "exoscale:index/elasticIP:ElasticIP": - return new ElasticIP(name, undefined, { urn }) - case "exoscale:index/iAMAPIKey:IAMAPIKey": - return new IAMAPIKey(name, undefined, { urn }) - case "exoscale:index/iAMAccessKey:IAMAccessKey": - return new IAMAccessKey(name, undefined, { urn }) - case "exoscale:index/iAMOrgPolicy:IAMOrgPolicy": - return new IAMOrgPolicy(name, undefined, { urn }) - case "exoscale:index/iAMRole:IAMRole": - return new IAMRole(name, undefined, { urn }) + case "exoscale:index/elasticIp:ElasticIp": + return new ElasticIp(name, undefined, { urn }) + case "exoscale:index/iamAccessKey:IamAccessKey": + return new IamAccessKey(name, undefined, { urn }) + case "exoscale:index/iamApiKey:IamApiKey": + return new IamApiKey(name, undefined, { urn }) + case "exoscale:index/iamOrgPolicy:IamOrgPolicy": + return new IamOrgPolicy(name, undefined, { urn }) + case "exoscale:index/iamRole:IamRole": + return new IamRole(name, undefined, { urn }) case "exoscale:index/instancePool:InstancePool": return new InstancePool(name, undefined, { urn }) - case "exoscale:index/nLB:NLB": - return new NLB(name, undefined, { urn }) - case "exoscale:index/nLBService:NLBService": - return new NLBService(name, undefined, { urn }) + case "exoscale:index/nlb:Nlb": + return new Nlb(name, undefined, { urn }) + case "exoscale:index/nlbService:NlbService": + return new NlbService(name, undefined, { urn }) case "exoscale:index/privateNetwork:PrivateNetwork": return new PrivateNetwork(name, undefined, { urn }) - case "exoscale:index/sKSCluster:SKSCluster": - return new SKSCluster(name, undefined, { urn }) - case "exoscale:index/sKSKubeconfig:SKSKubeconfig": - return new SKSKubeconfig(name, undefined, { urn }) - case "exoscale:index/sKSNodepool:SKSNodepool": - return new SKSNodepool(name, undefined, { urn }) - case "exoscale:index/sSHKey:SSHKey": - return new SSHKey(name, undefined, { urn }) case "exoscale:index/securityGroup:SecurityGroup": return new SecurityGroup(name, undefined, { urn }) case "exoscale:index/securityGroupRule:SecurityGroupRule": return new SecurityGroupRule(name, undefined, { urn }) + case "exoscale:index/sksCluster:SksCluster": + return new SksCluster(name, undefined, { urn }) + case "exoscale:index/sksKubeconfig:SksKubeconfig": + return new SksKubeconfig(name, undefined, { urn }) + case "exoscale:index/sksNodepool:SksNodepool": + return new SksNodepool(name, undefined, { urn }) + case "exoscale:index/sshKey:SshKey": + return new SshKey(name, undefined, { urn }) default: throw new Error(`unknown resource type ${type}`); } @@ -284,21 +284,21 @@ pulumi.runtime.registerResourceModule("exoscale", "index/computeInstance", _modu pulumi.runtime.registerResourceModule("exoscale", "index/database", _module) pulumi.runtime.registerResourceModule("exoscale", "index/domain", _module) pulumi.runtime.registerResourceModule("exoscale", "index/domainRecord", _module) -pulumi.runtime.registerResourceModule("exoscale", "index/elasticIP", _module) -pulumi.runtime.registerResourceModule("exoscale", "index/iAMAPIKey", _module) -pulumi.runtime.registerResourceModule("exoscale", "index/iAMAccessKey", _module) -pulumi.runtime.registerResourceModule("exoscale", "index/iAMOrgPolicy", _module) -pulumi.runtime.registerResourceModule("exoscale", "index/iAMRole", _module) +pulumi.runtime.registerResourceModule("exoscale", "index/elasticIp", _module) +pulumi.runtime.registerResourceModule("exoscale", "index/iamAccessKey", _module) +pulumi.runtime.registerResourceModule("exoscale", "index/iamApiKey", _module) +pulumi.runtime.registerResourceModule("exoscale", "index/iamOrgPolicy", _module) +pulumi.runtime.registerResourceModule("exoscale", "index/iamRole", _module) pulumi.runtime.registerResourceModule("exoscale", "index/instancePool", _module) -pulumi.runtime.registerResourceModule("exoscale", "index/nLB", _module) -pulumi.runtime.registerResourceModule("exoscale", "index/nLBService", _module) +pulumi.runtime.registerResourceModule("exoscale", "index/nlb", _module) +pulumi.runtime.registerResourceModule("exoscale", "index/nlbService", _module) pulumi.runtime.registerResourceModule("exoscale", "index/privateNetwork", _module) -pulumi.runtime.registerResourceModule("exoscale", "index/sKSCluster", _module) -pulumi.runtime.registerResourceModule("exoscale", "index/sKSKubeconfig", _module) -pulumi.runtime.registerResourceModule("exoscale", "index/sKSNodepool", _module) -pulumi.runtime.registerResourceModule("exoscale", "index/sSHKey", _module) pulumi.runtime.registerResourceModule("exoscale", "index/securityGroup", _module) pulumi.runtime.registerResourceModule("exoscale", "index/securityGroupRule", _module) +pulumi.runtime.registerResourceModule("exoscale", "index/sksCluster", _module) +pulumi.runtime.registerResourceModule("exoscale", "index/sksKubeconfig", _module) +pulumi.runtime.registerResourceModule("exoscale", "index/sksNodepool", _module) +pulumi.runtime.registerResourceModule("exoscale", "index/sshKey", _module) pulumi.runtime.registerResourcePackage("exoscale", { version: utilities.getVersion(), constructProvider: (name: string, type: string, urn: string): pulumi.ProviderResource => { diff --git a/sdk/nodejs/instancePool.ts b/sdk/nodejs/instancePool.ts index 57c28d29..ba23884c 100644 --- a/sdk/nodejs/instancePool.ts +++ b/sdk/nodejs/instancePool.ts @@ -7,6 +7,33 @@ import * as outputs from "./types/output"; import * as utilities from "./utilities"; /** + * Manage Exoscale [Instance Pools](https://community.exoscale.com/documentation/compute/instance-pools/). + * + * Corresponding data sources: exoscale_instance_pool, exoscale_instance_pool_list. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumi/exoscale"; + * import * as exoscale from "@pulumiverse/exoscale"; + * + * const myTemplate = exoscale.getTemplate({ + * zone: "ch-gva-2", + * name: "Linux Ubuntu 22.04 LTS 64-bit", + * }); + * const myInstancePool = new exoscale.InstancePool("myInstancePool", { + * zone: "ch-gva-2", + * templateId: myTemplate.then(myTemplate => myTemplate.id), + * instanceType: "standard.medium", + * diskSize: 10, + * size: 3, + * }); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + * * ## Import * * An existing instance pool may be imported by `@` diff --git a/sdk/nodejs/nlb.ts b/sdk/nodejs/nlb.ts index 7a3d6e4a..6dceaadb 100644 --- a/sdk/nodejs/nlb.ts +++ b/sdk/nodejs/nlb.ts @@ -5,21 +5,39 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; /** + * Manage Exoscale [Network Load Balancers (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/). + * + * Corresponding data source: exoscale_nlb. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumiverse/exoscale"; + * + * const myNlb = new exoscale.Nlb("myNlb", {zone: "ch-gva-2"}); + * ``` + * + * Next step is to attach exoscale_nlb_service(s) to the NLB. + * + * Please refer to the examples + * directory for complete configuration examples. + * * ## Import * * An existing network load balancer (NLB) may be imported by `@`console * * ```sh - * $ pulumi import exoscale:index/nLB:NLB \ + * $ pulumi import exoscale:index/nlb:Nlb \ * ``` * * exoscale_nlb.my_nlb \ * * f81d4fae-7dec-11d0-a765-00a0c91e6bf6@ch-gva-2 */ -export class NLB extends pulumi.CustomResource { +export class Nlb extends pulumi.CustomResource { /** - * Get an existing NLB resource's state with the given name, ID, and optional extra + * Get an existing Nlb 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. @@ -27,22 +45,22 @@ export class NLB extends pulumi.CustomResource { * @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?: NLBState, opts?: pulumi.CustomResourceOptions): NLB { - return new NLB(name, state, { ...opts, id: id }); + public static get(name: string, id: pulumi.Input, state?: NlbState, opts?: pulumi.CustomResourceOptions): Nlb { + return new Nlb(name, state, { ...opts, id: id }); } /** @internal */ - public static readonly __pulumiType = 'exoscale:index/nLB:NLB'; + public static readonly __pulumiType = 'exoscale:index/nlb:Nlb'; /** - * Returns true if the given object is an instance of NLB. This is designed to work even + * Returns true if the given object is an instance of Nlb. 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 NLB { + public static isInstance(obj: any): obj is Nlb { if (obj === undefined || obj === null) { return false; } - return obj['__pulumiType'] === NLB.__pulumiType; + return obj['__pulumiType'] === Nlb.__pulumiType; } /** @@ -79,18 +97,18 @@ export class NLB extends pulumi.CustomResource { public readonly zone!: pulumi.Output; /** - * Create a NLB resource with the given unique name, arguments, and options. + * Create a Nlb 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. */ - constructor(name: string, args: NLBArgs, opts?: pulumi.CustomResourceOptions) - constructor(name: string, argsOrState?: NLBArgs | NLBState, opts?: pulumi.CustomResourceOptions) { + constructor(name: string, args: NlbArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: NlbArgs | NlbState, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; if (opts.id) { - const state = argsOrState as NLBState | undefined; + const state = argsOrState as NlbState | undefined; resourceInputs["createdAt"] = state ? state.createdAt : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["ipAddress"] = state ? state.ipAddress : undefined; @@ -100,7 +118,7 @@ export class NLB extends pulumi.CustomResource { resourceInputs["state"] = state ? state.state : undefined; resourceInputs["zone"] = state ? state.zone : undefined; } else { - const args = argsOrState as NLBArgs | undefined; + const args = argsOrState as NlbArgs | undefined; if ((!args || args.zone === undefined) && !opts.urn) { throw new Error("Missing required property 'zone'"); } @@ -114,14 +132,14 @@ export class NLB extends pulumi.CustomResource { resourceInputs["state"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - super(NLB.__pulumiType, name, resourceInputs, opts); + super(Nlb.__pulumiType, name, resourceInputs, opts); } } /** - * Input properties used for looking up and filtering NLB resources. + * Input properties used for looking up and filtering Nlb resources. */ -export interface NLBState { +export interface NlbState { /** * The NLB creation date. */ @@ -157,9 +175,9 @@ export interface NLBState { } /** - * The set of arguments for constructing a NLB resource. + * The set of arguments for constructing a Nlb resource. */ -export interface NLBArgs { +export interface NlbArgs { /** * A free-form text describing the NLB. */ diff --git a/sdk/nodejs/nlbservice.ts b/sdk/nodejs/nlbService.ts similarity index 76% rename from sdk/nodejs/nlbservice.ts rename to sdk/nodejs/nlbService.ts index 6c853d6d..3473f76b 100644 --- a/sdk/nodejs/nlbservice.ts +++ b/sdk/nodejs/nlbService.ts @@ -7,21 +7,53 @@ import * as outputs from "./types/output"; import * as utilities from "./utilities"; /** + * Manage Exoscale [Network Load Balancer (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/) Services. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumiverse/exoscale"; + * + * const myNlb = new exoscale.Nlb("myNlb", {zone: "ch-gva-2"}); + * const myNlbService = new exoscale.NlbService("myNlbService", { + * nlbId: myNlb.id, + * zone: myNlb.zone, + * instancePoolId: exoscale_instance_pool.my_instance_pool.id, + * protocol: "tcp", + * port: 443, + * targetPort: 8443, + * strategy: "round-robin", + * healthchecks: [{ + * mode: "https", + * port: 8443, + * uri: "/healthz", + * tlsSni: "example.net", + * interval: 5, + * timeout: 3, + * retries: 1, + * }], + * }); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + * * ## Import * * An existing NLB service may be imported by `/@` * * ```sh - * $ pulumi import exoscale:index/nLBService:NLBService \ + * $ pulumi import exoscale:index/nlbService:NlbService \ * ``` * * exoscale_nlb_service.my_nlb_service \ * * f81d4fae-7dec-11d0-a765-00a0c91e6bf6/9ecc6b8b-73d4-4211-8ced-f7f29bb79524@ch-gva-2 */ -export class NLBService extends pulumi.CustomResource { +export class NlbService extends pulumi.CustomResource { /** - * Get an existing NLBService resource's state with the given name, ID, and optional extra + * Get an existing NlbService 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. @@ -29,22 +61,22 @@ export class NLBService extends pulumi.CustomResource { * @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?: NLBServiceState, opts?: pulumi.CustomResourceOptions): NLBService { - return new NLBService(name, state, { ...opts, id: id }); + public static get(name: string, id: pulumi.Input, state?: NlbServiceState, opts?: pulumi.CustomResourceOptions): NlbService { + return new NlbService(name, state, { ...opts, id: id }); } /** @internal */ - public static readonly __pulumiType = 'exoscale:index/nLBService:NLBService'; + public static readonly __pulumiType = 'exoscale:index/nlbService:NlbService'; /** - * Returns true if the given object is an instance of NLBService. This is designed to work even + * Returns true if the given object is an instance of NlbService. 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 NLBService { + public static isInstance(obj: any): obj is NlbService { if (obj === undefined || obj === null) { return false; } - return obj['__pulumiType'] === NLBService.__pulumiType; + return obj['__pulumiType'] === NlbService.__pulumiType; } /** @@ -54,7 +86,7 @@ export class NLBService extends pulumi.CustomResource { /** * The service health checking configuration. */ - public readonly healthchecks!: pulumi.Output; + public readonly healthchecks!: pulumi.Output; /** * ❗ The exoscale*instance*pool (ID) to forward traffic to. */ @@ -64,7 +96,7 @@ export class NLBService extends pulumi.CustomResource { */ public readonly name!: pulumi.Output; /** - * ❗ The parent exoscale.NLB ID. + * ❗ The parent exoscale.Nlb ID. */ public readonly nlbId!: pulumi.Output; /** @@ -90,18 +122,18 @@ export class NLBService extends pulumi.CustomResource { public readonly zone!: pulumi.Output; /** - * Create a NLBService resource with the given unique name, arguments, and options. + * Create a NlbService 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. */ - constructor(name: string, args: NLBServiceArgs, opts?: pulumi.CustomResourceOptions) - constructor(name: string, argsOrState?: NLBServiceArgs | NLBServiceState, opts?: pulumi.CustomResourceOptions) { + constructor(name: string, args: NlbServiceArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: NlbServiceArgs | NlbServiceState, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; if (opts.id) { - const state = argsOrState as NLBServiceState | undefined; + const state = argsOrState as NlbServiceState | undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["healthchecks"] = state ? state.healthchecks : undefined; resourceInputs["instancePoolId"] = state ? state.instancePoolId : undefined; @@ -114,7 +146,7 @@ export class NLBService extends pulumi.CustomResource { resourceInputs["targetPort"] = state ? state.targetPort : undefined; resourceInputs["zone"] = state ? state.zone : undefined; } else { - const args = argsOrState as NLBServiceArgs | undefined; + const args = argsOrState as NlbServiceArgs | undefined; if ((!args || args.healthchecks === undefined) && !opts.urn) { throw new Error("Missing required property 'healthchecks'"); } @@ -146,14 +178,14 @@ export class NLBService extends pulumi.CustomResource { resourceInputs["state"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - super(NLBService.__pulumiType, name, resourceInputs, opts); + super(NlbService.__pulumiType, name, resourceInputs, opts); } } /** - * Input properties used for looking up and filtering NLBService resources. + * Input properties used for looking up and filtering NlbService resources. */ -export interface NLBServiceState { +export interface NlbServiceState { /** * A free-form text describing the NLB service. */ @@ -161,7 +193,7 @@ export interface NLBServiceState { /** * The service health checking configuration. */ - healthchecks?: pulumi.Input[]>; + healthchecks?: pulumi.Input[]>; /** * ❗ The exoscale*instance*pool (ID) to forward traffic to. */ @@ -171,7 +203,7 @@ export interface NLBServiceState { */ name?: pulumi.Input; /** - * ❗ The parent exoscale.NLB ID. + * ❗ The parent exoscale.Nlb ID. */ nlbId?: pulumi.Input; /** @@ -198,9 +230,9 @@ export interface NLBServiceState { } /** - * The set of arguments for constructing a NLBService resource. + * The set of arguments for constructing a NlbService resource. */ -export interface NLBServiceArgs { +export interface NlbServiceArgs { /** * A free-form text describing the NLB service. */ @@ -208,7 +240,7 @@ export interface NLBServiceArgs { /** * The service health checking configuration. */ - healthchecks: pulumi.Input[]>; + healthchecks: pulumi.Input[]>; /** * ❗ The exoscale*instance*pool (ID) to forward traffic to. */ @@ -218,7 +250,7 @@ export interface NLBServiceArgs { */ name?: pulumi.Input; /** - * ❗ The parent exoscale.NLB ID. + * ❗ The parent exoscale.Nlb ID. */ nlbId: pulumi.Input; /** diff --git a/sdk/nodejs/privateNetwork.ts b/sdk/nodejs/privateNetwork.ts index fb06bbb2..bf71131d 100644 --- a/sdk/nodejs/privateNetwork.ts +++ b/sdk/nodejs/privateNetwork.ts @@ -5,6 +5,38 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; /** + * Manage Exoscale [Private Networks](https://community.exoscale.com/documentation/compute/private-networks/). + * + * Corresponding data source: exoscale_private_network. + * + * ## Example Usage + * + * *Unmanaged* private network: + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumiverse/exoscale"; + * + * const myPrivateNetwork = new exoscale.PrivateNetwork("myPrivateNetwork", {zone: "ch-gva-2"}); + * ``` + * + * *Managed* private network: + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumiverse/exoscale"; + * + * const myManagedPrivateNetwork = new exoscale.PrivateNetwork("myManagedPrivateNetwork", { + * endIp: "10.0.0.253", + * netmask: "255.255.255.0", + * startIp: "10.0.0.20", + * zone: "ch-gva-2", + * }); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + * * ## Import * * An existing private network may be imported by `@` diff --git a/sdk/nodejs/securityGroup.ts b/sdk/nodejs/securityGroup.ts index 2d18fc02..163de0fd 100644 --- a/sdk/nodejs/securityGroup.ts +++ b/sdk/nodejs/securityGroup.ts @@ -5,6 +5,24 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; /** + * Manage Exoscale [Security Groups](https://community.exoscale.com/documentation/compute/security-groups/). + * + * Corresponding data source: exoscale_security_group. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumiverse/exoscale"; + * + * const mySecurityGroup = new exoscale.SecurityGroup("mySecurityGroup", {}); + * ``` + * + * Next step is to attach exoscale_security_group_rule(s) to the group. + * + * Please refer to the examples + * directory for complete configuration examples. + * * ## Import * * An existing security group may be imported by `` diff --git a/sdk/nodejs/securityGroupRule.ts b/sdk/nodejs/securityGroupRule.ts index bd08b621..a48a908d 100644 --- a/sdk/nodejs/securityGroupRule.ts +++ b/sdk/nodejs/securityGroupRule.ts @@ -5,6 +5,28 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; /** + * Manage Exoscale [Security Group](https://community.exoscale.com/documentation/compute/security-groups/) Rules. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumiverse/exoscale"; + * + * const mySecurityGroup = new exoscale.SecurityGroup("mySecurityGroup", {}); + * const mySecurityGroupRule = new exoscale.SecurityGroupRule("mySecurityGroupRule", { + * securityGroupId: mySecurityGroup.id, + * type: "INGRESS", + * protocol: "TCP", + * cidr: "0.0.0.0/0", + * startPort: 80, + * endPort: 80, + * }); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + * * ## Import * * An existing security group rule may be imported by `/` diff --git a/sdk/nodejs/skscluster.ts b/sdk/nodejs/sksCluster.ts similarity index 87% rename from sdk/nodejs/skscluster.ts rename to sdk/nodejs/sksCluster.ts index 8edb02f5..6067c554 100644 --- a/sdk/nodejs/skscluster.ts +++ b/sdk/nodejs/sksCluster.ts @@ -7,21 +7,38 @@ import * as outputs from "./types/output"; import * as utilities from "./utilities"; /** + * Manage Exoscale [Scalable Kubernetes Service (SKS)](https://community.exoscale.com/documentation/sks/) Clusters. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumiverse/exoscale"; + * + * const mySksCluster = new exoscale.SksCluster("mySksCluster", {zone: "ch-gva-2"}); + * export const mySksClusterEndpoint = mySksCluster.endpoint; + * ``` + * + * Next step is to attach exoscale_sks_nodepool(s) to the cluster. + * + * Please refer to the examples + * directory for complete configuration examples. + * * ## Import * * An existing SKS cluster may be imported by `@` * * ```sh - * $ pulumi import exoscale:index/sKSCluster:SKSCluster \ + * $ pulumi import exoscale:index/sksCluster:SksCluster \ * ``` * * exoscale_sks_cluster.my_sks_cluster \ * * f81d4fae-7dec-11d0-a765-00a0c91e6bf6@ch-gva-2 */ -export class SKSCluster extends pulumi.CustomResource { +export class SksCluster extends pulumi.CustomResource { /** - * Get an existing SKSCluster resource's state with the given name, ID, and optional extra + * Get an existing SksCluster 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. @@ -29,22 +46,22 @@ export class SKSCluster extends pulumi.CustomResource { * @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?: SKSClusterState, opts?: pulumi.CustomResourceOptions): SKSCluster { - return new SKSCluster(name, state, { ...opts, id: id }); + public static get(name: string, id: pulumi.Input, state?: SksClusterState, opts?: pulumi.CustomResourceOptions): SksCluster { + return new SksCluster(name, state, { ...opts, id: id }); } /** @internal */ - public static readonly __pulumiType = 'exoscale:index/sKSCluster:SKSCluster'; + public static readonly __pulumiType = 'exoscale:index/sksCluster:SksCluster'; /** - * Returns true if the given object is an instance of SKSCluster. This is designed to work even + * Returns true if the given object is an instance of SksCluster. 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 SKSCluster { + public static isInstance(obj: any): obj is SksCluster { if (obj === undefined || obj === null) { return false; } - return obj['__pulumiType'] === SKSCluster.__pulumiType; + return obj['__pulumiType'] === SksCluster.__pulumiType; } /** @@ -106,7 +123,7 @@ export class SKSCluster extends pulumi.CustomResource { /** * An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. */ - public readonly oidc!: pulumi.Output; + public readonly oidc!: pulumi.Output; /** * The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). */ @@ -125,18 +142,18 @@ export class SKSCluster extends pulumi.CustomResource { public readonly zone!: pulumi.Output; /** - * Create a SKSCluster resource with the given unique name, arguments, and options. + * Create a SksCluster 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. */ - constructor(name: string, args: SKSClusterArgs, opts?: pulumi.CustomResourceOptions) - constructor(name: string, argsOrState?: SKSClusterArgs | SKSClusterState, opts?: pulumi.CustomResourceOptions) { + constructor(name: string, args: SksClusterArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: SksClusterArgs | SksClusterState, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; if (opts.id) { - const state = argsOrState as SKSClusterState | undefined; + const state = argsOrState as SksClusterState | undefined; resourceInputs["addons"] = state ? state.addons : undefined; resourceInputs["aggregationCa"] = state ? state.aggregationCa : undefined; resourceInputs["autoUpgrade"] = state ? state.autoUpgrade : undefined; @@ -157,7 +174,7 @@ export class SKSCluster extends pulumi.CustomResource { resourceInputs["version"] = state ? state.version : undefined; resourceInputs["zone"] = state ? state.zone : undefined; } else { - const args = argsOrState as SKSClusterArgs | undefined; + const args = argsOrState as SksClusterArgs | undefined; if ((!args || args.zone === undefined) && !opts.urn) { throw new Error("Missing required property 'zone'"); } @@ -182,14 +199,14 @@ export class SKSCluster extends pulumi.CustomResource { resourceInputs["state"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - super(SKSCluster.__pulumiType, name, resourceInputs, opts); + super(SksCluster.__pulumiType, name, resourceInputs, opts); } } /** - * Input properties used for looking up and filtering SKSCluster resources. + * Input properties used for looking up and filtering SksCluster resources. */ -export interface SKSClusterState { +export interface SksClusterState { /** * @deprecated This attribute has been replaced by `exoscale_ccm`/`metrics_server` attributes, it will be removed in a future release. */ @@ -249,7 +266,7 @@ export interface SKSClusterState { /** * An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. */ - oidc?: pulumi.Input; + oidc?: pulumi.Input; /** * The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). */ @@ -269,9 +286,9 @@ export interface SKSClusterState { } /** - * The set of arguments for constructing a SKSCluster resource. + * The set of arguments for constructing a SksCluster resource. */ -export interface SKSClusterArgs { +export interface SksClusterArgs { /** * @deprecated This attribute has been replaced by `exoscale_ccm`/`metrics_server` attributes, it will be removed in a future release. */ @@ -307,7 +324,7 @@ export interface SKSClusterArgs { /** * An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. */ - oidc?: pulumi.Input; + oidc?: pulumi.Input; /** * The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). */ diff --git a/sdk/nodejs/skskubeconfig.ts b/sdk/nodejs/sksKubeconfig.ts similarity index 87% rename from sdk/nodejs/skskubeconfig.ts rename to sdk/nodejs/sksKubeconfig.ts index 91356a22..1fc11f6d 100644 --- a/sdk/nodejs/skskubeconfig.ts +++ b/sdk/nodejs/sksKubeconfig.ts @@ -4,9 +4,9 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; -export class SKSKubeconfig extends pulumi.CustomResource { +export class SksKubeconfig extends pulumi.CustomResource { /** - * Get an existing SKSKubeconfig resource's state with the given name, ID, and optional extra + * Get an existing SksKubeconfig 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. @@ -14,22 +14,22 @@ export class SKSKubeconfig extends pulumi.CustomResource { * @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?: SKSKubeconfigState, opts?: pulumi.CustomResourceOptions): SKSKubeconfig { - return new SKSKubeconfig(name, state, { ...opts, id: id }); + public static get(name: string, id: pulumi.Input, state?: SksKubeconfigState, opts?: pulumi.CustomResourceOptions): SksKubeconfig { + return new SksKubeconfig(name, state, { ...opts, id: id }); } /** @internal */ - public static readonly __pulumiType = 'exoscale:index/sKSKubeconfig:SKSKubeconfig'; + public static readonly __pulumiType = 'exoscale:index/sksKubeconfig:SksKubeconfig'; /** - * Returns true if the given object is an instance of SKSKubeconfig. This is designed to work even + * Returns true if the given object is an instance of SksKubeconfig. 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 SKSKubeconfig { + public static isInstance(obj: any): obj is SksKubeconfig { if (obj === undefined || obj === null) { return false; } - return obj['__pulumiType'] === SKSKubeconfig.__pulumiType; + return obj['__pulumiType'] === SksKubeconfig.__pulumiType; } /** @@ -67,18 +67,18 @@ export class SKSKubeconfig extends pulumi.CustomResource { public readonly zone!: pulumi.Output; /** - * Create a SKSKubeconfig resource with the given unique name, arguments, and options. + * Create a SksKubeconfig 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. */ - constructor(name: string, args: SKSKubeconfigArgs, opts?: pulumi.CustomResourceOptions) - constructor(name: string, argsOrState?: SKSKubeconfigArgs | SKSKubeconfigState, opts?: pulumi.CustomResourceOptions) { + constructor(name: string, args: SksKubeconfigArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: SksKubeconfigArgs | SksKubeconfigState, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; if (opts.id) { - const state = argsOrState as SKSKubeconfigState | undefined; + const state = argsOrState as SksKubeconfigState | undefined; resourceInputs["clusterId"] = state ? state.clusterId : undefined; resourceInputs["earlyRenewalSeconds"] = state ? state.earlyRenewalSeconds : undefined; resourceInputs["groups"] = state ? state.groups : undefined; @@ -88,7 +88,7 @@ export class SKSKubeconfig extends pulumi.CustomResource { resourceInputs["user"] = state ? state.user : undefined; resourceInputs["zone"] = state ? state.zone : undefined; } else { - const args = argsOrState as SKSKubeconfigArgs | undefined; + const args = argsOrState as SksKubeconfigArgs | undefined; if ((!args || args.clusterId === undefined) && !opts.urn) { throw new Error("Missing required property 'clusterId'"); } @@ -113,14 +113,14 @@ export class SKSKubeconfig extends pulumi.CustomResource { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["kubeconfig"] }; opts = pulumi.mergeOptions(opts, secretOpts); - super(SKSKubeconfig.__pulumiType, name, resourceInputs, opts); + super(SksKubeconfig.__pulumiType, name, resourceInputs, opts); } } /** - * Input properties used for looking up and filtering SKSKubeconfig resources. + * Input properties used for looking up and filtering SksKubeconfig resources. */ -export interface SKSKubeconfigState { +export interface SksKubeconfigState { /** * ❗ The parent exoscale*sks*cluster ID. */ @@ -157,9 +157,9 @@ export interface SKSKubeconfigState { } /** - * The set of arguments for constructing a SKSKubeconfig resource. + * The set of arguments for constructing a SksKubeconfig resource. */ -export interface SKSKubeconfigArgs { +export interface SksKubeconfigArgs { /** * ❗ The parent exoscale*sks*cluster ID. */ diff --git a/sdk/nodejs/sksnodepool.ts b/sdk/nodejs/sksNodepool.ts similarity index 85% rename from sdk/nodejs/sksnodepool.ts rename to sdk/nodejs/sksNodepool.ts index 26973feb..33c02ae7 100644 --- a/sdk/nodejs/sksnodepool.ts +++ b/sdk/nodejs/sksNodepool.ts @@ -5,21 +5,41 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; /** + * Manage Exoscale [Scalable Kubernetes Service (SKS)](https://community.exoscale.com/documentation/sks/) Node Pools. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as exoscale from "@pulumiverse/exoscale"; + * + * const mySksCluster = new exoscale.SksCluster("mySksCluster", {zone: "ch-gva-2"}); + * const mySksNodepool = new exoscale.SksNodepool("mySksNodepool", { + * clusterId: mySksCluster.id, + * zone: mySksCluster.zone, + * instanceType: "standard.medium", + * size: 3, + * }); + * ``` + * + * Please refer to the examples + * directory for complete configuration examples. + * * ## Import * * An existing SKS node pool may be imported by `/@` * * ```sh - * $ pulumi import exoscale:index/sKSNodepool:SKSNodepool \ + * $ pulumi import exoscale:index/sksNodepool:SksNodepool \ * ``` * * exoscale_sks_nodepool.my_sks_nodepool \ * * f81d4fae-7dec-11d0-a765-00a0c91e6bf6/9ecc6b8b-73d4-4211-8ced-f7f29bb79524@ch-gva-2 */ -export class SKSNodepool extends pulumi.CustomResource { +export class SksNodepool extends pulumi.CustomResource { /** - * Get an existing SKSNodepool resource's state with the given name, ID, and optional extra + * Get an existing SksNodepool 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. @@ -27,22 +47,22 @@ export class SKSNodepool extends pulumi.CustomResource { * @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?: SKSNodepoolState, opts?: pulumi.CustomResourceOptions): SKSNodepool { - return new SKSNodepool(name, state, { ...opts, id: id }); + public static get(name: string, id: pulumi.Input, state?: SksNodepoolState, opts?: pulumi.CustomResourceOptions): SksNodepool { + return new SksNodepool(name, state, { ...opts, id: id }); } /** @internal */ - public static readonly __pulumiType = 'exoscale:index/sKSNodepool:SKSNodepool'; + public static readonly __pulumiType = 'exoscale:index/sksNodepool:SksNodepool'; /** - * Returns true if the given object is an instance of SKSNodepool. This is designed to work even + * Returns true if the given object is an instance of SksNodepool. 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 SKSNodepool { + public static isInstance(obj: any): obj is SksNodepool { if (obj === undefined || obj === null) { return false; } - return obj['__pulumiType'] === SKSNodepool.__pulumiType; + return obj['__pulumiType'] === SksNodepool.__pulumiType; } /** @@ -107,7 +127,7 @@ export class SKSNodepool extends pulumi.CustomResource { */ public readonly storageLvm!: pulumi.Output; /** - * A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + * A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }'). */ public readonly taints!: pulumi.Output<{[key: string]: string} | undefined>; /** @@ -124,18 +144,18 @@ export class SKSNodepool extends pulumi.CustomResource { public readonly zone!: pulumi.Output; /** - * Create a SKSNodepool resource with the given unique name, arguments, and options. + * Create a SksNodepool 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. */ - constructor(name: string, args: SKSNodepoolArgs, opts?: pulumi.CustomResourceOptions) - constructor(name: string, argsOrState?: SKSNodepoolArgs | SKSNodepoolState, opts?: pulumi.CustomResourceOptions) { + constructor(name: string, args: SksNodepoolArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: SksNodepoolArgs | SksNodepoolState, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; if (opts.id) { - const state = argsOrState as SKSNodepoolState | undefined; + const state = argsOrState as SksNodepoolState | undefined; resourceInputs["antiAffinityGroupIds"] = state ? state.antiAffinityGroupIds : undefined; resourceInputs["clusterId"] = state ? state.clusterId : undefined; resourceInputs["createdAt"] = state ? state.createdAt : undefined; @@ -157,7 +177,7 @@ export class SKSNodepool extends pulumi.CustomResource { resourceInputs["version"] = state ? state.version : undefined; resourceInputs["zone"] = state ? state.zone : undefined; } else { - const args = argsOrState as SKSNodepoolArgs | undefined; + const args = argsOrState as SksNodepoolArgs | undefined; if ((!args || args.clusterId === undefined) && !opts.urn) { throw new Error("Missing required property 'clusterId'"); } @@ -192,14 +212,14 @@ export class SKSNodepool extends pulumi.CustomResource { resourceInputs["version"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - super(SKSNodepool.__pulumiType, name, resourceInputs, opts); + super(SksNodepool.__pulumiType, name, resourceInputs, opts); } } /** - * Input properties used for looking up and filtering SKSNodepool resources. + * Input properties used for looking up and filtering SksNodepool resources. */ -export interface SKSNodepoolState { +export interface SksNodepoolState { /** * A list of exoscale*anti*affinity_group (IDs) to be attached to the managed instances. */ @@ -262,7 +282,7 @@ export interface SKSNodepoolState { */ storageLvm?: pulumi.Input; /** - * A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + * A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }'). */ taints?: pulumi.Input<{[key: string]: pulumi.Input}>; /** @@ -280,9 +300,9 @@ export interface SKSNodepoolState { } /** - * The set of arguments for constructing a SKSNodepool resource. + * The set of arguments for constructing a SksNodepool resource. */ -export interface SKSNodepoolArgs { +export interface SksNodepoolArgs { /** * A list of exoscale*anti*affinity_group (IDs) to be attached to the managed instances. */ @@ -333,7 +353,7 @@ export interface SKSNodepoolArgs { */ storageLvm?: pulumi.Input; /** - * A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + * A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }'). */ taints?: pulumi.Input<{[key: string]: pulumi.Input}>; /** diff --git a/sdk/nodejs/sshkey.ts b/sdk/nodejs/sshKey.ts similarity index 73% rename from sdk/nodejs/sshkey.ts rename to sdk/nodejs/sshKey.ts index bda18b71..e9099c16 100644 --- a/sdk/nodejs/sshkey.ts +++ b/sdk/nodejs/sshKey.ts @@ -10,16 +10,16 @@ import * as utilities from "./utilities"; * An existing SSH key may be imported as a resource by `` * * ```sh - * $ pulumi import exoscale:index/sSHKey:SSHKey \ + * $ pulumi import exoscale:index/sshKey:SshKey \ * ``` * * exoscale_ssh_key.my_ssh_key \ * * my-ssh-key */ -export class SSHKey extends pulumi.CustomResource { +export class SshKey extends pulumi.CustomResource { /** - * Get an existing SSHKey resource's state with the given name, ID, and optional extra + * Get an existing SshKey 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. @@ -27,22 +27,22 @@ export class SSHKey extends pulumi.CustomResource { * @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?: SSHKeyState, opts?: pulumi.CustomResourceOptions): SSHKey { - return new SSHKey(name, state, { ...opts, id: id }); + public static get(name: string, id: pulumi.Input, state?: SshKeyState, opts?: pulumi.CustomResourceOptions): SshKey { + return new SshKey(name, state, { ...opts, id: id }); } /** @internal */ - public static readonly __pulumiType = 'exoscale:index/sSHKey:SSHKey'; + public static readonly __pulumiType = 'exoscale:index/sshKey:SshKey'; /** - * Returns true if the given object is an instance of SSHKey. This is designed to work even + * Returns true if the given object is an instance of SshKey. 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 SSHKey { + public static isInstance(obj: any): obj is SshKey { if (obj === undefined || obj === null) { return false; } - return obj['__pulumiType'] === SSHKey.__pulumiType; + return obj['__pulumiType'] === SshKey.__pulumiType; } /** @@ -59,23 +59,23 @@ export class SSHKey extends pulumi.CustomResource { public readonly publicKey!: pulumi.Output; /** - * Create a SSHKey resource with the given unique name, arguments, and options. + * Create a SshKey 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. */ - constructor(name: string, args: SSHKeyArgs, opts?: pulumi.CustomResourceOptions) - constructor(name: string, argsOrState?: SSHKeyArgs | SSHKeyState, opts?: pulumi.CustomResourceOptions) { + constructor(name: string, args: SshKeyArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: SshKeyArgs | SshKeyState, opts?: pulumi.CustomResourceOptions) { let resourceInputs: pulumi.Inputs = {}; opts = opts || {}; if (opts.id) { - const state = argsOrState as SSHKeyState | undefined; + const state = argsOrState as SshKeyState | undefined; resourceInputs["fingerprint"] = state ? state.fingerprint : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["publicKey"] = state ? state.publicKey : undefined; } else { - const args = argsOrState as SSHKeyArgs | undefined; + const args = argsOrState as SshKeyArgs | undefined; if ((!args || args.publicKey === undefined) && !opts.urn) { throw new Error("Missing required property 'publicKey'"); } @@ -84,14 +84,14 @@ export class SSHKey extends pulumi.CustomResource { resourceInputs["fingerprint"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - super(SSHKey.__pulumiType, name, resourceInputs, opts); + super(SshKey.__pulumiType, name, resourceInputs, opts); } } /** - * Input properties used for looking up and filtering SSHKey resources. + * Input properties used for looking up and filtering SshKey resources. */ -export interface SSHKeyState { +export interface SshKeyState { /** * The SSH key unique identifier. */ @@ -107,9 +107,9 @@ export interface SSHKeyState { } /** - * The set of arguments for constructing a SSHKey resource. + * The set of arguments for constructing a SshKey resource. */ -export interface SSHKeyArgs { +export interface SshKeyArgs { /** * ❗ The SSH key name. */ diff --git a/sdk/nodejs/tsconfig.json b/sdk/nodejs/tsconfig.json index 17de7e47..b47989b9 100644 --- a/sdk/nodejs/tsconfig.json +++ b/sdk/nodejs/tsconfig.json @@ -20,45 +20,45 @@ "database.ts", "domain.ts", "domainRecord.ts", - "elasticIP.ts", + "elasticIp.ts", "getAntiAffinityGroup.ts", "getComputeInstance.ts", "getComputeInstanceList.ts", - "getDatabaseURI.ts", + "getDatabaseUri.ts", "getDomain.ts", "getDomainRecord.ts", - "getElasticIP.ts", - "getIAMAPIKey.ts", - "getIAMOrgPolicy.ts", - "getIAMRole.ts", + "getElasticIp.ts", + "getIamApiKey.ts", + "getIamOrgPolicy.ts", + "getIamRole.ts", "getInstancePool.ts", "getInstancePoolList.ts", - "getNLB.ts", - "getNLBServiceList.ts", + "getNlb.ts", + "getNlbServiceList.ts", "getPrivateNetwork.ts", - "getSKSCluster.ts", - "getSKSClusterList.ts", - "getSKSNodepool.ts", - "getSKSNodepoolList.ts", "getSecurityGroup.ts", + "getSksCluster.ts", + "getSksClusterList.ts", + "getSksNodepool.ts", + "getSksNodepoolList.ts", "getTemplate.ts", "getZones.ts", - "iamaccessKey.ts", - "iamapikey.ts", - "iamorgPolicy.ts", - "iamrole.ts", + "iamAccessKey.ts", + "iamApiKey.ts", + "iamOrgPolicy.ts", + "iamRole.ts", "index.ts", "instancePool.ts", "nlb.ts", - "nlbservice.ts", + "nlbService.ts", "privateNetwork.ts", "provider.ts", "securityGroup.ts", "securityGroupRule.ts", - "skscluster.ts", - "skskubeconfig.ts", - "sksnodepool.ts", - "sshkey.ts", + "sksCluster.ts", + "sksKubeconfig.ts", + "sksNodepool.ts", + "sshKey.ts", "types/index.ts", "types/input.ts", "types/output.ts", diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 4b8b14e4..69caaf14 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -254,7 +254,7 @@ export interface DatabaseTimeouts { update?: pulumi.Input; } -export interface ElasticIPHealthcheck { +export interface ElasticIpHealthcheck { /** * The healthcheck interval (seconds; must be between `5` and `300`; default: `10`). */ @@ -293,14 +293,14 @@ export interface ElasticIPHealthcheck { uri?: pulumi.Input; } -export interface GetDatabaseURITimeouts { +export interface GetDatabaseUriTimeouts { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. */ read?: string; } -export interface GetDatabaseURITimeoutsArgs { +export interface GetDatabaseUriTimeoutsArgs { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. */ @@ -345,63 +345,63 @@ export interface GetDomainRecordFilterArgs { recordType?: pulumi.Input; } -export interface GetIAMAPIKeyTimeouts { +export interface GetIamApiKeyTimeouts { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. */ read?: string; } -export interface GetIAMAPIKeyTimeoutsArgs { +export interface GetIamApiKeyTimeoutsArgs { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. */ read?: pulumi.Input; } -export interface GetIAMOrgPolicyTimeouts { +export interface GetIamOrgPolicyTimeouts { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. */ read?: string; } -export interface GetIAMOrgPolicyTimeoutsArgs { +export interface GetIamOrgPolicyTimeoutsArgs { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. */ read?: pulumi.Input; } -export interface GetIAMRoleTimeouts { +export interface GetIamRoleTimeouts { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. */ read?: string; } -export interface GetIAMRoleTimeoutsArgs { +export interface GetIamRoleTimeoutsArgs { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. */ read?: pulumi.Input; } -export interface GetNLBServiceListTimeouts { +export interface GetNlbServiceListTimeouts { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. */ read?: string; } -export interface GetNLBServiceListTimeoutsArgs { +export interface GetNlbServiceListTimeoutsArgs { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. */ read?: pulumi.Input; } -export interface GetSKSClusterOidc { +export interface GetSksClusterOidc { /** * The OpenID client ID. */ @@ -432,7 +432,7 @@ export interface GetSKSClusterOidc { usernamePrefix?: string; } -export interface GetSKSClusterOidcArgs { +export interface GetSksClusterOidcArgs { /** * The OpenID client ID. */ @@ -463,25 +463,25 @@ export interface GetSKSClusterOidcArgs { usernamePrefix?: pulumi.Input; } -export interface IAMAPIKeyTimeouts { +export interface IamApiKeyTimeouts { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. */ read?: pulumi.Input; } -export interface IAMOrgPolicyServices { +export interface IamOrgPolicyServices { /** * List of IAM service rules (if type is `rules`). */ - rules?: pulumi.Input[]>; + rules?: pulumi.Input[]>; /** * Service type (`rules`, `allow`, or `deny`). */ type?: pulumi.Input; } -export interface IAMOrgPolicyServicesRule { +export interface IamOrgPolicyServicesRule { /** * IAM policy rule action (`allow` or `deny`). */ @@ -496,14 +496,14 @@ export interface IAMOrgPolicyServicesRule { resources?: pulumi.Input[]>; } -export interface IAMOrgPolicyTimeouts { +export interface IamOrgPolicyTimeouts { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. */ read?: pulumi.Input; } -export interface IAMRolePolicy { +export interface IamRolePolicy { /** * Default service strategy (`allow` or `deny`). */ @@ -511,21 +511,21 @@ export interface IAMRolePolicy { /** * IAM policy services. */ - services?: pulumi.Input<{[key: string]: pulumi.Input}>; + services?: pulumi.Input<{[key: string]: pulumi.Input}>; } -export interface IAMRolePolicyServices { +export interface IamRolePolicyServices { /** * List of IAM service rules (if type is `rules`). */ - rules?: pulumi.Input[]>; + rules?: pulumi.Input[]>; /** * Service type (`rules`, `allow`, or `deny`). */ type?: pulumi.Input; } -export interface IAMRolePolicyServicesRule { +export interface IamRolePolicyServicesRule { /** * IAM policy rule action (`allow` or `deny`). */ @@ -540,7 +540,7 @@ export interface IAMRolePolicyServicesRule { resources?: pulumi.Input[]>; } -export interface IAMRoleTimeouts { +export interface IamRoleTimeouts { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. */ @@ -566,7 +566,7 @@ export interface InstancePoolInstance { publicIpAddress?: pulumi.Input; } -export interface NLBServiceHealthcheck { +export interface NlbServiceHealthcheck { /** * The healthcheck interval in seconds (default: `10`). */ @@ -597,7 +597,7 @@ export interface NLBServiceHealthcheck { uri?: pulumi.Input; } -export interface SKSClusterOidc { +export interface SksClusterOidc { /** * The OpenID client ID. */ diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index f93fb317..0ea60c71 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -254,7 +254,7 @@ export interface DatabaseTimeouts { update?: string; } -export interface ElasticIPHealthcheck { +export interface ElasticIpHealthcheck { /** * The healthcheck interval (seconds; must be between `5` and `300`; default: `10`). */ @@ -318,7 +318,7 @@ export interface GetComputeInstanceListInstance { zone: string; } -export interface GetDatabaseURITimeouts { +export interface GetDatabaseUriTimeouts { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. */ @@ -354,7 +354,7 @@ export interface GetDomainRecordRecord { ttl?: number; } -export interface GetElasticIPHealthcheck { +export interface GetElasticIpHealthcheck { interval: number; mode: string; port: number; @@ -366,25 +366,25 @@ export interface GetElasticIPHealthcheck { uri: string; } -export interface GetIAMAPIKeyTimeouts { +export interface GetIamApiKeyTimeouts { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. */ read?: string; } -export interface GetIAMOrgPolicyServices { +export interface GetIamOrgPolicyServices { /** * List of IAM service rules (if type is `rules`). */ - rules: outputs.GetIAMOrgPolicyServicesRule[]; + rules: outputs.GetIamOrgPolicyServicesRule[]; /** * Service type (`rules`, `allow`, or `deny`). */ type: string; } -export interface GetIAMOrgPolicyServicesRule { +export interface GetIamOrgPolicyServicesRule { /** * IAM policy rule action (`allow` or `deny`). */ @@ -399,14 +399,14 @@ export interface GetIAMOrgPolicyServicesRule { resources: string[]; } -export interface GetIAMOrgPolicyTimeouts { +export interface GetIamOrgPolicyTimeouts { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. */ read?: string; } -export interface GetIAMRolePolicy { +export interface GetIamRolePolicy { /** * Default service strategy (`allow` or `deny`). */ @@ -414,21 +414,21 @@ export interface GetIAMRolePolicy { /** * IAM policy services. */ - services: {[key: string]: outputs.GetIAMRolePolicyServices}; + services: {[key: string]: outputs.GetIamRolePolicyServices}; } -export interface GetIAMRolePolicyServices { +export interface GetIamRolePolicyServices { /** * List of IAM service rules (if type is `rules`). */ - rules: outputs.GetIAMRolePolicyServicesRule[]; + rules: outputs.GetIamRolePolicyServicesRule[]; /** * Service type (`rules`, `allow`, or `deny`). */ type: string; } -export interface GetIAMRolePolicyServicesRule { +export interface GetIamRolePolicyServicesRule { /** * IAM policy rule action (`allow` or `deny`). */ @@ -443,7 +443,7 @@ export interface GetIAMRolePolicyServicesRule { resources: string[]; } -export interface GetIAMRoleTimeouts { +export interface GetIamRoleTimeouts { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. */ @@ -487,12 +487,12 @@ export interface GetInstancePoolListPoolInstance { publicIpAddress: string; } -export interface GetNLBServiceListService { +export interface GetNlbServiceListService { /** * NLB service description. */ description: string; - healthcheck: outputs.GetNLBServiceListServiceHealthcheck; + healthcheck: outputs.GetNlbServiceListServiceHealthcheck; /** * NLB service ID. */ @@ -527,7 +527,7 @@ export interface GetNLBServiceListService { targetPort: number; } -export interface GetNLBServiceListServiceHealthcheck { +export interface GetNlbServiceListServiceHealthcheck { interval: number; mode: string; port: number; @@ -537,14 +537,14 @@ export interface GetNLBServiceListServiceHealthcheck { uri: string; } -export interface GetNLBServiceListTimeouts { +export interface GetNlbServiceListTimeouts { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. */ read?: string; } -export interface GetSKSClusterListCluster { +export interface GetSksClusterListCluster { /** * @deprecated This attribute has been replaced by `exoscale_ccm`/`metrics_server` attributes, it will be removed in a future release. */ @@ -563,14 +563,14 @@ export interface GetSKSClusterListCluster { metricsServer?: boolean; name?: string; nodepools: string[]; - oidc: outputs.GetSKSClusterListClusterOidc; + oidc: outputs.GetSksClusterListClusterOidc; serviceLevel?: string; state: string; version: string; zone: string; } -export interface GetSKSClusterListClusterOidc { +export interface GetSksClusterListClusterOidc { clientId: string; groupsClaim?: string; groupsPrefix?: string; @@ -580,7 +580,7 @@ export interface GetSKSClusterListClusterOidc { usernamePrefix?: string; } -export interface GetSKSClusterOidc { +export interface GetSksClusterOidc { /** * The OpenID client ID. */ @@ -611,7 +611,7 @@ export interface GetSKSClusterOidc { usernamePrefix?: string; } -export interface GetSKSNodepoolListNodepool { +export interface GetSksNodepoolListNodepool { antiAffinityGroupIds?: string[]; clusterId: string; createdAt: string; @@ -635,25 +635,25 @@ export interface GetSKSNodepoolListNodepool { zone: string; } -export interface IAMAPIKeyTimeouts { +export interface IamApiKeyTimeouts { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. */ read?: string; } -export interface IAMOrgPolicyServices { +export interface IamOrgPolicyServices { /** * List of IAM service rules (if type is `rules`). */ - rules: outputs.IAMOrgPolicyServicesRule[]; + rules: outputs.IamOrgPolicyServicesRule[]; /** * Service type (`rules`, `allow`, or `deny`). */ type: string; } -export interface IAMOrgPolicyServicesRule { +export interface IamOrgPolicyServicesRule { /** * IAM policy rule action (`allow` or `deny`). */ @@ -668,14 +668,14 @@ export interface IAMOrgPolicyServicesRule { resources: string[]; } -export interface IAMOrgPolicyTimeouts { +export interface IamOrgPolicyTimeouts { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. */ read?: string; } -export interface IAMRolePolicy { +export interface IamRolePolicy { /** * Default service strategy (`allow` or `deny`). */ @@ -683,21 +683,21 @@ export interface IAMRolePolicy { /** * IAM policy services. */ - services: {[key: string]: outputs.IAMRolePolicyServices}; + services: {[key: string]: outputs.IamRolePolicyServices}; } -export interface IAMRolePolicyServices { +export interface IamRolePolicyServices { /** * List of IAM service rules (if type is `rules`). */ - rules: outputs.IAMRolePolicyServicesRule[]; + rules: outputs.IamRolePolicyServicesRule[]; /** * Service type (`rules`, `allow`, or `deny`). */ type: string; } -export interface IAMRolePolicyServicesRule { +export interface IamRolePolicyServicesRule { /** * IAM policy rule action (`allow` or `deny`). */ @@ -712,7 +712,7 @@ export interface IAMRolePolicyServicesRule { resources: string[]; } -export interface IAMRoleTimeouts { +export interface IamRoleTimeouts { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled. */ @@ -738,7 +738,7 @@ export interface InstancePoolInstance { publicIpAddress: string; } -export interface NLBServiceHealthcheck { +export interface NlbServiceHealthcheck { /** * The healthcheck interval in seconds (default: `10`). */ @@ -769,7 +769,7 @@ export interface NLBServiceHealthcheck { uri?: string; } -export interface SKSClusterOidc { +export interface SksClusterOidc { /** * The OpenID client ID. */ diff --git a/sdk/python/pulumiverse_exoscale/__init__.py b/sdk/python/pulumiverse_exoscale/__init__.py index 6c5fa2cb..38a0d085 100644 --- a/sdk/python/pulumiverse_exoscale/__init__.py +++ b/sdk/python/pulumiverse_exoscale/__init__.py @@ -18,9 +18,9 @@ from .get_domain import * from .get_domain_record import * from .get_elastic_ip import * +from .get_iam_api_key import * from .get_iam_org_policy import * from .get_iam_role import * -from .get_iamapi_key import * from .get_instance_pool import * from .get_instance_pool_list import * from .get_nlb import * @@ -34,9 +34,9 @@ from .get_template import * from .get_zones import * from .iam_access_key import * +from .iam_api_key import * from .iam_org_policy import * from .iam_role import * -from .iamapi_key import * from .instance_pool import * from .nlb import * from .nlb_service import * @@ -103,42 +103,42 @@ }, { "pkg": "exoscale", - "mod": "index/elasticIP", + "mod": "index/elasticIp", "fqn": "pulumiverse_exoscale", "classes": { - "exoscale:index/elasticIP:ElasticIP": "ElasticIP" + "exoscale:index/elasticIp:ElasticIp": "ElasticIp" } }, { "pkg": "exoscale", - "mod": "index/iAMAPIKey", + "mod": "index/iamAccessKey", "fqn": "pulumiverse_exoscale", "classes": { - "exoscale:index/iAMAPIKey:IAMAPIKey": "IAMAPIKey" + "exoscale:index/iamAccessKey:IamAccessKey": "IamAccessKey" } }, { "pkg": "exoscale", - "mod": "index/iAMAccessKey", + "mod": "index/iamApiKey", "fqn": "pulumiverse_exoscale", "classes": { - "exoscale:index/iAMAccessKey:IAMAccessKey": "IAMAccessKey" + "exoscale:index/iamApiKey:IamApiKey": "IamApiKey" } }, { "pkg": "exoscale", - "mod": "index/iAMOrgPolicy", + "mod": "index/iamOrgPolicy", "fqn": "pulumiverse_exoscale", "classes": { - "exoscale:index/iAMOrgPolicy:IAMOrgPolicy": "IAMOrgPolicy" + "exoscale:index/iamOrgPolicy:IamOrgPolicy": "IamOrgPolicy" } }, { "pkg": "exoscale", - "mod": "index/iAMRole", + "mod": "index/iamRole", "fqn": "pulumiverse_exoscale", "classes": { - "exoscale:index/iAMRole:IAMRole": "IAMRole" + "exoscale:index/iamRole:IamRole": "IamRole" } }, { @@ -151,18 +151,18 @@ }, { "pkg": "exoscale", - "mod": "index/nLB", + "mod": "index/nlb", "fqn": "pulumiverse_exoscale", "classes": { - "exoscale:index/nLB:NLB": "NLB" + "exoscale:index/nlb:Nlb": "Nlb" } }, { "pkg": "exoscale", - "mod": "index/nLBService", + "mod": "index/nlbService", "fqn": "pulumiverse_exoscale", "classes": { - "exoscale:index/nLBService:NLBService": "NLBService" + "exoscale:index/nlbService:NlbService": "NlbService" } }, { @@ -175,50 +175,50 @@ }, { "pkg": "exoscale", - "mod": "index/sKSCluster", + "mod": "index/securityGroup", "fqn": "pulumiverse_exoscale", "classes": { - "exoscale:index/sKSCluster:SKSCluster": "SKSCluster" + "exoscale:index/securityGroup:SecurityGroup": "SecurityGroup" } }, { "pkg": "exoscale", - "mod": "index/sKSKubeconfig", + "mod": "index/securityGroupRule", "fqn": "pulumiverse_exoscale", "classes": { - "exoscale:index/sKSKubeconfig:SKSKubeconfig": "SKSKubeconfig" + "exoscale:index/securityGroupRule:SecurityGroupRule": "SecurityGroupRule" } }, { "pkg": "exoscale", - "mod": "index/sKSNodepool", + "mod": "index/sksCluster", "fqn": "pulumiverse_exoscale", "classes": { - "exoscale:index/sKSNodepool:SKSNodepool": "SKSNodepool" + "exoscale:index/sksCluster:SksCluster": "SksCluster" } }, { "pkg": "exoscale", - "mod": "index/sSHKey", + "mod": "index/sksKubeconfig", "fqn": "pulumiverse_exoscale", "classes": { - "exoscale:index/sSHKey:SSHKey": "SSHKey" + "exoscale:index/sksKubeconfig:SksKubeconfig": "SksKubeconfig" } }, { "pkg": "exoscale", - "mod": "index/securityGroup", + "mod": "index/sksNodepool", "fqn": "pulumiverse_exoscale", "classes": { - "exoscale:index/securityGroup:SecurityGroup": "SecurityGroup" + "exoscale:index/sksNodepool:SksNodepool": "SksNodepool" } }, { "pkg": "exoscale", - "mod": "index/securityGroupRule", + "mod": "index/sshKey", "fqn": "pulumiverse_exoscale", "classes": { - "exoscale:index/securityGroupRule:SecurityGroupRule": "SecurityGroupRule" + "exoscale:index/sshKey:SshKey": "SshKey" } } ] diff --git a/sdk/python/pulumiverse_exoscale/_inputs.py b/sdk/python/pulumiverse_exoscale/_inputs.py index 767f05a8..54474adb 100644 --- a/sdk/python/pulumiverse_exoscale/_inputs.py +++ b/sdk/python/pulumiverse_exoscale/_inputs.py @@ -21,25 +21,25 @@ 'DatabasePgArgs', 'DatabaseRedisArgs', 'DatabaseTimeoutsArgs', - 'ElasticIPHealthcheckArgs', - 'IAMAPIKeyTimeoutsArgs', - 'IAMOrgPolicyServicesArgs', - 'IAMOrgPolicyServicesRuleArgs', - 'IAMOrgPolicyTimeoutsArgs', - 'IAMRolePolicyArgs', - 'IAMRolePolicyServicesArgs', - 'IAMRolePolicyServicesRuleArgs', - 'IAMRoleTimeoutsArgs', + 'ElasticIpHealthcheckArgs', + 'IamApiKeyTimeoutsArgs', + 'IamOrgPolicyServicesArgs', + 'IamOrgPolicyServicesRuleArgs', + 'IamOrgPolicyTimeoutsArgs', + 'IamRolePolicyArgs', + 'IamRolePolicyServicesArgs', + 'IamRolePolicyServicesRuleArgs', + 'IamRoleTimeoutsArgs', 'InstancePoolInstanceArgs', - 'NLBServiceHealthcheckArgs', - 'SKSClusterOidcArgs', - 'GetDatabaseURITimeoutsArgs', + 'NlbServiceHealthcheckArgs', + 'SksClusterOidcArgs', + 'GetDatabaseUriTimeoutsArgs', 'GetDomainRecordFilterArgs', - 'GetIAMAPIKeyTimeoutsArgs', - 'GetIAMOrgPolicyTimeoutsArgs', - 'GetIAMRoleTimeoutsArgs', - 'GetNLBServiceListTimeoutsArgs', - 'GetSKSClusterOidcArgs', + 'GetIamApiKeyTimeoutsArgs', + 'GetIamOrgPolicyTimeoutsArgs', + 'GetIamRoleTimeoutsArgs', + 'GetNlbServiceListTimeoutsArgs', + 'GetSksClusterOidcArgs', ] @pulumi.input_type @@ -983,7 +983,7 @@ def update(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class ElasticIPHealthcheckArgs: +class ElasticIpHealthcheckArgs: def __init__(__self__, *, mode: pulumi.Input[str], port: pulumi.Input[int], @@ -1132,7 +1132,7 @@ def uri(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class IAMAPIKeyTimeoutsArgs: +class IamApiKeyTimeoutsArgs: def __init__(__self__, *, read: Optional[pulumi.Input[str]] = None): """ @@ -1155,12 +1155,12 @@ def read(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class IAMOrgPolicyServicesArgs: +class IamOrgPolicyServicesArgs: def __init__(__self__, *, - rules: Optional[pulumi.Input[Sequence[pulumi.Input['IAMOrgPolicyServicesRuleArgs']]]] = None, + rules: Optional[pulumi.Input[Sequence[pulumi.Input['IamOrgPolicyServicesRuleArgs']]]] = None, type: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[Sequence[pulumi.Input['IAMOrgPolicyServicesRuleArgs']]] rules: List of IAM service rules (if type is `rules`). + :param pulumi.Input[Sequence[pulumi.Input['IamOrgPolicyServicesRuleArgs']]] rules: List of IAM service rules (if type is `rules`). :param pulumi.Input[str] type: Service type (`rules`, `allow`, or `deny`). """ if rules is not None: @@ -1170,14 +1170,14 @@ def __init__(__self__, *, @property @pulumi.getter - def rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['IAMOrgPolicyServicesRuleArgs']]]]: + def rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['IamOrgPolicyServicesRuleArgs']]]]: """ List of IAM service rules (if type is `rules`). """ return pulumi.get(self, "rules") @rules.setter - def rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['IAMOrgPolicyServicesRuleArgs']]]]): + def rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['IamOrgPolicyServicesRuleArgs']]]]): pulumi.set(self, "rules", value) @property @@ -1194,7 +1194,7 @@ def type(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class IAMOrgPolicyServicesRuleArgs: +class IamOrgPolicyServicesRuleArgs: def __init__(__self__, *, action: Optional[pulumi.Input[str]] = None, expression: Optional[pulumi.Input[str]] = None, @@ -1251,7 +1251,7 @@ def resources(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): @pulumi.input_type -class IAMOrgPolicyTimeoutsArgs: +class IamOrgPolicyTimeoutsArgs: def __init__(__self__, *, read: Optional[pulumi.Input[str]] = None): """ @@ -1274,13 +1274,13 @@ def read(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class IAMRolePolicyArgs: +class IamRolePolicyArgs: def __init__(__self__, *, default_service_strategy: Optional[pulumi.Input[str]] = None, - services: Optional[pulumi.Input[Mapping[str, pulumi.Input['IAMRolePolicyServicesArgs']]]] = None): + services: Optional[pulumi.Input[Mapping[str, pulumi.Input['IamRolePolicyServicesArgs']]]] = None): """ :param pulumi.Input[str] default_service_strategy: Default service strategy (`allow` or `deny`). - :param pulumi.Input[Mapping[str, pulumi.Input['IAMRolePolicyServicesArgs']]] services: IAM policy services. + :param pulumi.Input[Mapping[str, pulumi.Input['IamRolePolicyServicesArgs']]] services: IAM policy services. """ if default_service_strategy is not None: pulumi.set(__self__, "default_service_strategy", default_service_strategy) @@ -1301,24 +1301,24 @@ def default_service_strategy(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter - def services(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input['IAMRolePolicyServicesArgs']]]]: + def services(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input['IamRolePolicyServicesArgs']]]]: """ IAM policy services. """ return pulumi.get(self, "services") @services.setter - def services(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input['IAMRolePolicyServicesArgs']]]]): + def services(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input['IamRolePolicyServicesArgs']]]]): pulumi.set(self, "services", value) @pulumi.input_type -class IAMRolePolicyServicesArgs: +class IamRolePolicyServicesArgs: def __init__(__self__, *, - rules: Optional[pulumi.Input[Sequence[pulumi.Input['IAMRolePolicyServicesRuleArgs']]]] = None, + rules: Optional[pulumi.Input[Sequence[pulumi.Input['IamRolePolicyServicesRuleArgs']]]] = None, type: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[Sequence[pulumi.Input['IAMRolePolicyServicesRuleArgs']]] rules: List of IAM service rules (if type is `rules`). + :param pulumi.Input[Sequence[pulumi.Input['IamRolePolicyServicesRuleArgs']]] rules: List of IAM service rules (if type is `rules`). :param pulumi.Input[str] type: Service type (`rules`, `allow`, or `deny`). """ if rules is not None: @@ -1328,14 +1328,14 @@ def __init__(__self__, *, @property @pulumi.getter - def rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['IAMRolePolicyServicesRuleArgs']]]]: + def rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['IamRolePolicyServicesRuleArgs']]]]: """ List of IAM service rules (if type is `rules`). """ return pulumi.get(self, "rules") @rules.setter - def rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['IAMRolePolicyServicesRuleArgs']]]]): + def rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['IamRolePolicyServicesRuleArgs']]]]): pulumi.set(self, "rules", value) @property @@ -1352,7 +1352,7 @@ def type(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class IAMRolePolicyServicesRuleArgs: +class IamRolePolicyServicesRuleArgs: def __init__(__self__, *, action: Optional[pulumi.Input[str]] = None, expression: Optional[pulumi.Input[str]] = None, @@ -1409,7 +1409,7 @@ def resources(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): @pulumi.input_type -class IAMRoleTimeoutsArgs: +class IamRoleTimeoutsArgs: def __init__(__self__, *, read: Optional[pulumi.Input[str]] = None): """ @@ -1503,7 +1503,7 @@ def public_ip_address(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class NLBServiceHealthcheckArgs: +class NlbServiceHealthcheckArgs: def __init__(__self__, *, port: pulumi.Input[int], interval: Optional[pulumi.Input[int]] = None, @@ -1621,7 +1621,7 @@ def uri(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class SKSClusterOidcArgs: +class SksClusterOidcArgs: def __init__(__self__, *, client_id: pulumi.Input[str], issuer_url: pulumi.Input[str], @@ -1738,7 +1738,7 @@ def username_prefix(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class GetDatabaseURITimeoutsArgs: +class GetDatabaseUriTimeoutsArgs: def __init__(__self__, *, read: Optional[str] = None): """ @@ -1832,7 +1832,7 @@ def record_type(self, value: Optional[str]): @pulumi.input_type -class GetIAMAPIKeyTimeoutsArgs: +class GetIamApiKeyTimeoutsArgs: def __init__(__self__, *, read: Optional[str] = None): """ @@ -1855,7 +1855,7 @@ def read(self, value: Optional[str]): @pulumi.input_type -class GetIAMOrgPolicyTimeoutsArgs: +class GetIamOrgPolicyTimeoutsArgs: def __init__(__self__, *, read: Optional[str] = None): """ @@ -1878,7 +1878,7 @@ def read(self, value: Optional[str]): @pulumi.input_type -class GetIAMRoleTimeoutsArgs: +class GetIamRoleTimeoutsArgs: def __init__(__self__, *, read: Optional[str] = None): """ @@ -1901,7 +1901,7 @@ def read(self, value: Optional[str]): @pulumi.input_type -class GetNLBServiceListTimeoutsArgs: +class GetNlbServiceListTimeoutsArgs: def __init__(__self__, *, read: Optional[str] = None): """ @@ -1924,7 +1924,7 @@ def read(self, value: Optional[str]): @pulumi.input_type -class GetSKSClusterOidcArgs: +class GetSksClusterOidcArgs: def __init__(__self__, *, client_id: str, issuer_url: str, diff --git a/sdk/python/pulumiverse_exoscale/anti_affinity_group.py b/sdk/python/pulumiverse_exoscale/anti_affinity_group.py index 34336316..9adbb59a 100644 --- a/sdk/python/pulumiverse_exoscale/anti_affinity_group.py +++ b/sdk/python/pulumiverse_exoscale/anti_affinity_group.py @@ -100,6 +100,22 @@ def __init__(__self__, name: Optional[pulumi.Input[str]] = None, __props__=None): """ + Manage Exoscale [Anti-Affinity Groups](https://community.exoscale.com/documentation/compute/anti-affinity-groups/). + + Corresponding data source: exoscale_anti_affinity_group. + + ## Example Usage + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_anti_affinity_group = exoscale.AntiAffinityGroup("myAntiAffinityGroup", description="Prevent compute instances to run on the same host") + ``` + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing anti-affinity group may be imported by `` @@ -124,6 +140,22 @@ def __init__(__self__, args: Optional[AntiAffinityGroupArgs] = None, opts: Optional[pulumi.ResourceOptions] = None): """ + Manage Exoscale [Anti-Affinity Groups](https://community.exoscale.com/documentation/compute/anti-affinity-groups/). + + Corresponding data source: exoscale_anti_affinity_group. + + ## Example Usage + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_anti_affinity_group = exoscale.AntiAffinityGroup("myAntiAffinityGroup", description="Prevent compute instances to run on the same host") + ``` + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing anti-affinity group may be imported by `` diff --git a/sdk/python/pulumiverse_exoscale/compute_instance.py b/sdk/python/pulumiverse_exoscale/compute_instance.py index 01f3f0ff..c6bd14c6 100644 --- a/sdk/python/pulumiverse_exoscale/compute_instance.py +++ b/sdk/python/pulumiverse_exoscale/compute_instance.py @@ -40,7 +40,7 @@ def __init__(__self__, *, :param pulumi.Input[str] zone: ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. :param pulumi.Input[Sequence[pulumi.Input[str]]] anti_affinity_group_ids: ❗ A list of exoscale*anti*affinity_group (IDs) to attach to the instance (may only be set at creation time). :param pulumi.Input[str] deploy_target_id: ❗ A deploy target ID. - :param pulumi.Input[int] disk_size: The instance disk size (GiB; at least `10`). **WARNING**: updating this attribute stops/restarts the instance. + :param pulumi.Input[int] disk_size: The instance disk size (GiB; at least `10`). Can not be decreased after creation. **WARNING**: updating this attribute stops/restarts the instance. :param pulumi.Input[Sequence[pulumi.Input[str]]] elastic_ip_ids: A list of exoscale*elastic*ip (IDs) to attach to the instance. :param pulumi.Input[bool] ipv6: Enable IPv6 on the instance (boolean; default: `false`). :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: A map of key/value labels. @@ -149,7 +149,7 @@ def deploy_target_id(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="diskSize") def disk_size(self) -> Optional[pulumi.Input[int]]: """ - The instance disk size (GiB; at least `10`). **WARNING**: updating this attribute stops/restarts the instance. + The instance disk size (GiB; at least `10`). Can not be decreased after creation. **WARNING**: updating this attribute stops/restarts the instance. """ return pulumi.get(self, "disk_size") @@ -319,7 +319,7 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] anti_affinity_group_ids: ❗ A list of exoscale*anti*affinity_group (IDs) to attach to the instance (may only be set at creation time). :param pulumi.Input[str] created_at: The instance creation date. :param pulumi.Input[str] deploy_target_id: ❗ A deploy target ID. - :param pulumi.Input[int] disk_size: The instance disk size (GiB; at least `10`). **WARNING**: updating this attribute stops/restarts the instance. + :param pulumi.Input[int] disk_size: The instance disk size (GiB; at least `10`). Can not be decreased after creation. **WARNING**: updating this attribute stops/restarts the instance. :param pulumi.Input[Sequence[pulumi.Input[str]]] elastic_ip_ids: A list of exoscale*elastic*ip (IDs) to attach to the instance. :param pulumi.Input[bool] ipv6: Enable IPv6 on the instance (boolean; default: `false`). :param pulumi.Input[str] ipv6_address: The instance (main network interface) IPv6 address (if enabled). @@ -424,7 +424,7 @@ def deploy_target_id(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="diskSize") def disk_size(self) -> Optional[pulumi.Input[int]]: """ - The instance disk size (GiB; at least `10`). **WARNING**: updating this attribute stops/restarts the instance. + The instance disk size (GiB; at least `10`). Can not be decreased after creation. **WARNING**: updating this attribute stops/restarts the instance. """ return pulumi.get(self, "disk_size") @@ -664,6 +664,31 @@ def __init__(__self__, zone: Optional[pulumi.Input[str]] = None, __props__=None): """ + Manage Exoscale [Compute Instances](https://community.exoscale.com/documentation/compute/). + + Corresponding data sources: exoscale_compute_instance, exoscale_compute_instance_list. + + After the creation, you can retrieve the password of an instance with [Exoscale CLI](https://github.com/exoscale/cli): `exo compute instance reveal-password NAME`. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + import pulumiverse_exoscale as exoscale + + my_template = exoscale.get_template(zone="ch-gva-2", + name="Linux Ubuntu 22.04 LTS 64-bit") + my_instance = exoscale.ComputeInstance("myInstance", + zone="ch-gva-2", + template_id=my_template.id, + type="standard.medium", + disk_size=10) + ``` + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing compute instance may be imported by `@` @@ -680,7 +705,7 @@ def __init__(__self__, :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Sequence[pulumi.Input[str]]] anti_affinity_group_ids: ❗ A list of exoscale*anti*affinity_group (IDs) to attach to the instance (may only be set at creation time). :param pulumi.Input[str] deploy_target_id: ❗ A deploy target ID. - :param pulumi.Input[int] disk_size: The instance disk size (GiB; at least `10`). **WARNING**: updating this attribute stops/restarts the instance. + :param pulumi.Input[int] disk_size: The instance disk size (GiB; at least `10`). Can not be decreased after creation. **WARNING**: updating this attribute stops/restarts the instance. :param pulumi.Input[Sequence[pulumi.Input[str]]] elastic_ip_ids: A list of exoscale*elastic*ip (IDs) to attach to the instance. :param pulumi.Input[bool] ipv6: Enable IPv6 on the instance (boolean; default: `false`). :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: A map of key/value labels. @@ -703,6 +728,31 @@ def __init__(__self__, args: ComputeInstanceArgs, opts: Optional[pulumi.ResourceOptions] = None): """ + Manage Exoscale [Compute Instances](https://community.exoscale.com/documentation/compute/). + + Corresponding data sources: exoscale_compute_instance, exoscale_compute_instance_list. + + After the creation, you can retrieve the password of an instance with [Exoscale CLI](https://github.com/exoscale/cli): `exo compute instance reveal-password NAME`. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + import pulumiverse_exoscale as exoscale + + my_template = exoscale.get_template(zone="ch-gva-2", + name="Linux Ubuntu 22.04 LTS 64-bit") + my_instance = exoscale.ComputeInstance("myInstance", + zone="ch-gva-2", + template_id=my_template.id, + type="standard.medium", + disk_size=10) + ``` + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing compute instance may be imported by `@` @@ -824,7 +874,7 @@ def get(resource_name: str, :param pulumi.Input[Sequence[pulumi.Input[str]]] anti_affinity_group_ids: ❗ A list of exoscale*anti*affinity_group (IDs) to attach to the instance (may only be set at creation time). :param pulumi.Input[str] created_at: The instance creation date. :param pulumi.Input[str] deploy_target_id: ❗ A deploy target ID. - :param pulumi.Input[int] disk_size: The instance disk size (GiB; at least `10`). **WARNING**: updating this attribute stops/restarts the instance. + :param pulumi.Input[int] disk_size: The instance disk size (GiB; at least `10`). Can not be decreased after creation. **WARNING**: updating this attribute stops/restarts the instance. :param pulumi.Input[Sequence[pulumi.Input[str]]] elastic_ip_ids: A list of exoscale*elastic*ip (IDs) to attach to the instance. :param pulumi.Input[bool] ipv6: Enable IPv6 on the instance (boolean; default: `false`). :param pulumi.Input[str] ipv6_address: The instance (main network interface) IPv6 address (if enabled). @@ -898,7 +948,7 @@ def deploy_target_id(self) -> pulumi.Output[Optional[str]]: @pulumi.getter(name="diskSize") def disk_size(self) -> pulumi.Output[int]: """ - The instance disk size (GiB; at least `10`). **WARNING**: updating this attribute stops/restarts the instance. + The instance disk size (GiB; at least `10`). Can not be decreased after creation. **WARNING**: updating this attribute stops/restarts the instance. """ return pulumi.get(self, "disk_size") diff --git a/sdk/python/pulumiverse_exoscale/database.py b/sdk/python/pulumiverse_exoscale/database.py index 6e0c1c06..e08977df 100644 --- a/sdk/python/pulumiverse_exoscale/database.py +++ b/sdk/python/pulumiverse_exoscale/database.py @@ -615,6 +615,8 @@ def __init__(__self__, zone: Optional[pulumi.Input[str]] = None, __props__=None): """ + Manage Exoscale [Database Services (DBaaS)](https://community.exoscale.com/documentation/dbaas/). + ## Import An existing database service may be imported by `@` @@ -650,6 +652,8 @@ def __init__(__self__, args: DatabaseArgs, opts: Optional[pulumi.ResourceOptions] = None): """ + Manage Exoscale [Database Services (DBaaS)](https://community.exoscale.com/documentation/dbaas/). + ## Import An existing database service may be imported by `@` diff --git a/sdk/python/pulumiverse_exoscale/domain.py b/sdk/python/pulumiverse_exoscale/domain.py index cc34a12a..deb47470 100644 --- a/sdk/python/pulumiverse_exoscale/domain.py +++ b/sdk/python/pulumiverse_exoscale/domain.py @@ -155,6 +155,24 @@ def __init__(__self__, name: Optional[pulumi.Input[str]] = None, __props__=None): """ + Manage Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domains. + + Corresponding data source: exoscale_domain. + + ## Example Usage + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_domain = exoscale.Domain("myDomain") + ``` + + Next step is to attach exoscale_domain_record(s) to the domain. + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing DNS domain may be imported by `ID` @@ -178,6 +196,24 @@ def __init__(__self__, args: Optional[DomainArgs] = None, opts: Optional[pulumi.ResourceOptions] = None): """ + Manage Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domains. + + Corresponding data source: exoscale_domain. + + ## Example Usage + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_domain = exoscale.Domain("myDomain") + ``` + + Next step is to attach exoscale_domain_record(s) to the domain. + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing DNS domain may be imported by `ID` diff --git a/sdk/python/pulumiverse_exoscale/domain_record.py b/sdk/python/pulumiverse_exoscale/domain_record.py index c5d04ad0..d3498465 100644 --- a/sdk/python/pulumiverse_exoscale/domain_record.py +++ b/sdk/python/pulumiverse_exoscale/domain_record.py @@ -116,6 +116,7 @@ def ttl(self, value: Optional[pulumi.Input[int]]): class _DomainRecordState: def __init__(__self__, *, content: Optional[pulumi.Input[str]] = None, + content_normalized: Optional[pulumi.Input[str]] = None, domain: Optional[pulumi.Input[str]] = None, hostname: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, @@ -125,6 +126,7 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering DomainRecord resources. :param pulumi.Input[str] content: The record value. + :param pulumi.Input[str] content_normalized: The normalized value of the record :param pulumi.Input[str] domain: ❗ The parent Domain to attach the record to. :param pulumi.Input[str] hostname: The record *Fully Qualified Domain Name* (FQDN). Useful for aliasing `A`/`AAAA` records with `CNAME`. :param pulumi.Input[str] name: The record name, Leave blank (`""`) to create a root record (similar to using `@` in a DNS zone file). @@ -134,6 +136,8 @@ def __init__(__self__, *, """ if content is not None: pulumi.set(__self__, "content", content) + if content_normalized is not None: + pulumi.set(__self__, "content_normalized", content_normalized) if domain is not None: pulumi.set(__self__, "domain", domain) if hostname is not None: @@ -159,6 +163,18 @@ def content(self) -> Optional[pulumi.Input[str]]: def content(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "content", value) + @property + @pulumi.getter(name="contentNormalized") + def content_normalized(self) -> Optional[pulumi.Input[str]]: + """ + The normalized value of the record + """ + return pulumi.get(self, "content_normalized") + + @content_normalized.setter + def content_normalized(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "content_normalized", value) + @property @pulumi.getter def domain(self) -> Optional[pulumi.Input[str]]: @@ -245,6 +261,30 @@ def __init__(__self__, ttl: Optional[pulumi.Input[int]] = None, __props__=None): """ + Manage Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domain Records. + + Corresponding data source: exoscale_domain_record. + + ## Example Usage + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_domain = exoscale.Domain("myDomain") + my_host = exoscale.DomainRecord("myHost", + domain=my_domain.id, + record_type="A", + content="1.2.3.4") + my_host_alias = exoscale.DomainRecord("myHostAlias", + domain=my_domain.id, + record_type="CNAME", + content=my_host.hostname) + ``` + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing DNS domain record may be imported by `` @@ -273,6 +313,30 @@ def __init__(__self__, args: DomainRecordArgs, opts: Optional[pulumi.ResourceOptions] = None): """ + Manage Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domain Records. + + Corresponding data source: exoscale_domain_record. + + ## Example Usage + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_domain = exoscale.Domain("myDomain") + my_host = exoscale.DomainRecord("myHost", + domain=my_domain.id, + record_type="A", + content="1.2.3.4") + my_host_alias = exoscale.DomainRecord("myHostAlias", + domain=my_domain.id, + record_type="CNAME", + content=my_host.hostname) + ``` + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing DNS domain record may be imported by `` @@ -327,6 +391,7 @@ def _internal_init(__self__, raise TypeError("Missing required property 'record_type'") __props__.__dict__["record_type"] = record_type __props__.__dict__["ttl"] = ttl + __props__.__dict__["content_normalized"] = None __props__.__dict__["hostname"] = None super(DomainRecord, __self__).__init__( 'exoscale:index/domainRecord:DomainRecord', @@ -339,6 +404,7 @@ def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, content: Optional[pulumi.Input[str]] = None, + content_normalized: Optional[pulumi.Input[str]] = None, domain: Optional[pulumi.Input[str]] = None, hostname: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, @@ -353,6 +419,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[str] content: The record value. + :param pulumi.Input[str] content_normalized: The normalized value of the record :param pulumi.Input[str] domain: ❗ The parent Domain to attach the record to. :param pulumi.Input[str] hostname: The record *Fully Qualified Domain Name* (FQDN). Useful for aliasing `A`/`AAAA` records with `CNAME`. :param pulumi.Input[str] name: The record name, Leave blank (`""`) to create a root record (similar to using `@` in a DNS zone file). @@ -365,6 +432,7 @@ def get(resource_name: str, __props__ = _DomainRecordState.__new__(_DomainRecordState) __props__.__dict__["content"] = content + __props__.__dict__["content_normalized"] = content_normalized __props__.__dict__["domain"] = domain __props__.__dict__["hostname"] = hostname __props__.__dict__["name"] = name @@ -381,6 +449,14 @@ def content(self) -> pulumi.Output[str]: """ return pulumi.get(self, "content") + @property + @pulumi.getter(name="contentNormalized") + def content_normalized(self) -> pulumi.Output[str]: + """ + The normalized value of the record + """ + return pulumi.get(self, "content_normalized") + @property @pulumi.getter def domain(self) -> pulumi.Output[str]: diff --git a/sdk/python/pulumiverse_exoscale/elastic_ip.py b/sdk/python/pulumiverse_exoscale/elastic_ip.py index 8b10ea04..307670ee 100644 --- a/sdk/python/pulumiverse_exoscale/elastic_ip.py +++ b/sdk/python/pulumiverse_exoscale/elastic_ip.py @@ -11,23 +11,23 @@ from . import outputs from ._inputs import * -__all__ = ['ElasticIPArgs', 'ElasticIP'] +__all__ = ['ElasticIpArgs', 'ElasticIp'] @pulumi.input_type -class ElasticIPArgs: +class ElasticIpArgs: def __init__(__self__, *, zone: pulumi.Input[str], address_family: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, - healthcheck: Optional[pulumi.Input['ElasticIPHealthcheckArgs']] = None, + healthcheck: Optional[pulumi.Input['ElasticIpHealthcheckArgs']] = None, labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, reverse_dns: Optional[pulumi.Input[str]] = None): """ - The set of arguments for constructing a ElasticIP resource. + The set of arguments for constructing a ElasticIp resource. :param pulumi.Input[str] zone: ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. :param pulumi.Input[str] address_family: ❗ The Elastic IP (EIP) address family (`inet4` or `inet6`; default: `inet4`). :param pulumi.Input[str] description: A free-form text describing the Elastic IP (EIP). - :param pulumi.Input['ElasticIPHealthcheckArgs'] healthcheck: Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. + :param pulumi.Input['ElasticIpHealthcheckArgs'] healthcheck: Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: A map of key/value labels. :param pulumi.Input[str] reverse_dns: Domain name for reverse DNS record. """ @@ -81,14 +81,14 @@ def description(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter - def healthcheck(self) -> Optional[pulumi.Input['ElasticIPHealthcheckArgs']]: + def healthcheck(self) -> Optional[pulumi.Input['ElasticIpHealthcheckArgs']]: """ Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. """ return pulumi.get(self, "healthcheck") @healthcheck.setter - def healthcheck(self, value: Optional[pulumi.Input['ElasticIPHealthcheckArgs']]): + def healthcheck(self, value: Optional[pulumi.Input['ElasticIpHealthcheckArgs']]): pulumi.set(self, "healthcheck", value) @property @@ -117,22 +117,22 @@ def reverse_dns(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class _ElasticIPState: +class _ElasticIpState: def __init__(__self__, *, address_family: Optional[pulumi.Input[str]] = None, cidr: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, - healthcheck: Optional[pulumi.Input['ElasticIPHealthcheckArgs']] = None, + healthcheck: Optional[pulumi.Input['ElasticIpHealthcheckArgs']] = None, ip_address: Optional[pulumi.Input[str]] = None, labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, reverse_dns: Optional[pulumi.Input[str]] = None, zone: Optional[pulumi.Input[str]] = None): """ - Input properties used for looking up and filtering ElasticIP resources. + Input properties used for looking up and filtering ElasticIp resources. :param pulumi.Input[str] address_family: ❗ The Elastic IP (EIP) address family (`inet4` or `inet6`; default: `inet4`). :param pulumi.Input[str] cidr: The Elastic IP (EIP) CIDR. :param pulumi.Input[str] description: A free-form text describing the Elastic IP (EIP). - :param pulumi.Input['ElasticIPHealthcheckArgs'] healthcheck: Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. + :param pulumi.Input['ElasticIpHealthcheckArgs'] healthcheck: Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. :param pulumi.Input[str] ip_address: The Elastic IP (EIP) IPv4 or IPv6 address. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: A map of key/value labels. :param pulumi.Input[str] reverse_dns: Domain name for reverse DNS record. @@ -193,14 +193,14 @@ def description(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter - def healthcheck(self) -> Optional[pulumi.Input['ElasticIPHealthcheckArgs']]: + def healthcheck(self) -> Optional[pulumi.Input['ElasticIpHealthcheckArgs']]: """ Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. """ return pulumi.get(self, "healthcheck") @healthcheck.setter - def healthcheck(self, value: Optional[pulumi.Input['ElasticIPHealthcheckArgs']]): + def healthcheck(self, value: Optional[pulumi.Input['ElasticIpHealthcheckArgs']]): pulumi.set(self, "healthcheck", value) @property @@ -252,25 +252,65 @@ def zone(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "zone", value) -class ElasticIP(pulumi.CustomResource): +class ElasticIp(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, address_family: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, - healthcheck: Optional[pulumi.Input[pulumi.InputType['ElasticIPHealthcheckArgs']]] = None, + healthcheck: Optional[pulumi.Input[pulumi.InputType['ElasticIpHealthcheckArgs']]] = None, labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, reverse_dns: Optional[pulumi.Input[str]] = None, zone: Optional[pulumi.Input[str]] = None, __props__=None): """ + Manage Exoscale [Elastic IPs (EIP)](https://community.exoscale.com/documentation/compute/eip/). + + Corresponding data source: exoscale_elastic_ip. + + ## Example Usage + + *Unmanaged* EIPv4: + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_elastic_ip = exoscale.ElasticIp("myElasticIp", zone="ch-gva-2") + ``` + + *Managed* EIPv6: + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_managed_elastic_ip = exoscale.ElasticIp("myManagedElasticIp", + address_family="inet6", + healthcheck=exoscale.ElasticIpHealthcheckArgs( + interval=5, + mode="https", + port=443, + strikes_fail=3, + strikes_ok=2, + timeout=3, + tls_sni="example.net", + uri="/health", + ), + reverse_dns="example.net", + zone="ch-gva-2") + ``` + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing Elastic IP (EIP) may be imported by `@` ```sh - $ pulumi import exoscale:index/elasticIP:ElasticIP \\ + $ pulumi import exoscale:index/elasticIp:ElasticIp \\ ``` exoscale_elastic_ip.my_elastic_ip \\ @@ -281,7 +321,7 @@ def __init__(__self__, :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] address_family: ❗ The Elastic IP (EIP) address family (`inet4` or `inet6`; default: `inet4`). :param pulumi.Input[str] description: A free-form text describing the Elastic IP (EIP). - :param pulumi.Input[pulumi.InputType['ElasticIPHealthcheckArgs']] healthcheck: Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. + :param pulumi.Input[pulumi.InputType['ElasticIpHealthcheckArgs']] healthcheck: Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: A map of key/value labels. :param pulumi.Input[str] reverse_dns: Domain name for reverse DNS record. :param pulumi.Input[str] zone: ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. @@ -290,15 +330,55 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: ElasticIPArgs, + args: ElasticIpArgs, opts: Optional[pulumi.ResourceOptions] = None): """ + Manage Exoscale [Elastic IPs (EIP)](https://community.exoscale.com/documentation/compute/eip/). + + Corresponding data source: exoscale_elastic_ip. + + ## Example Usage + + *Unmanaged* EIPv4: + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_elastic_ip = exoscale.ElasticIp("myElasticIp", zone="ch-gva-2") + ``` + + *Managed* EIPv6: + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_managed_elastic_ip = exoscale.ElasticIp("myManagedElasticIp", + address_family="inet6", + healthcheck=exoscale.ElasticIpHealthcheckArgs( + interval=5, + mode="https", + port=443, + strikes_fail=3, + strikes_ok=2, + timeout=3, + tls_sni="example.net", + uri="/health", + ), + reverse_dns="example.net", + zone="ch-gva-2") + ``` + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing Elastic IP (EIP) may be imported by `@` ```sh - $ pulumi import exoscale:index/elasticIP:ElasticIP \\ + $ pulumi import exoscale:index/elasticIp:ElasticIp \\ ``` exoscale_elastic_ip.my_elastic_ip \\ @@ -306,12 +386,12 @@ def __init__(__self__, f81d4fae-7dec-11d0-a765-00a0c91e6bf6@ch-gva-2 :param str resource_name: The name of the resource. - :param ElasticIPArgs args: The arguments to use to populate this resource's properties. + :param ElasticIpArgs 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(ElasticIPArgs, pulumi.ResourceOptions, *args, **kwargs) + resource_args, opts = _utilities.get_resource_args_opts(ElasticIpArgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: @@ -322,7 +402,7 @@ def _internal_init(__self__, opts: Optional[pulumi.ResourceOptions] = None, address_family: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, - healthcheck: Optional[pulumi.Input[pulumi.InputType['ElasticIPHealthcheckArgs']]] = None, + healthcheck: Optional[pulumi.Input[pulumi.InputType['ElasticIpHealthcheckArgs']]] = None, labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, reverse_dns: Optional[pulumi.Input[str]] = None, zone: Optional[pulumi.Input[str]] = None, @@ -333,7 +413,7 @@ def _internal_init(__self__, 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__ = ElasticIPArgs.__new__(ElasticIPArgs) + __props__ = ElasticIpArgs.__new__(ElasticIpArgs) __props__.__dict__["address_family"] = address_family __props__.__dict__["description"] = description @@ -345,8 +425,8 @@ def _internal_init(__self__, __props__.__dict__["zone"] = zone __props__.__dict__["cidr"] = None __props__.__dict__["ip_address"] = None - super(ElasticIP, __self__).__init__( - 'exoscale:index/elasticIP:ElasticIP', + super(ElasticIp, __self__).__init__( + 'exoscale:index/elasticIp:ElasticIp', resource_name, __props__, opts) @@ -358,13 +438,13 @@ def get(resource_name: str, address_family: Optional[pulumi.Input[str]] = None, cidr: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, - healthcheck: Optional[pulumi.Input[pulumi.InputType['ElasticIPHealthcheckArgs']]] = None, + healthcheck: Optional[pulumi.Input[pulumi.InputType['ElasticIpHealthcheckArgs']]] = None, ip_address: Optional[pulumi.Input[str]] = None, labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, reverse_dns: Optional[pulumi.Input[str]] = None, - zone: Optional[pulumi.Input[str]] = None) -> 'ElasticIP': + zone: Optional[pulumi.Input[str]] = None) -> 'ElasticIp': """ - Get an existing ElasticIP resource's state with the given name, id, and optional extra + Get an existing ElasticIp 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. @@ -373,7 +453,7 @@ def get(resource_name: str, :param pulumi.Input[str] address_family: ❗ The Elastic IP (EIP) address family (`inet4` or `inet6`; default: `inet4`). :param pulumi.Input[str] cidr: The Elastic IP (EIP) CIDR. :param pulumi.Input[str] description: A free-form text describing the Elastic IP (EIP). - :param pulumi.Input[pulumi.InputType['ElasticIPHealthcheckArgs']] healthcheck: Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. + :param pulumi.Input[pulumi.InputType['ElasticIpHealthcheckArgs']] healthcheck: Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. :param pulumi.Input[str] ip_address: The Elastic IP (EIP) IPv4 or IPv6 address. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: A map of key/value labels. :param pulumi.Input[str] reverse_dns: Domain name for reverse DNS record. @@ -381,7 +461,7 @@ def get(resource_name: str, """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - __props__ = _ElasticIPState.__new__(_ElasticIPState) + __props__ = _ElasticIpState.__new__(_ElasticIpState) __props__.__dict__["address_family"] = address_family __props__.__dict__["cidr"] = cidr @@ -391,7 +471,7 @@ def get(resource_name: str, __props__.__dict__["labels"] = labels __props__.__dict__["reverse_dns"] = reverse_dns __props__.__dict__["zone"] = zone - return ElasticIP(resource_name, opts=opts, __props__=__props__) + return ElasticIp(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter(name="addressFamily") @@ -419,7 +499,7 @@ def description(self) -> pulumi.Output[str]: @property @pulumi.getter - def healthcheck(self) -> pulumi.Output['outputs.ElasticIPHealthcheck']: + def healthcheck(self) -> pulumi.Output['outputs.ElasticIpHealthcheck']: """ Healthcheck configuration for *managed* EIPs. It can not be added to an existing *Unmanaged* EIP. """ diff --git a/sdk/python/pulumiverse_exoscale/get_anti_affinity_group.py b/sdk/python/pulumiverse_exoscale/get_anti_affinity_group.py index 06a48864..0f32f27c 100644 --- a/sdk/python/pulumiverse_exoscale/get_anti_affinity_group.py +++ b/sdk/python/pulumiverse_exoscale/get_anti_affinity_group.py @@ -72,7 +72,23 @@ def get_anti_affinity_group(id: Optional[str] = None, name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAntiAffinityGroupResult: """ - Use this data source to access information about an existing resource. + Fetch Exoscale [Anti-Affinity Groups](https://community.exoscale.com/documentation/compute/anti-affinity-groups/) data. + + Corresponding resource: exoscale_anti_affinity_group. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + + my_anti_affinity_group = exoscale.get_anti_affinity_group(name="my-anti-affinity-group") + pulumi.export("myAntiAffinityGroupId", my_anti_affinity_group.id) + ``` + + Please refer to the examples + directory for complete configuration examples. + :param str id: The anti-affinity group ID to match (conflicts with `name`). :param str name: The group name to match (conflicts with `id`). @@ -94,7 +110,23 @@ def get_anti_affinity_group_output(id: Optional[pulumi.Input[Optional[str]]] = N name: Optional[pulumi.Input[Optional[str]]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAntiAffinityGroupResult]: """ - Use this data source to access information about an existing resource. + Fetch Exoscale [Anti-Affinity Groups](https://community.exoscale.com/documentation/compute/anti-affinity-groups/) data. + + Corresponding resource: exoscale_anti_affinity_group. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + + my_anti_affinity_group = exoscale.get_anti_affinity_group(name="my-anti-affinity-group") + pulumi.export("myAntiAffinityGroupId", my_anti_affinity_group.id) + ``` + + Please refer to the examples + directory for complete configuration examples. + :param str id: The anti-affinity group ID to match (conflicts with `name`). :param str name: The group name to match (conflicts with `id`). diff --git a/sdk/python/pulumiverse_exoscale/get_compute_instance.py b/sdk/python/pulumiverse_exoscale/get_compute_instance.py index 9c447286..c3c3dbf8 100644 --- a/sdk/python/pulumiverse_exoscale/get_compute_instance.py +++ b/sdk/python/pulumiverse_exoscale/get_compute_instance.py @@ -301,7 +301,24 @@ def get_compute_instance(id: Optional[str] = None, zone: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetComputeInstanceResult: """ - Use this data source to access information about an existing resource. + Fetch Exoscale [Compute Instances](https://community.exoscale.com/documentation/compute/) data. + + Corresponding resource: exoscale_compute_instance. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + + my_instance = exoscale.get_compute_instance(zone="ch-gva-2", + name="my-instance") + pulumi.export("myInstanceId", my_instance.id) + ``` + + Please refer to the examples + directory for complete configuration examples. + :param str id: The compute instance ID to match (conflicts with `name`). :param str name: The instance name to match (conflicts with `id`). @@ -345,7 +362,24 @@ def get_compute_instance_output(id: Optional[pulumi.Input[Optional[str]]] = None zone: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetComputeInstanceResult]: """ - Use this data source to access information about an existing resource. + Fetch Exoscale [Compute Instances](https://community.exoscale.com/documentation/compute/) data. + + Corresponding resource: exoscale_compute_instance. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + + my_instance = exoscale.get_compute_instance(zone="ch-gva-2", + name="my-instance") + pulumi.export("myInstanceId", my_instance.id) + ``` + + Please refer to the examples + directory for complete configuration examples. + :param str id: The compute instance ID to match (conflicts with `name`). :param str name: The instance name to match (conflicts with `id`). diff --git a/sdk/python/pulumiverse_exoscale/get_compute_instance_list.py b/sdk/python/pulumiverse_exoscale/get_compute_instance_list.py index 565d9a4b..037e219b 100644 --- a/sdk/python/pulumiverse_exoscale/get_compute_instance_list.py +++ b/sdk/python/pulumiverse_exoscale/get_compute_instance_list.py @@ -281,7 +281,9 @@ def get_compute_instance_list(created_at: Optional[str] = None, zone: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetComputeInstanceListResult: """ - Use this data source to access information about an existing resource. + List Exoscale [Compute Instances](https://community.exoscale.com/documentation/compute/). + + Corresponding resource: exoscale_compute_instance. """ __args__ = dict() __args__['createdAt'] = created_at @@ -348,6 +350,8 @@ def get_compute_instance_list_output(created_at: Optional[pulumi.Input[Optional[ zone: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetComputeInstanceListResult]: """ - Use this data source to access information about an existing resource. + List Exoscale [Compute Instances](https://community.exoscale.com/documentation/compute/). + + Corresponding resource: exoscale_compute_instance. """ ... diff --git a/sdk/python/pulumiverse_exoscale/get_database_uri.py b/sdk/python/pulumiverse_exoscale/get_database_uri.py index 86c89771..619e04fb 100644 --- a/sdk/python/pulumiverse_exoscale/get_database_uri.py +++ b/sdk/python/pulumiverse_exoscale/get_database_uri.py @@ -12,16 +12,16 @@ from ._inputs import * __all__ = [ - 'GetDatabaseURIResult', - 'AwaitableGetDatabaseURIResult', + 'GetDatabaseUriResult', + 'AwaitableGetDatabaseUriResult', 'get_database_uri', 'get_database_uri_output', ] @pulumi.output_type -class GetDatabaseURIResult: +class GetDatabaseUriResult: """ - A collection of values returned by getDatabaseURI. + A collection of values returned by getDatabaseUri. """ def __init__(__self__, id=None, name=None, timeouts=None, type=None, uri=None, zone=None): if id and not isinstance(id, str): @@ -61,7 +61,7 @@ def name(self) -> str: @property @pulumi.getter - def timeouts(self) -> Optional['outputs.GetDatabaseURITimeoutsResult']: + def timeouts(self) -> Optional['outputs.GetDatabaseUriTimeoutsResult']: return pulumi.get(self, "timeouts") @property @@ -89,12 +89,12 @@ def zone(self) -> str: return pulumi.get(self, "zone") -class AwaitableGetDatabaseURIResult(GetDatabaseURIResult): +class AwaitableGetDatabaseUriResult(GetDatabaseUriResult): # pylint: disable=using-constant-test def __await__(self): if False: yield self - return GetDatabaseURIResult( + return GetDatabaseUriResult( id=self.id, name=self.name, timeouts=self.timeouts, @@ -104,10 +104,10 @@ def __await__(self): def get_database_uri(name: Optional[str] = None, - timeouts: Optional[pulumi.InputType['GetDatabaseURITimeoutsArgs']] = None, + timeouts: Optional[pulumi.InputType['GetDatabaseUriTimeoutsArgs']] = None, type: Optional[str] = None, zone: Optional[str] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatabaseURIResult: + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatabaseUriResult: """ Use this data source to access information about an existing resource. @@ -121,9 +121,9 @@ def get_database_uri(name: Optional[str] = None, __args__['type'] = type __args__['zone'] = zone opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) - __ret__ = pulumi.runtime.invoke('exoscale:index/getDatabaseURI:getDatabaseURI', __args__, opts=opts, typ=GetDatabaseURIResult).value + __ret__ = pulumi.runtime.invoke('exoscale:index/getDatabaseUri:getDatabaseUri', __args__, opts=opts, typ=GetDatabaseUriResult).value - return AwaitableGetDatabaseURIResult( + return AwaitableGetDatabaseUriResult( id=pulumi.get(__ret__, 'id'), name=pulumi.get(__ret__, 'name'), timeouts=pulumi.get(__ret__, 'timeouts'), @@ -134,10 +134,10 @@ def get_database_uri(name: Optional[str] = None, @_utilities.lift_output_func(get_database_uri) def get_database_uri_output(name: Optional[pulumi.Input[str]] = None, - timeouts: Optional[pulumi.Input[Optional[pulumi.InputType['GetDatabaseURITimeoutsArgs']]]] = None, + timeouts: Optional[pulumi.Input[Optional[pulumi.InputType['GetDatabaseUriTimeoutsArgs']]]] = None, type: Optional[pulumi.Input[str]] = None, zone: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatabaseURIResult]: + opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatabaseUriResult]: """ Use this data source to access information about an existing resource. diff --git a/sdk/python/pulumiverse_exoscale/get_domain.py b/sdk/python/pulumiverse_exoscale/get_domain.py index 62e5e6ca..54543f64 100644 --- a/sdk/python/pulumiverse_exoscale/get_domain.py +++ b/sdk/python/pulumiverse_exoscale/get_domain.py @@ -59,7 +59,23 @@ def __await__(self): def get_domain(name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDomainResult: """ - Use this data source to access information about an existing resource. + Fetch Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domains data. + + Corresponding resource: exoscale_domain. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + + my_domain = exoscale.get_domain(name="my.domain") + pulumi.export("myDomainId", my_domain.id) + ``` + + Please refer to the examples + directory for complete configuration examples. + :param str name: The DNS domain name to match. """ @@ -77,7 +93,23 @@ def get_domain(name: Optional[str] = None, def get_domain_output(name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDomainResult]: """ - Use this data source to access information about an existing resource. + Fetch Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domains data. + + Corresponding resource: exoscale_domain. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + + my_domain = exoscale.get_domain(name="my.domain") + pulumi.export("myDomainId", my_domain.id) + ``` + + Please refer to the examples + directory for complete configuration examples. + :param str name: The DNS domain name to match. """ diff --git a/sdk/python/pulumiverse_exoscale/get_domain_record.py b/sdk/python/pulumiverse_exoscale/get_domain_record.py index 806b007e..765ef90c 100644 --- a/sdk/python/pulumiverse_exoscale/get_domain_record.py +++ b/sdk/python/pulumiverse_exoscale/get_domain_record.py @@ -86,7 +86,10 @@ def get_domain_record(domain: Optional[str] = None, filter: Optional[pulumi.InputType['GetDomainRecordFilterArgs']] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDomainRecordResult: """ - Use this data source to access information about an existing resource. + Fetch Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domain Records data. + + Corresponding resource: exoscale_domain_record. + :param pulumi.InputType['GetDomainRecordFilterArgs'] filter: Filter to apply when looking up domain records. """ @@ -108,7 +111,10 @@ def get_domain_record_output(domain: Optional[pulumi.Input[str]] = None, filter: Optional[pulumi.Input[pulumi.InputType['GetDomainRecordFilterArgs']]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDomainRecordResult]: """ - Use this data source to access information about an existing resource. + Fetch Exoscale [DNS](https://community.exoscale.com/documentation/dns/) Domain Records data. + + Corresponding resource: exoscale_domain_record. + :param pulumi.InputType['GetDomainRecordFilterArgs'] filter: Filter to apply when looking up domain records. """ diff --git a/sdk/python/pulumiverse_exoscale/get_elastic_ip.py b/sdk/python/pulumiverse_exoscale/get_elastic_ip.py index 0e118b2d..1d458eb1 100644 --- a/sdk/python/pulumiverse_exoscale/get_elastic_ip.py +++ b/sdk/python/pulumiverse_exoscale/get_elastic_ip.py @@ -11,16 +11,16 @@ from . import outputs __all__ = [ - 'GetElasticIPResult', - 'AwaitableGetElasticIPResult', + 'GetElasticIpResult', + 'AwaitableGetElasticIpResult', 'get_elastic_ip', 'get_elastic_ip_output', ] @pulumi.output_type -class GetElasticIPResult: +class GetElasticIpResult: """ - A collection of values returned by getElasticIP. + A collection of values returned by getElasticIp. """ def __init__(__self__, address_family=None, cidr=None, description=None, healthchecks=None, id=None, ip_address=None, labels=None, reverse_dns=None, zone=None): if address_family and not isinstance(address_family, str): @@ -77,7 +77,7 @@ def description(self) -> str: @property @pulumi.getter - def healthchecks(self) -> Sequence['outputs.GetElasticIPHealthcheckResult']: + def healthchecks(self) -> Sequence['outputs.GetElasticIpHealthcheckResult']: """ The *managed* EIP healthcheck configuration. """ @@ -124,12 +124,12 @@ def zone(self) -> str: return pulumi.get(self, "zone") -class AwaitableGetElasticIPResult(GetElasticIPResult): +class AwaitableGetElasticIpResult(GetElasticIpResult): # pylint: disable=using-constant-test def __await__(self): if False: yield self - return GetElasticIPResult( + return GetElasticIpResult( address_family=self.address_family, cidr=self.cidr, description=self.description, @@ -145,9 +145,26 @@ def get_elastic_ip(id: Optional[str] = None, ip_address: Optional[str] = None, labels: Optional[Mapping[str, str]] = None, zone: Optional[str] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetElasticIPResult: + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetElasticIpResult: """ - Use this data source to access information about an existing resource. + Fetch Exoscale [Elastic IPs (EIP)](https://community.exoscale.com/documentation/compute/eip/) data. + + Corresponding resource: exoscale_elastic_ip. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + + my_elastic_ip = exoscale.get_elastic_ip(zone="ch-gva-2", + ip_address="1.2.3.4") + pulumi.export("myElasticIpId", my_elastic_ip.id) + ``` + + Please refer to the examples + directory for complete configuration examples. + :param str id: The Elastic IP (EIP) ID to match (conflicts with `ip_address` and `labels`). :param str ip_address: The EIP IPv4 or IPv6 address to match (conflicts with `id` and `labels`). @@ -160,9 +177,9 @@ def get_elastic_ip(id: Optional[str] = None, __args__['labels'] = labels __args__['zone'] = zone opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) - __ret__ = pulumi.runtime.invoke('exoscale:index/getElasticIP:getElasticIP', __args__, opts=opts, typ=GetElasticIPResult).value + __ret__ = pulumi.runtime.invoke('exoscale:index/getElasticIp:getElasticIp', __args__, opts=opts, typ=GetElasticIpResult).value - return AwaitableGetElasticIPResult( + return AwaitableGetElasticIpResult( address_family=pulumi.get(__ret__, 'address_family'), cidr=pulumi.get(__ret__, 'cidr'), description=pulumi.get(__ret__, 'description'), @@ -179,9 +196,26 @@ def get_elastic_ip_output(id: Optional[pulumi.Input[Optional[str]]] = None, ip_address: Optional[pulumi.Input[Optional[str]]] = None, labels: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None, zone: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetElasticIPResult]: + opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetElasticIpResult]: """ - Use this data source to access information about an existing resource. + Fetch Exoscale [Elastic IPs (EIP)](https://community.exoscale.com/documentation/compute/eip/) data. + + Corresponding resource: exoscale_elastic_ip. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + + my_elastic_ip = exoscale.get_elastic_ip(zone="ch-gva-2", + ip_address="1.2.3.4") + pulumi.export("myElasticIpId", my_elastic_ip.id) + ``` + + Please refer to the examples + directory for complete configuration examples. + :param str id: The Elastic IP (EIP) ID to match (conflicts with `ip_address` and `labels`). :param str ip_address: The EIP IPv4 or IPv6 address to match (conflicts with `id` and `labels`). diff --git a/sdk/python/pulumiverse_exoscale/get_iam_api_key.py b/sdk/python/pulumiverse_exoscale/get_iam_api_key.py new file mode 100644 index 00000000..7f37c738 --- /dev/null +++ b/sdk/python/pulumiverse_exoscale/get_iam_api_key.py @@ -0,0 +1,131 @@ +# 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__ = [ + 'GetIamApiKeyResult', + 'AwaitableGetIamApiKeyResult', + 'get_iam_api_key', + 'get_iam_api_key_output', +] + +@pulumi.output_type +class GetIamApiKeyResult: + """ + A collection of values returned by getIamApiKey. + """ + def __init__(__self__, id=None, key=None, name=None, role_id=None, timeouts=None): + if id and not isinstance(id, str): + raise TypeError("Expected argument 'id' to be a str") + pulumi.set(__self__, "id", id) + if key and not isinstance(key, str): + raise TypeError("Expected argument 'key' to be a str") + pulumi.set(__self__, "key", key) + if name and not isinstance(name, str): + raise TypeError("Expected argument 'name' to be a str") + pulumi.set(__self__, "name", name) + if role_id and not isinstance(role_id, str): + raise TypeError("Expected argument 'role_id' to be a str") + pulumi.set(__self__, "role_id", role_id) + if timeouts and not isinstance(timeouts, dict): + raise TypeError("Expected argument 'timeouts' to be a dict") + pulumi.set(__self__, "timeouts", timeouts) + + @property + @pulumi.getter + def id(self) -> str: + """ + The ID of this resource. + """ + return pulumi.get(self, "id") + + @property + @pulumi.getter + def key(self) -> str: + """ + The IAM API Key to match. + """ + return pulumi.get(self, "key") + + @property + @pulumi.getter + def name(self) -> str: + """ + IAM API Key name. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="roleId") + def role_id(self) -> str: + """ + IAM API Key role ID. + """ + return pulumi.get(self, "role_id") + + @property + @pulumi.getter + def timeouts(self) -> Optional['outputs.GetIamApiKeyTimeoutsResult']: + return pulumi.get(self, "timeouts") + + +class AwaitableGetIamApiKeyResult(GetIamApiKeyResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetIamApiKeyResult( + id=self.id, + key=self.key, + name=self.name, + role_id=self.role_id, + timeouts=self.timeouts) + + +def get_iam_api_key(key: Optional[str] = None, + timeouts: Optional[pulumi.InputType['GetIamApiKeyTimeoutsArgs']] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetIamApiKeyResult: + """ + Fetch Exoscale [IAM](https://community.exoscale.com/documentation/iam/) API Key. + + Corresponding resource: exoscale_iam_role. + + + :param str key: The IAM API Key to match. + """ + __args__ = dict() + __args__['key'] = key + __args__['timeouts'] = timeouts + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke('exoscale:index/getIamApiKey:getIamApiKey', __args__, opts=opts, typ=GetIamApiKeyResult).value + + return AwaitableGetIamApiKeyResult( + id=pulumi.get(__ret__, 'id'), + key=pulumi.get(__ret__, 'key'), + name=pulumi.get(__ret__, 'name'), + role_id=pulumi.get(__ret__, 'role_id'), + timeouts=pulumi.get(__ret__, 'timeouts')) + + +@_utilities.lift_output_func(get_iam_api_key) +def get_iam_api_key_output(key: Optional[pulumi.Input[str]] = None, + timeouts: Optional[pulumi.Input[Optional[pulumi.InputType['GetIamApiKeyTimeoutsArgs']]]] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetIamApiKeyResult]: + """ + Fetch Exoscale [IAM](https://community.exoscale.com/documentation/iam/) API Key. + + Corresponding resource: exoscale_iam_role. + + + :param str key: The IAM API Key to match. + """ + ... diff --git a/sdk/python/pulumiverse_exoscale/get_iam_org_policy.py b/sdk/python/pulumiverse_exoscale/get_iam_org_policy.py index b6f9e593..1132ab4d 100644 --- a/sdk/python/pulumiverse_exoscale/get_iam_org_policy.py +++ b/sdk/python/pulumiverse_exoscale/get_iam_org_policy.py @@ -12,16 +12,16 @@ from ._inputs import * __all__ = [ - 'GetIAMOrgPolicyResult', - 'AwaitableGetIAMOrgPolicyResult', + 'GetIamOrgPolicyResult', + 'AwaitableGetIamOrgPolicyResult', 'get_iam_org_policy', 'get_iam_org_policy_output', ] @pulumi.output_type -class GetIAMOrgPolicyResult: +class GetIamOrgPolicyResult: """ - A collection of values returned by getIAMOrgPolicy. + A collection of values returned by getIamOrgPolicy. """ def __init__(__self__, default_service_strategy=None, id=None, services=None, timeouts=None): if default_service_strategy and not isinstance(default_service_strategy, str): @@ -55,7 +55,7 @@ def id(self) -> str: @property @pulumi.getter - def services(self) -> Mapping[str, 'outputs.GetIAMOrgPolicyServicesResult']: + def services(self) -> Mapping[str, 'outputs.GetIamOrgPolicyServicesResult']: """ IAM policy services. """ @@ -63,24 +63,24 @@ def services(self) -> Mapping[str, 'outputs.GetIAMOrgPolicyServicesResult']: @property @pulumi.getter - def timeouts(self) -> Optional['outputs.GetIAMOrgPolicyTimeoutsResult']: + def timeouts(self) -> Optional['outputs.GetIamOrgPolicyTimeoutsResult']: return pulumi.get(self, "timeouts") -class AwaitableGetIAMOrgPolicyResult(GetIAMOrgPolicyResult): +class AwaitableGetIamOrgPolicyResult(GetIamOrgPolicyResult): # pylint: disable=using-constant-test def __await__(self): if False: yield self - return GetIAMOrgPolicyResult( + return GetIamOrgPolicyResult( default_service_strategy=self.default_service_strategy, id=self.id, services=self.services, timeouts=self.timeouts) -def get_iam_org_policy(timeouts: Optional[pulumi.InputType['GetIAMOrgPolicyTimeoutsArgs']] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetIAMOrgPolicyResult: +def get_iam_org_policy(timeouts: Optional[pulumi.InputType['GetIamOrgPolicyTimeoutsArgs']] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetIamOrgPolicyResult: """ Fetch Exoscale [IAM](https://community.exoscale.com/documentation/iam/) Organization Policy. @@ -89,9 +89,9 @@ def get_iam_org_policy(timeouts: Optional[pulumi.InputType['GetIAMOrgPolicyTimeo __args__ = dict() __args__['timeouts'] = timeouts opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) - __ret__ = pulumi.runtime.invoke('exoscale:index/getIAMOrgPolicy:getIAMOrgPolicy', __args__, opts=opts, typ=GetIAMOrgPolicyResult).value + __ret__ = pulumi.runtime.invoke('exoscale:index/getIamOrgPolicy:getIamOrgPolicy', __args__, opts=opts, typ=GetIamOrgPolicyResult).value - return AwaitableGetIAMOrgPolicyResult( + return AwaitableGetIamOrgPolicyResult( default_service_strategy=pulumi.get(__ret__, 'default_service_strategy'), id=pulumi.get(__ret__, 'id'), services=pulumi.get(__ret__, 'services'), @@ -99,8 +99,8 @@ def get_iam_org_policy(timeouts: Optional[pulumi.InputType['GetIAMOrgPolicyTimeo @_utilities.lift_output_func(get_iam_org_policy) -def get_iam_org_policy_output(timeouts: Optional[pulumi.Input[Optional[pulumi.InputType['GetIAMOrgPolicyTimeoutsArgs']]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetIAMOrgPolicyResult]: +def get_iam_org_policy_output(timeouts: Optional[pulumi.Input[Optional[pulumi.InputType['GetIamOrgPolicyTimeoutsArgs']]]] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetIamOrgPolicyResult]: """ Fetch Exoscale [IAM](https://community.exoscale.com/documentation/iam/) Organization Policy. diff --git a/sdk/python/pulumiverse_exoscale/get_iam_role.py b/sdk/python/pulumiverse_exoscale/get_iam_role.py index 9af80304..2862e6cc 100644 --- a/sdk/python/pulumiverse_exoscale/get_iam_role.py +++ b/sdk/python/pulumiverse_exoscale/get_iam_role.py @@ -12,16 +12,16 @@ from ._inputs import * __all__ = [ - 'GetIAMRoleResult', - 'AwaitableGetIAMRoleResult', + 'GetIamRoleResult', + 'AwaitableGetIamRoleResult', 'get_iam_role', 'get_iam_role_output', ] @pulumi.output_type -class GetIAMRoleResult: +class GetIamRoleResult: """ - A collection of values returned by getIAMRole. + A collection of values returned by getIamRole. """ def __init__(__self__, description=None, editable=None, id=None, labels=None, name=None, permissions=None, policy=None, timeouts=None): if description and not isinstance(description, str): @@ -99,7 +99,7 @@ def permissions(self) -> Sequence[str]: @property @pulumi.getter - def policy(self) -> 'outputs.GetIAMRolePolicyResult': + def policy(self) -> 'outputs.GetIamRolePolicyResult': """ IAM Policy. """ @@ -107,16 +107,16 @@ def policy(self) -> 'outputs.GetIAMRolePolicyResult': @property @pulumi.getter - def timeouts(self) -> Optional['outputs.GetIAMRoleTimeoutsResult']: + def timeouts(self) -> Optional['outputs.GetIamRoleTimeoutsResult']: return pulumi.get(self, "timeouts") -class AwaitableGetIAMRoleResult(GetIAMRoleResult): +class AwaitableGetIamRoleResult(GetIamRoleResult): # pylint: disable=using-constant-test def __await__(self): if False: yield self - return GetIAMRoleResult( + return GetIamRoleResult( description=self.description, editable=self.editable, id=self.id, @@ -129,8 +129,8 @@ def __await__(self): def get_iam_role(id: Optional[str] = None, name: Optional[str] = None, - timeouts: Optional[pulumi.InputType['GetIAMRoleTimeoutsArgs']] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetIAMRoleResult: + timeouts: Optional[pulumi.InputType['GetIamRoleTimeoutsArgs']] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetIamRoleResult: """ Fetch Exoscale [IAM](https://community.exoscale.com/documentation/iam/) Role. @@ -145,9 +145,9 @@ def get_iam_role(id: Optional[str] = None, __args__['name'] = name __args__['timeouts'] = timeouts opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) - __ret__ = pulumi.runtime.invoke('exoscale:index/getIAMRole:getIAMRole', __args__, opts=opts, typ=GetIAMRoleResult).value + __ret__ = pulumi.runtime.invoke('exoscale:index/getIamRole:getIamRole', __args__, opts=opts, typ=GetIamRoleResult).value - return AwaitableGetIAMRoleResult( + return AwaitableGetIamRoleResult( description=pulumi.get(__ret__, 'description'), editable=pulumi.get(__ret__, 'editable'), id=pulumi.get(__ret__, 'id'), @@ -161,8 +161,8 @@ def get_iam_role(id: Optional[str] = None, @_utilities.lift_output_func(get_iam_role) def get_iam_role_output(id: Optional[pulumi.Input[Optional[str]]] = None, name: Optional[pulumi.Input[Optional[str]]] = None, - timeouts: Optional[pulumi.Input[Optional[pulumi.InputType['GetIAMRoleTimeoutsArgs']]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetIAMRoleResult]: + timeouts: Optional[pulumi.Input[Optional[pulumi.InputType['GetIamRoleTimeoutsArgs']]]] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetIamRoleResult]: """ Fetch Exoscale [IAM](https://community.exoscale.com/documentation/iam/) Role. diff --git a/sdk/python/pulumiverse_exoscale/get_instance_pool.py b/sdk/python/pulumiverse_exoscale/get_instance_pool.py index 5252503d..1219c081 100644 --- a/sdk/python/pulumiverse_exoscale/get_instance_pool.py +++ b/sdk/python/pulumiverse_exoscale/get_instance_pool.py @@ -279,7 +279,24 @@ def get_instance_pool(id: Optional[str] = None, zone: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetInstancePoolResult: """ - Use this data source to access information about an existing resource. + Fetch Exoscale [Instance Pools](https://community.exoscale.com/documentation/compute/instance-pools/) data. + + Corresponding resource: exoscale_instance_pool. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + + my_instance_pool = exoscale.get_instance_pool(zone="ch-gva-2", + name="my-instance-pool") + pulumi.export("myInstancePoolId", my_instance_pool.id) + ``` + + Please refer to the examples + directory for complete configuration examples. + :param Mapping[str, str] labels: A map of key/value labels. :param str zone: The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. @@ -322,7 +339,24 @@ def get_instance_pool_output(id: Optional[pulumi.Input[Optional[str]]] = None, zone: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetInstancePoolResult]: """ - Use this data source to access information about an existing resource. + Fetch Exoscale [Instance Pools](https://community.exoscale.com/documentation/compute/instance-pools/) data. + + Corresponding resource: exoscale_instance_pool. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + + my_instance_pool = exoscale.get_instance_pool(zone="ch-gva-2", + name="my-instance-pool") + pulumi.export("myInstancePoolId", my_instance_pool.id) + ``` + + Please refer to the examples + directory for complete configuration examples. + :param Mapping[str, str] labels: A map of key/value labels. :param str zone: The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. diff --git a/sdk/python/pulumiverse_exoscale/get_instance_pool_list.py b/sdk/python/pulumiverse_exoscale/get_instance_pool_list.py index 5153e023..8c85e3c8 100644 --- a/sdk/python/pulumiverse_exoscale/get_instance_pool_list.py +++ b/sdk/python/pulumiverse_exoscale/get_instance_pool_list.py @@ -72,7 +72,9 @@ def __await__(self): def get_instance_pool_list(zone: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetInstancePoolListResult: """ - Use this data source to access information about an existing resource. + List Exoscale [Instance Pools](https://community.exoscale.com/documentation/compute/instance-pools/). + + Corresponding resource: exoscale_instance_pool. """ __args__ = dict() __args__['zone'] = zone @@ -89,6 +91,8 @@ def get_instance_pool_list(zone: Optional[str] = None, def get_instance_pool_list_output(zone: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetInstancePoolListResult]: """ - Use this data source to access information about an existing resource. + List Exoscale [Instance Pools](https://community.exoscale.com/documentation/compute/instance-pools/). + + Corresponding resource: exoscale_instance_pool. """ ... diff --git a/sdk/python/pulumiverse_exoscale/get_nlb.py b/sdk/python/pulumiverse_exoscale/get_nlb.py index c844db91..c13375ea 100644 --- a/sdk/python/pulumiverse_exoscale/get_nlb.py +++ b/sdk/python/pulumiverse_exoscale/get_nlb.py @@ -10,16 +10,16 @@ from . import _utilities __all__ = [ - 'GetNLBResult', - 'AwaitableGetNLBResult', + 'GetNlbResult', + 'AwaitableGetNlbResult', 'get_nlb', 'get_nlb_output', ] @pulumi.output_type -class GetNLBResult: +class GetNlbResult: """ - A collection of values returned by getNLB. + A collection of values returned by getNlb. """ def __init__(__self__, created_at=None, description=None, id=None, ip_address=None, name=None, state=None, zone=None): if created_at and not isinstance(created_at, str): @@ -101,12 +101,12 @@ def zone(self) -> str: return pulumi.get(self, "zone") -class AwaitableGetNLBResult(GetNLBResult): +class AwaitableGetNlbResult(GetNlbResult): # pylint: disable=using-constant-test def __await__(self): if False: yield self - return GetNLBResult( + return GetNlbResult( created_at=self.created_at, description=self.description, id=self.id, @@ -119,9 +119,26 @@ def __await__(self): def get_nlb(id: Optional[str] = None, name: Optional[str] = None, zone: Optional[str] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNLBResult: + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNlbResult: """ - Use this data source to access information about an existing resource. + Fetch Exoscale [Network Load Balancers (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/) data. + + Corresponding resource: exoscale_nlb. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + + my_nlb = exoscale.get_nlb(zone="ch-gva-2", + name="my-nlb") + pulumi.export("myNlbId", my_nlb.id) + ``` + + Please refer to the examples + directory for complete configuration examples. + :param str id: The Network Load Balancers (NLB) ID to match (conflicts with `name`). :param str name: The NLB name to match (conflicts with `id`). @@ -132,9 +149,9 @@ def get_nlb(id: Optional[str] = None, __args__['name'] = name __args__['zone'] = zone opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) - __ret__ = pulumi.runtime.invoke('exoscale:index/getNLB:getNLB', __args__, opts=opts, typ=GetNLBResult).value + __ret__ = pulumi.runtime.invoke('exoscale:index/getNlb:getNlb', __args__, opts=opts, typ=GetNlbResult).value - return AwaitableGetNLBResult( + return AwaitableGetNlbResult( created_at=pulumi.get(__ret__, 'created_at'), description=pulumi.get(__ret__, 'description'), id=pulumi.get(__ret__, 'id'), @@ -148,9 +165,26 @@ def get_nlb(id: Optional[str] = None, def get_nlb_output(id: Optional[pulumi.Input[Optional[str]]] = None, name: Optional[pulumi.Input[Optional[str]]] = None, zone: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetNLBResult]: + opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetNlbResult]: """ - Use this data source to access information about an existing resource. + Fetch Exoscale [Network Load Balancers (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/) data. + + Corresponding resource: exoscale_nlb. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + + my_nlb = exoscale.get_nlb(zone="ch-gva-2", + name="my-nlb") + pulumi.export("myNlbId", my_nlb.id) + ``` + + Please refer to the examples + directory for complete configuration examples. + :param str id: The Network Load Balancers (NLB) ID to match (conflicts with `name`). :param str name: The NLB name to match (conflicts with `id`). diff --git a/sdk/python/pulumiverse_exoscale/get_nlb_service_list.py b/sdk/python/pulumiverse_exoscale/get_nlb_service_list.py index 75b5db7f..cd2dc55c 100644 --- a/sdk/python/pulumiverse_exoscale/get_nlb_service_list.py +++ b/sdk/python/pulumiverse_exoscale/get_nlb_service_list.py @@ -12,16 +12,16 @@ from ._inputs import * __all__ = [ - 'GetNLBServiceListResult', - 'AwaitableGetNLBServiceListResult', + 'GetNlbServiceListResult', + 'AwaitableGetNlbServiceListResult', 'get_nlb_service_list', 'get_nlb_service_list_output', ] @pulumi.output_type -class GetNLBServiceListResult: +class GetNlbServiceListResult: """ - A collection of values returned by getNLBServiceList. + A collection of values returned by getNlbServiceList. """ def __init__(__self__, id=None, nlb_id=None, nlb_name=None, services=None, timeouts=None, zone=None): if id and not isinstance(id, str): @@ -69,7 +69,7 @@ def nlb_name(self) -> Optional[str]: @property @pulumi.getter - def services(self) -> Sequence['outputs.GetNLBServiceListServiceResult']: + def services(self) -> Sequence['outputs.GetNlbServiceListServiceResult']: """ The list of exoscale*nlb*service. """ @@ -77,7 +77,7 @@ def services(self) -> Sequence['outputs.GetNLBServiceListServiceResult']: @property @pulumi.getter - def timeouts(self) -> Optional['outputs.GetNLBServiceListTimeoutsResult']: + def timeouts(self) -> Optional['outputs.GetNlbServiceListTimeoutsResult']: return pulumi.get(self, "timeouts") @property @@ -89,12 +89,12 @@ def zone(self) -> str: return pulumi.get(self, "zone") -class AwaitableGetNLBServiceListResult(GetNLBServiceListResult): +class AwaitableGetNlbServiceListResult(GetNlbServiceListResult): # pylint: disable=using-constant-test def __await__(self): if False: yield self - return GetNLBServiceListResult( + return GetNlbServiceListResult( id=self.id, nlb_id=self.nlb_id, nlb_name=self.nlb_name, @@ -105,11 +105,14 @@ def __await__(self): def get_nlb_service_list(nlb_id: Optional[str] = None, nlb_name: Optional[str] = None, - timeouts: Optional[pulumi.InputType['GetNLBServiceListTimeoutsArgs']] = None, + timeouts: Optional[pulumi.InputType['GetNlbServiceListTimeoutsArgs']] = None, zone: Optional[str] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNLBServiceListResult: + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNlbServiceListResult: """ - Use this data source to access information about an existing resource. + Fetch Exoscale [Network Load Balancers (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/) Services. + + Corresponding resource: exoscale_nlb. + :param str nlb_id: The NLB ID to match (conflicts with `name`). :param str nlb_name: The NLB name to match (conflicts with `id`). @@ -121,9 +124,9 @@ def get_nlb_service_list(nlb_id: Optional[str] = None, __args__['timeouts'] = timeouts __args__['zone'] = zone opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) - __ret__ = pulumi.runtime.invoke('exoscale:index/getNLBServiceList:getNLBServiceList', __args__, opts=opts, typ=GetNLBServiceListResult).value + __ret__ = pulumi.runtime.invoke('exoscale:index/getNlbServiceList:getNlbServiceList', __args__, opts=opts, typ=GetNlbServiceListResult).value - return AwaitableGetNLBServiceListResult( + return AwaitableGetNlbServiceListResult( id=pulumi.get(__ret__, 'id'), nlb_id=pulumi.get(__ret__, 'nlb_id'), nlb_name=pulumi.get(__ret__, 'nlb_name'), @@ -135,11 +138,14 @@ def get_nlb_service_list(nlb_id: Optional[str] = None, @_utilities.lift_output_func(get_nlb_service_list) def get_nlb_service_list_output(nlb_id: Optional[pulumi.Input[Optional[str]]] = None, nlb_name: Optional[pulumi.Input[Optional[str]]] = None, - timeouts: Optional[pulumi.Input[Optional[pulumi.InputType['GetNLBServiceListTimeoutsArgs']]]] = None, + timeouts: Optional[pulumi.Input[Optional[pulumi.InputType['GetNlbServiceListTimeoutsArgs']]]] = None, zone: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetNLBServiceListResult]: + opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetNlbServiceListResult]: """ - Use this data source to access information about an existing resource. + Fetch Exoscale [Network Load Balancers (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/) Services. + + Corresponding resource: exoscale_nlb. + :param str nlb_id: The NLB ID to match (conflicts with `name`). :param str nlb_name: The NLB name to match (conflicts with `id`). diff --git a/sdk/python/pulumiverse_exoscale/get_private_network.py b/sdk/python/pulumiverse_exoscale/get_private_network.py index 860ff58d..3b633a45 100644 --- a/sdk/python/pulumiverse_exoscale/get_private_network.py +++ b/sdk/python/pulumiverse_exoscale/get_private_network.py @@ -135,7 +135,24 @@ def get_private_network(description: Optional[str] = None, zone: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetPrivateNetworkResult: """ - Use this data source to access information about an existing resource. + Fetch Exoscale [Private Networks](https://community.exoscale.com/documentation/compute/private-networks/) data. + + Corresponding resource: exoscale_private_network. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + + my_private_network = exoscale.get_private_network(zone="ch-gva-2", + name="my-private-network") + pulumi.export("myPrivateNetworkId", my_private_network.id) + ``` + + Please refer to the examples + directory for complete configuration examples. + :param str description: The private network description. :param str id: The private network ID to match (conflicts with `name`). @@ -171,7 +188,24 @@ def get_private_network_output(description: Optional[pulumi.Input[Optional[str]] zone: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetPrivateNetworkResult]: """ - Use this data source to access information about an existing resource. + Fetch Exoscale [Private Networks](https://community.exoscale.com/documentation/compute/private-networks/) data. + + Corresponding resource: exoscale_private_network. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + + my_private_network = exoscale.get_private_network(zone="ch-gva-2", + name="my-private-network") + pulumi.export("myPrivateNetworkId", my_private_network.id) + ``` + + Please refer to the examples + directory for complete configuration examples. + :param str description: The private network description. :param str id: The private network ID to match (conflicts with `name`). diff --git a/sdk/python/pulumiverse_exoscale/get_security_group.py b/sdk/python/pulumiverse_exoscale/get_security_group.py index 1adebe63..8854efe4 100644 --- a/sdk/python/pulumiverse_exoscale/get_security_group.py +++ b/sdk/python/pulumiverse_exoscale/get_security_group.py @@ -72,7 +72,23 @@ def get_security_group(id: Optional[str] = None, name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSecurityGroupResult: """ - Use this data source to access information about an existing resource. + Fetch Exoscale [Security Groups](https://community.exoscale.com/documentation/compute/security-groups/) data. + + Corresponding resource: exoscale_security_group. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + + my_security_group = exoscale.get_security_group(name="my-security-group") + pulumi.export("mySecurityGroupId", my_security_group.id) + ``` + + Please refer to the examples + directory for complete configuration examples. + :param str id: The security group ID to match (conflicts with `name`) :param str name: The name to match (conflicts with `id`) @@ -94,7 +110,23 @@ def get_security_group_output(id: Optional[pulumi.Input[Optional[str]]] = None, name: Optional[pulumi.Input[Optional[str]]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSecurityGroupResult]: """ - Use this data source to access information about an existing resource. + Fetch Exoscale [Security Groups](https://community.exoscale.com/documentation/compute/security-groups/) data. + + Corresponding resource: exoscale_security_group. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + + my_security_group = exoscale.get_security_group(name="my-security-group") + pulumi.export("mySecurityGroupId", my_security_group.id) + ``` + + Please refer to the examples + directory for complete configuration examples. + :param str id: The security group ID to match (conflicts with `name`) :param str name: The name to match (conflicts with `id`) diff --git a/sdk/python/pulumiverse_exoscale/get_sks_cluster.py b/sdk/python/pulumiverse_exoscale/get_sks_cluster.py index 06411f3c..d721c7e9 100644 --- a/sdk/python/pulumiverse_exoscale/get_sks_cluster.py +++ b/sdk/python/pulumiverse_exoscale/get_sks_cluster.py @@ -12,16 +12,16 @@ from ._inputs import * __all__ = [ - 'GetSKSClusterResult', - 'AwaitableGetSKSClusterResult', + 'GetSksClusterResult', + 'AwaitableGetSksClusterResult', 'get_sks_cluster', 'get_sks_cluster_output', ] @pulumi.output_type -class GetSKSClusterResult: +class GetSksClusterResult: """ - A collection of values returned by getSKSCluster. + A collection of values returned by getSksCluster. """ def __init__(__self__, addons=None, aggregation_ca=None, auto_upgrade=None, cni=None, control_plane_ca=None, created_at=None, description=None, endpoint=None, exoscale_ccm=None, id=None, kubelet_ca=None, labels=None, metrics_server=None, name=None, nodepools=None, oidc=None, service_level=None, state=None, version=None, zone=None): if addons and not isinstance(addons, list): @@ -204,7 +204,7 @@ def nodepools(self) -> Sequence[str]: @property @pulumi.getter - def oidc(self) -> 'outputs.GetSKSClusterOidcResult': + def oidc(self) -> 'outputs.GetSksClusterOidcResult': """ An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. """ @@ -240,12 +240,12 @@ def zone(self) -> str: return pulumi.get(self, "zone") -class AwaitableGetSKSClusterResult(GetSKSClusterResult): +class AwaitableGetSksClusterResult(GetSksClusterResult): # pylint: disable=using-constant-test def __await__(self): if False: yield self - return GetSKSClusterResult( + return GetSksClusterResult( addons=self.addons, aggregation_ca=self.aggregation_ca, auto_upgrade=self.auto_upgrade, @@ -283,12 +283,12 @@ def get_sks_cluster(addons: Optional[Sequence[str]] = None, metrics_server: Optional[bool] = None, name: Optional[str] = None, nodepools: Optional[Sequence[str]] = None, - oidc: Optional[pulumi.InputType['GetSKSClusterOidcArgs']] = None, + oidc: Optional[pulumi.InputType['GetSksClusterOidcArgs']] = None, service_level: Optional[str] = None, state: Optional[str] = None, version: Optional[str] = None, zone: Optional[str] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSKSClusterResult: + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSksClusterResult: """ Use this data source to access information about an existing resource. @@ -305,7 +305,7 @@ def get_sks_cluster(addons: Optional[Sequence[str]] = None, :param Mapping[str, str] labels: A map of key/value labels. :param bool metrics_server: Deploy the [Kubernetes Metrics Server](https://github.com/kubernetes-sigs/metrics-server/) in the control plane (boolean; default: `true`; may only be set at creation time). :param Sequence[str] nodepools: The list of exoscale*sks*nodepool (IDs) attached to the cluster. - :param pulumi.InputType['GetSKSClusterOidcArgs'] oidc: An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. + :param pulumi.InputType['GetSksClusterOidcArgs'] oidc: An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. :param str service_level: The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). :param str state: The cluster state. :param str version: The version of the control plane (default: latest version available from the API; see `exo compute sks versions` for reference; may only be set at creation time). @@ -332,9 +332,9 @@ def get_sks_cluster(addons: Optional[Sequence[str]] = None, __args__['version'] = version __args__['zone'] = zone opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) - __ret__ = pulumi.runtime.invoke('exoscale:index/getSKSCluster:getSKSCluster', __args__, opts=opts, typ=GetSKSClusterResult).value + __ret__ = pulumi.runtime.invoke('exoscale:index/getSksCluster:getSksCluster', __args__, opts=opts, typ=GetSksClusterResult).value - return AwaitableGetSKSClusterResult( + return AwaitableGetSksClusterResult( addons=pulumi.get(__ret__, 'addons'), aggregation_ca=pulumi.get(__ret__, 'aggregation_ca'), auto_upgrade=pulumi.get(__ret__, 'auto_upgrade'), @@ -373,12 +373,12 @@ def get_sks_cluster_output(addons: Optional[pulumi.Input[Optional[Sequence[str]] metrics_server: Optional[pulumi.Input[Optional[bool]]] = None, name: Optional[pulumi.Input[Optional[str]]] = None, nodepools: Optional[pulumi.Input[Optional[Sequence[str]]]] = None, - oidc: Optional[pulumi.Input[Optional[pulumi.InputType['GetSKSClusterOidcArgs']]]] = None, + oidc: Optional[pulumi.Input[Optional[pulumi.InputType['GetSksClusterOidcArgs']]]] = None, service_level: Optional[pulumi.Input[Optional[str]]] = None, state: Optional[pulumi.Input[Optional[str]]] = None, version: Optional[pulumi.Input[Optional[str]]] = None, zone: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSKSClusterResult]: + opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSksClusterResult]: """ Use this data source to access information about an existing resource. @@ -395,7 +395,7 @@ def get_sks_cluster_output(addons: Optional[pulumi.Input[Optional[Sequence[str]] :param Mapping[str, str] labels: A map of key/value labels. :param bool metrics_server: Deploy the [Kubernetes Metrics Server](https://github.com/kubernetes-sigs/metrics-server/) in the control plane (boolean; default: `true`; may only be set at creation time). :param Sequence[str] nodepools: The list of exoscale*sks*nodepool (IDs) attached to the cluster. - :param pulumi.InputType['GetSKSClusterOidcArgs'] oidc: An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. + :param pulumi.InputType['GetSksClusterOidcArgs'] oidc: An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. :param str service_level: The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). :param str state: The cluster state. :param str version: The version of the control plane (default: latest version available from the API; see `exo compute sks versions` for reference; may only be set at creation time). diff --git a/sdk/python/pulumiverse_exoscale/get_sks_cluster_list.py b/sdk/python/pulumiverse_exoscale/get_sks_cluster_list.py index 2b63504b..153b0dab 100644 --- a/sdk/python/pulumiverse_exoscale/get_sks_cluster_list.py +++ b/sdk/python/pulumiverse_exoscale/get_sks_cluster_list.py @@ -11,16 +11,16 @@ from . import outputs __all__ = [ - 'GetSKSClusterListResult', - 'AwaitableGetSKSClusterListResult', + 'GetSksClusterListResult', + 'AwaitableGetSksClusterListResult', 'get_sks_cluster_list', 'get_sks_cluster_list_output', ] @pulumi.output_type -class GetSKSClusterListResult: +class GetSksClusterListResult: """ - A collection of values returned by getSKSClusterList. + A collection of values returned by getSksClusterList. """ def __init__(__self__, aggregation_ca=None, auto_upgrade=None, clusters=None, cni=None, control_plane_ca=None, created_at=None, description=None, endpoint=None, exoscale_ccm=None, id=None, kubelet_ca=None, labels=None, metrics_server=None, name=None, service_level=None, state=None, version=None, zone=None): if aggregation_ca and not isinstance(aggregation_ca, str): @@ -96,7 +96,7 @@ def auto_upgrade(self) -> Optional[bool]: @property @pulumi.getter - def clusters(self) -> Sequence['outputs.GetSKSClusterListClusterResult']: + def clusters(self) -> Sequence['outputs.GetSksClusterListClusterResult']: return pulumi.get(self, "clusters") @property @@ -220,12 +220,12 @@ def zone(self) -> str: return pulumi.get(self, "zone") -class AwaitableGetSKSClusterListResult(GetSKSClusterListResult): +class AwaitableGetSksClusterListResult(GetSksClusterListResult): # pylint: disable=using-constant-test def __await__(self): if False: yield self - return GetSKSClusterListResult( + return GetSksClusterListResult( aggregation_ca=self.aggregation_ca, auto_upgrade=self.auto_upgrade, clusters=self.clusters, @@ -263,7 +263,7 @@ def get_sks_cluster_list(aggregation_ca: Optional[str] = None, state: Optional[str] = None, version: Optional[str] = None, zone: Optional[str] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSKSClusterListResult: + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSksClusterListResult: """ Use this data source to access information about an existing resource. """ @@ -286,9 +286,9 @@ def get_sks_cluster_list(aggregation_ca: Optional[str] = None, __args__['version'] = version __args__['zone'] = zone opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) - __ret__ = pulumi.runtime.invoke('exoscale:index/getSKSClusterList:getSKSClusterList', __args__, opts=opts, typ=GetSKSClusterListResult).value + __ret__ = pulumi.runtime.invoke('exoscale:index/getSksClusterList:getSksClusterList', __args__, opts=opts, typ=GetSksClusterListResult).value - return AwaitableGetSKSClusterListResult( + return AwaitableGetSksClusterListResult( aggregation_ca=pulumi.get(__ret__, 'aggregation_ca'), auto_upgrade=pulumi.get(__ret__, 'auto_upgrade'), clusters=pulumi.get(__ret__, 'clusters'), @@ -327,7 +327,7 @@ def get_sks_cluster_list_output(aggregation_ca: Optional[pulumi.Input[Optional[s state: Optional[pulumi.Input[Optional[str]]] = None, version: Optional[pulumi.Input[Optional[str]]] = None, zone: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSKSClusterListResult]: + opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSksClusterListResult]: """ Use this data source to access information about an existing resource. """ diff --git a/sdk/python/pulumiverse_exoscale/get_sks_nodepool.py b/sdk/python/pulumiverse_exoscale/get_sks_nodepool.py index 6a7885af..89c8cde1 100644 --- a/sdk/python/pulumiverse_exoscale/get_sks_nodepool.py +++ b/sdk/python/pulumiverse_exoscale/get_sks_nodepool.py @@ -10,16 +10,16 @@ from . import _utilities __all__ = [ - 'GetSKSNodepoolResult', - 'AwaitableGetSKSNodepoolResult', + 'GetSksNodepoolResult', + 'AwaitableGetSksNodepoolResult', 'get_sks_nodepool', 'get_sks_nodepool_output', ] @pulumi.output_type -class GetSKSNodepoolResult: +class GetSksNodepoolResult: """ - A collection of values returned by getSKSNodepool. + A collection of values returned by getSksNodepool. """ def __init__(__self__, anti_affinity_group_ids=None, cluster_id=None, created_at=None, deploy_target_id=None, description=None, disk_size=None, id=None, instance_pool_id=None, instance_prefix=None, instance_type=None, labels=None, name=None, private_network_ids=None, security_group_ids=None, size=None, state=None, storage_lvm=None, taints=None, template_id=None, version=None, zone=None): if anti_affinity_group_ids and not isinstance(anti_affinity_group_ids, list): @@ -217,7 +217,7 @@ def storage_lvm(self) -> Optional[bool]: @pulumi.getter def taints(self) -> Optional[Mapping[str, str]]: """ - A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \\n\\n = "\\n\\n:\\n\\n" }'). """ return pulumi.get(self, "taints") @@ -243,12 +243,12 @@ def zone(self) -> str: return pulumi.get(self, "zone") -class AwaitableGetSKSNodepoolResult(GetSKSNodepoolResult): +class AwaitableGetSksNodepoolResult(GetSksNodepoolResult): # pylint: disable=using-constant-test def __await__(self): if False: yield self - return GetSKSNodepoolResult( + return GetSksNodepoolResult( anti_affinity_group_ids=self.anti_affinity_group_ids, cluster_id=self.cluster_id, created_at=self.created_at, @@ -293,7 +293,7 @@ def get_sks_nodepool(anti_affinity_group_ids: Optional[Sequence[str]] = None, template_id: Optional[str] = None, version: Optional[str] = None, zone: Optional[str] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSKSNodepoolResult: + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSksNodepoolResult: """ Use this data source to access information about an existing resource. @@ -311,7 +311,7 @@ def get_sks_nodepool(anti_affinity_group_ids: Optional[Sequence[str]] = None, :param Sequence[str] security_group_ids: A list of exoscale*security*group (IDs) to be attached to the managed instances. :param str state: The current pool state. :param bool storage_lvm: Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time). - :param Mapping[str, str] taints: A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + :param Mapping[str, str] taints: A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \\n\\n = "\\n\\n:\\n\\n" }'). :param str template_id: The managed instances template ID. :param str version: The managed instances version. """ @@ -338,9 +338,9 @@ def get_sks_nodepool(anti_affinity_group_ids: Optional[Sequence[str]] = None, __args__['version'] = version __args__['zone'] = zone opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) - __ret__ = pulumi.runtime.invoke('exoscale:index/getSKSNodepool:getSKSNodepool', __args__, opts=opts, typ=GetSKSNodepoolResult).value + __ret__ = pulumi.runtime.invoke('exoscale:index/getSksNodepool:getSksNodepool', __args__, opts=opts, typ=GetSksNodepoolResult).value - return AwaitableGetSKSNodepoolResult( + return AwaitableGetSksNodepoolResult( anti_affinity_group_ids=pulumi.get(__ret__, 'anti_affinity_group_ids'), cluster_id=pulumi.get(__ret__, 'cluster_id'), created_at=pulumi.get(__ret__, 'created_at'), @@ -386,7 +386,7 @@ def get_sks_nodepool_output(anti_affinity_group_ids: Optional[pulumi.Input[Optio template_id: Optional[pulumi.Input[Optional[str]]] = None, version: Optional[pulumi.Input[Optional[str]]] = None, zone: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSKSNodepoolResult]: + opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSksNodepoolResult]: """ Use this data source to access information about an existing resource. @@ -404,7 +404,7 @@ def get_sks_nodepool_output(anti_affinity_group_ids: Optional[pulumi.Input[Optio :param Sequence[str] security_group_ids: A list of exoscale*security*group (IDs) to be attached to the managed instances. :param str state: The current pool state. :param bool storage_lvm: Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time). - :param Mapping[str, str] taints: A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + :param Mapping[str, str] taints: A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \\n\\n = "\\n\\n:\\n\\n" }'). :param str template_id: The managed instances template ID. :param str version: The managed instances version. """ diff --git a/sdk/python/pulumiverse_exoscale/get_sks_nodepool_list.py b/sdk/python/pulumiverse_exoscale/get_sks_nodepool_list.py index 23d7cdc6..4a0eecd0 100644 --- a/sdk/python/pulumiverse_exoscale/get_sks_nodepool_list.py +++ b/sdk/python/pulumiverse_exoscale/get_sks_nodepool_list.py @@ -11,16 +11,16 @@ from . import outputs __all__ = [ - 'GetSKSNodepoolListResult', - 'AwaitableGetSKSNodepoolListResult', + 'GetSksNodepoolListResult', + 'AwaitableGetSksNodepoolListResult', 'get_sks_nodepool_list', 'get_sks_nodepool_list_output', ] @pulumi.output_type -class GetSKSNodepoolListResult: +class GetSksNodepoolListResult: """ - A collection of values returned by getSKSNodepoolList. + A collection of values returned by getSksNodepoolList. """ def __init__(__self__, cluster_id=None, created_at=None, deploy_target_id=None, description=None, disk_size=None, id=None, instance_pool_id=None, instance_prefix=None, instance_type=None, labels=None, name=None, nodepools=None, size=None, state=None, storage_lvm=None, taints=None, template_id=None, version=None, zone=None): if cluster_id and not isinstance(cluster_id, str): @@ -171,7 +171,7 @@ def name(self) -> Optional[str]: @property @pulumi.getter - def nodepools(self) -> Sequence['outputs.GetSKSNodepoolListNodepoolResult']: + def nodepools(self) -> Sequence['outputs.GetSksNodepoolListNodepoolResult']: return pulumi.get(self, "nodepools") @property @@ -231,12 +231,12 @@ def zone(self) -> str: return pulumi.get(self, "zone") -class AwaitableGetSKSNodepoolListResult(GetSKSNodepoolListResult): +class AwaitableGetSksNodepoolListResult(GetSksNodepoolListResult): # pylint: disable=using-constant-test def __await__(self): if False: yield self - return GetSKSNodepoolListResult( + return GetSksNodepoolListResult( cluster_id=self.cluster_id, created_at=self.created_at, deploy_target_id=self.deploy_target_id, @@ -276,7 +276,7 @@ def get_sks_nodepool_list(cluster_id: Optional[str] = None, template_id: Optional[str] = None, version: Optional[str] = None, zone: Optional[str] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSKSNodepoolListResult: + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSksNodepoolListResult: """ Use this data source to access information about an existing resource. """ @@ -300,9 +300,9 @@ def get_sks_nodepool_list(cluster_id: Optional[str] = None, __args__['version'] = version __args__['zone'] = zone opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) - __ret__ = pulumi.runtime.invoke('exoscale:index/getSKSNodepoolList:getSKSNodepoolList', __args__, opts=opts, typ=GetSKSNodepoolListResult).value + __ret__ = pulumi.runtime.invoke('exoscale:index/getSksNodepoolList:getSksNodepoolList', __args__, opts=opts, typ=GetSksNodepoolListResult).value - return AwaitableGetSKSNodepoolListResult( + return AwaitableGetSksNodepoolListResult( cluster_id=pulumi.get(__ret__, 'cluster_id'), created_at=pulumi.get(__ret__, 'created_at'), deploy_target_id=pulumi.get(__ret__, 'deploy_target_id'), @@ -343,7 +343,7 @@ def get_sks_nodepool_list_output(cluster_id: Optional[pulumi.Input[Optional[str] template_id: Optional[pulumi.Input[Optional[str]]] = None, version: Optional[pulumi.Input[Optional[str]]] = None, zone: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSKSNodepoolListResult]: + opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSksNodepoolListResult]: """ Use this data source to access information about an existing resource. """ diff --git a/sdk/python/pulumiverse_exoscale/get_template.py b/sdk/python/pulumiverse_exoscale/get_template.py index 5f3e202e..cdd8c111 100644 --- a/sdk/python/pulumiverse_exoscale/get_template.py +++ b/sdk/python/pulumiverse_exoscale/get_template.py @@ -98,7 +98,22 @@ def get_template(id: Optional[str] = None, zone: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetTemplateResult: """ - Use this data source to access information about an existing resource. + Fetch Exoscale [Compute Instance Templates](https://community.exoscale.com/documentation/compute/custom-templates/) data. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + + my_template = exoscale.get_template(zone="ch-gva-2", + name="Linux Ubuntu 22.04 LTS 64-bit") + pulumi.export("myTemplateId", my_template.id) + ``` + + Please refer to the examples + directory for complete configuration examples. + :param str id: The compute instance template ID to match (conflicts with `name`). :param str name: The template name to match (conflicts with `id`) (when multiple templates have the same name, the newest one will be returned). @@ -128,7 +143,22 @@ def get_template_output(id: Optional[pulumi.Input[Optional[str]]] = None, zone: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTemplateResult]: """ - Use this data source to access information about an existing resource. + Fetch Exoscale [Compute Instance Templates](https://community.exoscale.com/documentation/compute/custom-templates/) data. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + + my_template = exoscale.get_template(zone="ch-gva-2", + name="Linux Ubuntu 22.04 LTS 64-bit") + pulumi.export("myTemplateId", my_template.id) + ``` + + Please refer to the examples + directory for complete configuration examples. + :param str id: The compute instance template ID to match (conflicts with `name`). :param str name: The template name to match (conflicts with `id`) (when multiple templates have the same name, the newest one will be returned). diff --git a/sdk/python/pulumiverse_exoscale/get_zones.py b/sdk/python/pulumiverse_exoscale/get_zones.py index c6c40897..822d5d23 100644 --- a/sdk/python/pulumiverse_exoscale/get_zones.py +++ b/sdk/python/pulumiverse_exoscale/get_zones.py @@ -58,7 +58,20 @@ def __await__(self): def get_zones(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetZonesResult: """ - Use this data source to access information about an existing resource. + Lists all zones. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + + example_zones = exoscale.get_zones() + pulumi.export("zonesOutput", example_zones.zones) + ``` + + Please refer to the examples + directory for complete configuration examples. """ __args__ = dict() opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) @@ -72,6 +85,19 @@ def get_zones(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetZonesR @_utilities.lift_output_func(get_zones) def get_zones_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetZonesResult]: """ - Use this data source to access information about an existing resource. + Lists all zones. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + + example_zones = exoscale.get_zones() + pulumi.export("zonesOutput", example_zones.zones) + ``` + + Please refer to the examples + directory for complete configuration examples. """ ... diff --git a/sdk/python/pulumiverse_exoscale/iam_access_key.py b/sdk/python/pulumiverse_exoscale/iam_access_key.py index 6bef2a27..703f0b09 100644 --- a/sdk/python/pulumiverse_exoscale/iam_access_key.py +++ b/sdk/python/pulumiverse_exoscale/iam_access_key.py @@ -9,17 +9,17 @@ from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities -__all__ = ['IAMAccessKeyArgs', 'IAMAccessKey'] +__all__ = ['IamAccessKeyArgs', 'IamAccessKey'] @pulumi.input_type -class IAMAccessKeyArgs: +class IamAccessKeyArgs: def __init__(__self__, *, name: Optional[pulumi.Input[str]] = None, operations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, resources: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - The set of arguments for constructing a IAMAccessKey resource. + The set of arguments for constructing a IamAccessKey resource. :param pulumi.Input[str] name: ❗ The IAM access key name. :param pulumi.Input[Sequence[pulumi.Input[str]]] operations: ❗ A list of API operations to restrict the key to. :param pulumi.Input[Sequence[pulumi.Input[str]]] resources: ❗ A list of API [resources](https://community.exoscale.com/documentation/iam/quick-start/#restricting-api-access-keys-to-resources) to restrict the key to (`/:`). @@ -84,7 +84,7 @@ def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): @pulumi.input_type -class _IAMAccessKeyState: +class _IamAccessKeyState: def __init__(__self__, *, key: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, @@ -94,7 +94,7 @@ def __init__(__self__, *, tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, tags_operations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - Input properties used for looking up and filtering IAMAccessKey resources. + Input properties used for looking up and filtering IamAccessKey resources. :param pulumi.Input[str] key: The IAM access key (identifier). :param pulumi.Input[str] name: ❗ The IAM access key name. :param pulumi.Input[Sequence[pulumi.Input[str]]] operations: ❗ A list of API operations to restrict the key to. @@ -199,7 +199,7 @@ def tags_operations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str pulumi.set(self, "tags_operations", value) -class IAMAccessKey(pulumi.CustomResource): +class IamAccessKey(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, @@ -210,7 +210,26 @@ def __init__(__self__, tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, __props__=None): """ - Create a IAMAccessKey resource with the given unique name, props, and options. + ## Example Usage + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_sos_access_key = exoscale.IamAccessKey("mySosAccessKey", + operations=[ + "get-sos-object", + "list-sos-bucket", + ], + resources=["sos/bucket:my-bucket"]) + my_sks_access_key = exoscale.IamAccessKey("mySksAccessKey", tags=["sks"]) + ``` + + Please refer to the examples + directory for complete configuration examples. + + > **NOTE:** You can retrieve the list of available operations and tags using the [Exoscale CLI](https://github.com/exoscale/cli/): `exo iam access-key list-operations`. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] name: ❗ The IAM access key name. @@ -222,17 +241,36 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: Optional[IAMAccessKeyArgs] = None, + args: Optional[IamAccessKeyArgs] = None, opts: Optional[pulumi.ResourceOptions] = None): """ - Create a IAMAccessKey resource with the given unique name, props, and options. + ## Example Usage + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_sos_access_key = exoscale.IamAccessKey("mySosAccessKey", + operations=[ + "get-sos-object", + "list-sos-bucket", + ], + resources=["sos/bucket:my-bucket"]) + my_sks_access_key = exoscale.IamAccessKey("mySksAccessKey", tags=["sks"]) + ``` + + Please refer to the examples + directory for complete configuration examples. + + > **NOTE:** You can retrieve the list of available operations and tags using the [Exoscale CLI](https://github.com/exoscale/cli/): `exo iam access-key list-operations`. + :param str resource_name: The name of the resource. - :param IAMAccessKeyArgs args: The arguments to use to populate this resource's properties. + :param IamAccessKeyArgs 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(IAMAccessKeyArgs, pulumi.ResourceOptions, *args, **kwargs) + resource_args, opts = _utilities.get_resource_args_opts(IamAccessKeyArgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: @@ -252,7 +290,7 @@ def _internal_init(__self__, 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__ = IAMAccessKeyArgs.__new__(IAMAccessKeyArgs) + __props__ = IamAccessKeyArgs.__new__(IamAccessKeyArgs) __props__.__dict__["name"] = name __props__.__dict__["operations"] = operations @@ -263,8 +301,8 @@ def _internal_init(__self__, __props__.__dict__["tags_operations"] = None secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["key", "secret"]) opts = pulumi.ResourceOptions.merge(opts, secret_opts) - super(IAMAccessKey, __self__).__init__( - 'exoscale:index/iAMAccessKey:IAMAccessKey', + super(IamAccessKey, __self__).__init__( + 'exoscale:index/iamAccessKey:IamAccessKey', resource_name, __props__, opts) @@ -279,9 +317,9 @@ def get(resource_name: str, resources: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, secret: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - tags_operations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'IAMAccessKey': + tags_operations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'IamAccessKey': """ - Get an existing IAMAccessKey resource's state with the given name, id, and optional extra + Get an existing IamAccessKey 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. @@ -296,7 +334,7 @@ def get(resource_name: str, """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - __props__ = _IAMAccessKeyState.__new__(_IAMAccessKeyState) + __props__ = _IamAccessKeyState.__new__(_IamAccessKeyState) __props__.__dict__["key"] = key __props__.__dict__["name"] = name @@ -305,7 +343,7 @@ def get(resource_name: str, __props__.__dict__["secret"] = secret __props__.__dict__["tags"] = tags __props__.__dict__["tags_operations"] = tags_operations - return IAMAccessKey(resource_name, opts=opts, __props__=__props__) + return IamAccessKey(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter diff --git a/sdk/python/pulumiverse_exoscale/iam_api_key.py b/sdk/python/pulumiverse_exoscale/iam_api_key.py new file mode 100644 index 00000000..317e5520 --- /dev/null +++ b/sdk/python/pulumiverse_exoscale/iam_api_key.py @@ -0,0 +1,285 @@ +# 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__ = ['IamApiKeyArgs', 'IamApiKey'] + +@pulumi.input_type +class IamApiKeyArgs: + def __init__(__self__, *, + role_id: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, + timeouts: Optional[pulumi.Input['IamApiKeyTimeoutsArgs']] = None): + """ + The set of arguments for constructing a IamApiKey resource. + :param pulumi.Input[str] role_id: ❗ IAM API role ID. + :param pulumi.Input[str] name: ❗ IAM API Key name. + """ + pulumi.set(__self__, "role_id", role_id) + if name is not None: + pulumi.set(__self__, "name", name) + if timeouts is not None: + pulumi.set(__self__, "timeouts", timeouts) + + @property + @pulumi.getter(name="roleId") + def role_id(self) -> pulumi.Input[str]: + """ + ❗ IAM API role ID. + """ + return pulumi.get(self, "role_id") + + @role_id.setter + def role_id(self, value: pulumi.Input[str]): + pulumi.set(self, "role_id", value) + + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + ❗ IAM API Key name. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter + def timeouts(self) -> Optional[pulumi.Input['IamApiKeyTimeoutsArgs']]: + return pulumi.get(self, "timeouts") + + @timeouts.setter + def timeouts(self, value: Optional[pulumi.Input['IamApiKeyTimeoutsArgs']]): + pulumi.set(self, "timeouts", value) + + +@pulumi.input_type +class _IamApiKeyState: + def __init__(__self__, *, + key: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + role_id: Optional[pulumi.Input[str]] = None, + secret: Optional[pulumi.Input[str]] = None, + timeouts: Optional[pulumi.Input['IamApiKeyTimeoutsArgs']] = None): + """ + Input properties used for looking up and filtering IamApiKey resources. + :param pulumi.Input[str] key: The IAM API Key to match. + :param pulumi.Input[str] name: ❗ IAM API Key name. + :param pulumi.Input[str] role_id: ❗ IAM API role ID. + :param pulumi.Input[str] secret: Secret for the IAM API Key. + """ + if key is not None: + pulumi.set(__self__, "key", key) + if name is not None: + pulumi.set(__self__, "name", name) + if role_id is not None: + pulumi.set(__self__, "role_id", role_id) + if secret is not None: + pulumi.set(__self__, "secret", secret) + if timeouts is not None: + pulumi.set(__self__, "timeouts", timeouts) + + @property + @pulumi.getter + def key(self) -> Optional[pulumi.Input[str]]: + """ + The IAM API Key to match. + """ + return pulumi.get(self, "key") + + @key.setter + def key(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "key", value) + + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + ❗ IAM API Key name. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter(name="roleId") + def role_id(self) -> Optional[pulumi.Input[str]]: + """ + ❗ IAM API role ID. + """ + return pulumi.get(self, "role_id") + + @role_id.setter + def role_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "role_id", value) + + @property + @pulumi.getter + def secret(self) -> Optional[pulumi.Input[str]]: + """ + Secret for the IAM API Key. + """ + return pulumi.get(self, "secret") + + @secret.setter + def secret(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "secret", value) + + @property + @pulumi.getter + def timeouts(self) -> Optional[pulumi.Input['IamApiKeyTimeoutsArgs']]: + return pulumi.get(self, "timeouts") + + @timeouts.setter + def timeouts(self, value: Optional[pulumi.Input['IamApiKeyTimeoutsArgs']]): + pulumi.set(self, "timeouts", value) + + +class IamApiKey(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + name: Optional[pulumi.Input[str]] = None, + role_id: Optional[pulumi.Input[str]] = None, + timeouts: Optional[pulumi.Input[pulumi.InputType['IamApiKeyTimeoutsArgs']]] = None, + __props__=None): + """ + Create a IamApiKey resource with the given unique name, props, and options. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] name: ❗ IAM API Key name. + :param pulumi.Input[str] role_id: ❗ IAM API role ID. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: IamApiKeyArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Create a IamApiKey resource with the given unique name, props, and options. + :param str resource_name: The name of the resource. + :param IamApiKeyArgs 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(IamApiKeyArgs, 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, + name: Optional[pulumi.Input[str]] = None, + role_id: Optional[pulumi.Input[str]] = None, + timeouts: Optional[pulumi.Input[pulumi.InputType['IamApiKeyTimeoutsArgs']]] = None, + __props__=None): + 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__ = IamApiKeyArgs.__new__(IamApiKeyArgs) + + __props__.__dict__["name"] = name + if role_id is None and not opts.urn: + raise TypeError("Missing required property 'role_id'") + __props__.__dict__["role_id"] = role_id + __props__.__dict__["timeouts"] = timeouts + __props__.__dict__["key"] = None + __props__.__dict__["secret"] = None + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["secret"]) + opts = pulumi.ResourceOptions.merge(opts, secret_opts) + super(IamApiKey, __self__).__init__( + 'exoscale:index/iamApiKey:IamApiKey', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + key: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + role_id: Optional[pulumi.Input[str]] = None, + secret: Optional[pulumi.Input[str]] = None, + timeouts: Optional[pulumi.Input[pulumi.InputType['IamApiKeyTimeoutsArgs']]] = None) -> 'IamApiKey': + """ + Get an existing IamApiKey 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] key: The IAM API Key to match. + :param pulumi.Input[str] name: ❗ IAM API Key name. + :param pulumi.Input[str] role_id: ❗ IAM API role ID. + :param pulumi.Input[str] secret: Secret for the IAM API Key. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _IamApiKeyState.__new__(_IamApiKeyState) + + __props__.__dict__["key"] = key + __props__.__dict__["name"] = name + __props__.__dict__["role_id"] = role_id + __props__.__dict__["secret"] = secret + __props__.__dict__["timeouts"] = timeouts + return IamApiKey(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter + def key(self) -> pulumi.Output[str]: + """ + The IAM API Key to match. + """ + return pulumi.get(self, "key") + + @property + @pulumi.getter + def name(self) -> pulumi.Output[str]: + """ + ❗ IAM API Key name. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="roleId") + def role_id(self) -> pulumi.Output[str]: + """ + ❗ IAM API role ID. + """ + return pulumi.get(self, "role_id") + + @property + @pulumi.getter + def secret(self) -> pulumi.Output[str]: + """ + Secret for the IAM API Key. + """ + return pulumi.get(self, "secret") + + @property + @pulumi.getter + def timeouts(self) -> pulumi.Output[Optional['outputs.IamApiKeyTimeouts']]: + return pulumi.get(self, "timeouts") + diff --git a/sdk/python/pulumiverse_exoscale/iam_org_policy.py b/sdk/python/pulumiverse_exoscale/iam_org_policy.py index 0f7a974c..524e1476 100644 --- a/sdk/python/pulumiverse_exoscale/iam_org_policy.py +++ b/sdk/python/pulumiverse_exoscale/iam_org_policy.py @@ -11,18 +11,18 @@ from . import outputs from ._inputs import * -__all__ = ['IAMOrgPolicyArgs', 'IAMOrgPolicy'] +__all__ = ['IamOrgPolicyArgs', 'IamOrgPolicy'] @pulumi.input_type -class IAMOrgPolicyArgs: +class IamOrgPolicyArgs: def __init__(__self__, *, default_service_strategy: pulumi.Input[str], - services: pulumi.Input[Mapping[str, pulumi.Input['IAMOrgPolicyServicesArgs']]], - timeouts: Optional[pulumi.Input['IAMOrgPolicyTimeoutsArgs']] = None): + services: pulumi.Input[Mapping[str, pulumi.Input['IamOrgPolicyServicesArgs']]], + timeouts: Optional[pulumi.Input['IamOrgPolicyTimeoutsArgs']] = None): """ - The set of arguments for constructing a IAMOrgPolicy resource. + The set of arguments for constructing a IamOrgPolicy resource. :param pulumi.Input[str] default_service_strategy: Default service strategy (`allow` or `deny`). - :param pulumi.Input[Mapping[str, pulumi.Input['IAMOrgPolicyServicesArgs']]] services: IAM policy services. + :param pulumi.Input[Mapping[str, pulumi.Input['IamOrgPolicyServicesArgs']]] services: IAM policy services. """ pulumi.set(__self__, "default_service_strategy", default_service_strategy) pulumi.set(__self__, "services", services) @@ -43,36 +43,36 @@ def default_service_strategy(self, value: pulumi.Input[str]): @property @pulumi.getter - def services(self) -> pulumi.Input[Mapping[str, pulumi.Input['IAMOrgPolicyServicesArgs']]]: + def services(self) -> pulumi.Input[Mapping[str, pulumi.Input['IamOrgPolicyServicesArgs']]]: """ IAM policy services. """ return pulumi.get(self, "services") @services.setter - def services(self, value: pulumi.Input[Mapping[str, pulumi.Input['IAMOrgPolicyServicesArgs']]]): + def services(self, value: pulumi.Input[Mapping[str, pulumi.Input['IamOrgPolicyServicesArgs']]]): pulumi.set(self, "services", value) @property @pulumi.getter - def timeouts(self) -> Optional[pulumi.Input['IAMOrgPolicyTimeoutsArgs']]: + def timeouts(self) -> Optional[pulumi.Input['IamOrgPolicyTimeoutsArgs']]: return pulumi.get(self, "timeouts") @timeouts.setter - def timeouts(self, value: Optional[pulumi.Input['IAMOrgPolicyTimeoutsArgs']]): + def timeouts(self, value: Optional[pulumi.Input['IamOrgPolicyTimeoutsArgs']]): pulumi.set(self, "timeouts", value) @pulumi.input_type -class _IAMOrgPolicyState: +class _IamOrgPolicyState: def __init__(__self__, *, default_service_strategy: Optional[pulumi.Input[str]] = None, - services: Optional[pulumi.Input[Mapping[str, pulumi.Input['IAMOrgPolicyServicesArgs']]]] = None, - timeouts: Optional[pulumi.Input['IAMOrgPolicyTimeoutsArgs']] = None): + services: Optional[pulumi.Input[Mapping[str, pulumi.Input['IamOrgPolicyServicesArgs']]]] = None, + timeouts: Optional[pulumi.Input['IamOrgPolicyTimeoutsArgs']] = None): """ - Input properties used for looking up and filtering IAMOrgPolicy resources. + Input properties used for looking up and filtering IamOrgPolicy resources. :param pulumi.Input[str] default_service_strategy: Default service strategy (`allow` or `deny`). - :param pulumi.Input[Mapping[str, pulumi.Input['IAMOrgPolicyServicesArgs']]] services: IAM policy services. + :param pulumi.Input[Mapping[str, pulumi.Input['IamOrgPolicyServicesArgs']]] services: IAM policy services. """ if default_service_strategy is not None: pulumi.set(__self__, "default_service_strategy", default_service_strategy) @@ -95,57 +95,57 @@ def default_service_strategy(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter - def services(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input['IAMOrgPolicyServicesArgs']]]]: + def services(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input['IamOrgPolicyServicesArgs']]]]: """ IAM policy services. """ return pulumi.get(self, "services") @services.setter - def services(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input['IAMOrgPolicyServicesArgs']]]]): + def services(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input['IamOrgPolicyServicesArgs']]]]): pulumi.set(self, "services", value) @property @pulumi.getter - def timeouts(self) -> Optional[pulumi.Input['IAMOrgPolicyTimeoutsArgs']]: + def timeouts(self) -> Optional[pulumi.Input['IamOrgPolicyTimeoutsArgs']]: return pulumi.get(self, "timeouts") @timeouts.setter - def timeouts(self, value: Optional[pulumi.Input['IAMOrgPolicyTimeoutsArgs']]): + def timeouts(self, value: Optional[pulumi.Input['IamOrgPolicyTimeoutsArgs']]): pulumi.set(self, "timeouts", value) -class IAMOrgPolicy(pulumi.CustomResource): +class IamOrgPolicy(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, default_service_strategy: Optional[pulumi.Input[str]] = None, - services: Optional[pulumi.Input[Mapping[str, pulumi.Input[pulumi.InputType['IAMOrgPolicyServicesArgs']]]]] = None, - timeouts: Optional[pulumi.Input[pulumi.InputType['IAMOrgPolicyTimeoutsArgs']]] = None, + services: Optional[pulumi.Input[Mapping[str, pulumi.Input[pulumi.InputType['IamOrgPolicyServicesArgs']]]]] = None, + timeouts: Optional[pulumi.Input[pulumi.InputType['IamOrgPolicyTimeoutsArgs']]] = None, __props__=None): """ - Create a IAMOrgPolicy resource with the given unique name, props, and options. + Create a IamOrgPolicy resource with the given unique name, props, and options. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] default_service_strategy: Default service strategy (`allow` or `deny`). - :param pulumi.Input[Mapping[str, pulumi.Input[pulumi.InputType['IAMOrgPolicyServicesArgs']]]] services: IAM policy services. + :param pulumi.Input[Mapping[str, pulumi.Input[pulumi.InputType['IamOrgPolicyServicesArgs']]]] services: IAM policy services. """ ... @overload def __init__(__self__, resource_name: str, - args: IAMOrgPolicyArgs, + args: IamOrgPolicyArgs, opts: Optional[pulumi.ResourceOptions] = None): """ - Create a IAMOrgPolicy resource with the given unique name, props, and options. + Create a IamOrgPolicy resource with the given unique name, props, and options. :param str resource_name: The name of the resource. - :param IAMOrgPolicyArgs args: The arguments to use to populate this resource's properties. + :param IamOrgPolicyArgs 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(IAMOrgPolicyArgs, pulumi.ResourceOptions, *args, **kwargs) + resource_args, opts = _utilities.get_resource_args_opts(IamOrgPolicyArgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: @@ -155,8 +155,8 @@ def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, default_service_strategy: Optional[pulumi.Input[str]] = None, - services: Optional[pulumi.Input[Mapping[str, pulumi.Input[pulumi.InputType['IAMOrgPolicyServicesArgs']]]]] = None, - timeouts: Optional[pulumi.Input[pulumi.InputType['IAMOrgPolicyTimeoutsArgs']]] = None, + services: Optional[pulumi.Input[Mapping[str, pulumi.Input[pulumi.InputType['IamOrgPolicyServicesArgs']]]]] = None, + timeouts: Optional[pulumi.Input[pulumi.InputType['IamOrgPolicyTimeoutsArgs']]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -164,7 +164,7 @@ def _internal_init(__self__, 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__ = IAMOrgPolicyArgs.__new__(IAMOrgPolicyArgs) + __props__ = IamOrgPolicyArgs.__new__(IamOrgPolicyArgs) if default_service_strategy is None and not opts.urn: raise TypeError("Missing required property 'default_service_strategy'") @@ -173,8 +173,8 @@ def _internal_init(__self__, raise TypeError("Missing required property 'services'") __props__.__dict__["services"] = services __props__.__dict__["timeouts"] = timeouts - super(IAMOrgPolicy, __self__).__init__( - 'exoscale:index/iAMOrgPolicy:IAMOrgPolicy', + super(IamOrgPolicy, __self__).__init__( + 'exoscale:index/iamOrgPolicy:IamOrgPolicy', resource_name, __props__, opts) @@ -184,26 +184,26 @@ def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, default_service_strategy: Optional[pulumi.Input[str]] = None, - services: Optional[pulumi.Input[Mapping[str, pulumi.Input[pulumi.InputType['IAMOrgPolicyServicesArgs']]]]] = None, - timeouts: Optional[pulumi.Input[pulumi.InputType['IAMOrgPolicyTimeoutsArgs']]] = None) -> 'IAMOrgPolicy': + services: Optional[pulumi.Input[Mapping[str, pulumi.Input[pulumi.InputType['IamOrgPolicyServicesArgs']]]]] = None, + timeouts: Optional[pulumi.Input[pulumi.InputType['IamOrgPolicyTimeoutsArgs']]] = None) -> 'IamOrgPolicy': """ - Get an existing IAMOrgPolicy resource's state with the given name, id, and optional extra + Get an existing IamOrgPolicy 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] default_service_strategy: Default service strategy (`allow` or `deny`). - :param pulumi.Input[Mapping[str, pulumi.Input[pulumi.InputType['IAMOrgPolicyServicesArgs']]]] services: IAM policy services. + :param pulumi.Input[Mapping[str, pulumi.Input[pulumi.InputType['IamOrgPolicyServicesArgs']]]] services: IAM policy services. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - __props__ = _IAMOrgPolicyState.__new__(_IAMOrgPolicyState) + __props__ = _IamOrgPolicyState.__new__(_IamOrgPolicyState) __props__.__dict__["default_service_strategy"] = default_service_strategy __props__.__dict__["services"] = services __props__.__dict__["timeouts"] = timeouts - return IAMOrgPolicy(resource_name, opts=opts, __props__=__props__) + return IamOrgPolicy(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter(name="defaultServiceStrategy") @@ -215,7 +215,7 @@ def default_service_strategy(self) -> pulumi.Output[str]: @property @pulumi.getter - def services(self) -> pulumi.Output[Mapping[str, 'outputs.IAMOrgPolicyServices']]: + def services(self) -> pulumi.Output[Mapping[str, 'outputs.IamOrgPolicyServices']]: """ IAM policy services. """ @@ -223,6 +223,6 @@ def services(self) -> pulumi.Output[Mapping[str, 'outputs.IAMOrgPolicyServices'] @property @pulumi.getter - def timeouts(self) -> pulumi.Output[Optional['outputs.IAMOrgPolicyTimeouts']]: + def timeouts(self) -> pulumi.Output[Optional['outputs.IamOrgPolicyTimeouts']]: return pulumi.get(self, "timeouts") diff --git a/sdk/python/pulumiverse_exoscale/iam_role.py b/sdk/python/pulumiverse_exoscale/iam_role.py index a28e28e3..faeac7dc 100644 --- a/sdk/python/pulumiverse_exoscale/iam_role.py +++ b/sdk/python/pulumiverse_exoscale/iam_role.py @@ -11,26 +11,26 @@ from . import outputs from ._inputs import * -__all__ = ['IAMRoleArgs', 'IAMRole'] +__all__ = ['IamRoleArgs', 'IamRole'] @pulumi.input_type -class IAMRoleArgs: +class IamRoleArgs: def __init__(__self__, *, description: Optional[pulumi.Input[str]] = None, editable: Optional[pulumi.Input[bool]] = None, labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, name: Optional[pulumi.Input[str]] = None, permissions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - policy: Optional[pulumi.Input['IAMRolePolicyArgs']] = None, - timeouts: Optional[pulumi.Input['IAMRoleTimeoutsArgs']] = None): + policy: Optional[pulumi.Input['IamRolePolicyArgs']] = None, + timeouts: Optional[pulumi.Input['IamRoleTimeoutsArgs']] = None): """ - The set of arguments for constructing a IAMRole resource. + The set of arguments for constructing a IamRole resource. :param pulumi.Input[str] description: A free-form text describing the IAM Role :param pulumi.Input[bool] editable: Defines if IAM Role Policy is editable or not. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: IAM Role labels. - :param pulumi.Input[str] name: Name of IAM Role. + :param pulumi.Input[str] name: ❗Name of IAM Role. :param pulumi.Input[Sequence[pulumi.Input[str]]] permissions: IAM Role permissions. - :param pulumi.Input['IAMRolePolicyArgs'] policy: IAM Policy. + :param pulumi.Input['IamRolePolicyArgs'] policy: IAM Policy. """ if description is not None: pulumi.set(__self__, "description", description) @@ -87,7 +87,7 @@ def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]) @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ - Name of IAM Role. + ❗Name of IAM Role. """ return pulumi.get(self, "name") @@ -109,44 +109,44 @@ def permissions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] @property @pulumi.getter - def policy(self) -> Optional[pulumi.Input['IAMRolePolicyArgs']]: + def policy(self) -> Optional[pulumi.Input['IamRolePolicyArgs']]: """ IAM Policy. """ return pulumi.get(self, "policy") @policy.setter - def policy(self, value: Optional[pulumi.Input['IAMRolePolicyArgs']]): + def policy(self, value: Optional[pulumi.Input['IamRolePolicyArgs']]): pulumi.set(self, "policy", value) @property @pulumi.getter - def timeouts(self) -> Optional[pulumi.Input['IAMRoleTimeoutsArgs']]: + def timeouts(self) -> Optional[pulumi.Input['IamRoleTimeoutsArgs']]: return pulumi.get(self, "timeouts") @timeouts.setter - def timeouts(self, value: Optional[pulumi.Input['IAMRoleTimeoutsArgs']]): + def timeouts(self, value: Optional[pulumi.Input['IamRoleTimeoutsArgs']]): pulumi.set(self, "timeouts", value) @pulumi.input_type -class _IAMRoleState: +class _IamRoleState: def __init__(__self__, *, description: Optional[pulumi.Input[str]] = None, editable: Optional[pulumi.Input[bool]] = None, labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, name: Optional[pulumi.Input[str]] = None, permissions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - policy: Optional[pulumi.Input['IAMRolePolicyArgs']] = None, - timeouts: Optional[pulumi.Input['IAMRoleTimeoutsArgs']] = None): + policy: Optional[pulumi.Input['IamRolePolicyArgs']] = None, + timeouts: Optional[pulumi.Input['IamRoleTimeoutsArgs']] = None): """ - Input properties used for looking up and filtering IAMRole resources. + Input properties used for looking up and filtering IamRole resources. :param pulumi.Input[str] description: A free-form text describing the IAM Role :param pulumi.Input[bool] editable: Defines if IAM Role Policy is editable or not. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: IAM Role labels. - :param pulumi.Input[str] name: Name of IAM Role. + :param pulumi.Input[str] name: ❗Name of IAM Role. :param pulumi.Input[Sequence[pulumi.Input[str]]] permissions: IAM Role permissions. - :param pulumi.Input['IAMRolePolicyArgs'] policy: IAM Policy. + :param pulumi.Input['IamRolePolicyArgs'] policy: IAM Policy. """ if description is not None: pulumi.set(__self__, "description", description) @@ -203,7 +203,7 @@ def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]) @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ - Name of IAM Role. + ❗Name of IAM Role. """ return pulumi.get(self, "name") @@ -225,27 +225,27 @@ def permissions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] @property @pulumi.getter - def policy(self) -> Optional[pulumi.Input['IAMRolePolicyArgs']]: + def policy(self) -> Optional[pulumi.Input['IamRolePolicyArgs']]: """ IAM Policy. """ return pulumi.get(self, "policy") @policy.setter - def policy(self, value: Optional[pulumi.Input['IAMRolePolicyArgs']]): + def policy(self, value: Optional[pulumi.Input['IamRolePolicyArgs']]): pulumi.set(self, "policy", value) @property @pulumi.getter - def timeouts(self) -> Optional[pulumi.Input['IAMRoleTimeoutsArgs']]: + def timeouts(self) -> Optional[pulumi.Input['IamRoleTimeoutsArgs']]: return pulumi.get(self, "timeouts") @timeouts.setter - def timeouts(self, value: Optional[pulumi.Input['IAMRoleTimeoutsArgs']]): + def timeouts(self, value: Optional[pulumi.Input['IamRoleTimeoutsArgs']]): pulumi.set(self, "timeouts", value) -class IAMRole(pulumi.CustomResource): +class IamRole(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, @@ -255,8 +255,8 @@ def __init__(__self__, labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, name: Optional[pulumi.Input[str]] = None, permissions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - policy: Optional[pulumi.Input[pulumi.InputType['IAMRolePolicyArgs']]] = None, - timeouts: Optional[pulumi.Input[pulumi.InputType['IAMRoleTimeoutsArgs']]] = None, + policy: Optional[pulumi.Input[pulumi.InputType['IamRolePolicyArgs']]] = None, + timeouts: Optional[pulumi.Input[pulumi.InputType['IamRoleTimeoutsArgs']]] = None, __props__=None): """ Manage Exoscale [IAM](https://community.exoscale.com/documentation/iam/) Role. @@ -266,26 +266,26 @@ def __init__(__self__, :param pulumi.Input[str] description: A free-form text describing the IAM Role :param pulumi.Input[bool] editable: Defines if IAM Role Policy is editable or not. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: IAM Role labels. - :param pulumi.Input[str] name: Name of IAM Role. + :param pulumi.Input[str] name: ❗Name of IAM Role. :param pulumi.Input[Sequence[pulumi.Input[str]]] permissions: IAM Role permissions. - :param pulumi.Input[pulumi.InputType['IAMRolePolicyArgs']] policy: IAM Policy. + :param pulumi.Input[pulumi.InputType['IamRolePolicyArgs']] policy: IAM Policy. """ ... @overload def __init__(__self__, resource_name: str, - args: Optional[IAMRoleArgs] = None, + args: Optional[IamRoleArgs] = None, opts: Optional[pulumi.ResourceOptions] = None): """ Manage Exoscale [IAM](https://community.exoscale.com/documentation/iam/) Role. :param str resource_name: The name of the resource. - :param IAMRoleArgs args: The arguments to use to populate this resource's properties. + :param IamRoleArgs 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(IAMRoleArgs, pulumi.ResourceOptions, *args, **kwargs) + resource_args, opts = _utilities.get_resource_args_opts(IamRoleArgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: @@ -299,8 +299,8 @@ def _internal_init(__self__, labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, name: Optional[pulumi.Input[str]] = None, permissions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - policy: Optional[pulumi.Input[pulumi.InputType['IAMRolePolicyArgs']]] = None, - timeouts: Optional[pulumi.Input[pulumi.InputType['IAMRoleTimeoutsArgs']]] = None, + policy: Optional[pulumi.Input[pulumi.InputType['IamRolePolicyArgs']]] = None, + timeouts: Optional[pulumi.Input[pulumi.InputType['IamRoleTimeoutsArgs']]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -308,7 +308,7 @@ def _internal_init(__self__, 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__ = IAMRoleArgs.__new__(IAMRoleArgs) + __props__ = IamRoleArgs.__new__(IamRoleArgs) __props__.__dict__["description"] = description __props__.__dict__["editable"] = editable @@ -317,8 +317,8 @@ def _internal_init(__self__, __props__.__dict__["permissions"] = permissions __props__.__dict__["policy"] = policy __props__.__dict__["timeouts"] = timeouts - super(IAMRole, __self__).__init__( - 'exoscale:index/iAMRole:IAMRole', + super(IamRole, __self__).__init__( + 'exoscale:index/iamRole:IamRole', resource_name, __props__, opts) @@ -332,10 +332,10 @@ def get(resource_name: str, labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, name: Optional[pulumi.Input[str]] = None, permissions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - policy: Optional[pulumi.Input[pulumi.InputType['IAMRolePolicyArgs']]] = None, - timeouts: Optional[pulumi.Input[pulumi.InputType['IAMRoleTimeoutsArgs']]] = None) -> 'IAMRole': + policy: Optional[pulumi.Input[pulumi.InputType['IamRolePolicyArgs']]] = None, + timeouts: Optional[pulumi.Input[pulumi.InputType['IamRoleTimeoutsArgs']]] = None) -> 'IamRole': """ - Get an existing IAMRole resource's state with the given name, id, and optional extra + Get an existing IamRole 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. @@ -344,13 +344,13 @@ def get(resource_name: str, :param pulumi.Input[str] description: A free-form text describing the IAM Role :param pulumi.Input[bool] editable: Defines if IAM Role Policy is editable or not. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: IAM Role labels. - :param pulumi.Input[str] name: Name of IAM Role. + :param pulumi.Input[str] name: ❗Name of IAM Role. :param pulumi.Input[Sequence[pulumi.Input[str]]] permissions: IAM Role permissions. - :param pulumi.Input[pulumi.InputType['IAMRolePolicyArgs']] policy: IAM Policy. + :param pulumi.Input[pulumi.InputType['IamRolePolicyArgs']] policy: IAM Policy. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - __props__ = _IAMRoleState.__new__(_IAMRoleState) + __props__ = _IamRoleState.__new__(_IamRoleState) __props__.__dict__["description"] = description __props__.__dict__["editable"] = editable @@ -359,7 +359,7 @@ def get(resource_name: str, __props__.__dict__["permissions"] = permissions __props__.__dict__["policy"] = policy __props__.__dict__["timeouts"] = timeouts - return IAMRole(resource_name, opts=opts, __props__=__props__) + return IamRole(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter @@ -389,7 +389,7 @@ def labels(self) -> pulumi.Output[Mapping[str, str]]: @pulumi.getter def name(self) -> pulumi.Output[str]: """ - Name of IAM Role. + ❗Name of IAM Role. """ return pulumi.get(self, "name") @@ -403,7 +403,7 @@ def permissions(self) -> pulumi.Output[Sequence[str]]: @property @pulumi.getter - def policy(self) -> pulumi.Output['outputs.IAMRolePolicy']: + def policy(self) -> pulumi.Output['outputs.IamRolePolicy']: """ IAM Policy. """ @@ -411,6 +411,6 @@ def policy(self) -> pulumi.Output['outputs.IAMRolePolicy']: @property @pulumi.getter - def timeouts(self) -> pulumi.Output[Optional['outputs.IAMRoleTimeouts']]: + def timeouts(self) -> pulumi.Output[Optional['outputs.IamRoleTimeouts']]: return pulumi.get(self, "timeouts") diff --git a/sdk/python/pulumiverse_exoscale/instance_pool.py b/sdk/python/pulumiverse_exoscale/instance_pool.py index bca22504..350b1295 100644 --- a/sdk/python/pulumiverse_exoscale/instance_pool.py +++ b/sdk/python/pulumiverse_exoscale/instance_pool.py @@ -742,6 +742,30 @@ def __init__(__self__, zone: Optional[pulumi.Input[str]] = None, __props__=None): """ + Manage Exoscale [Instance Pools](https://community.exoscale.com/documentation/compute/instance-pools/). + + Corresponding data sources: exoscale_instance_pool, exoscale_instance_pool_list. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + import pulumiverse_exoscale as exoscale + + my_template = exoscale.get_template(zone="ch-gva-2", + name="Linux Ubuntu 22.04 LTS 64-bit") + my_instance_pool = exoscale.InstancePool("myInstancePool", + zone="ch-gva-2", + template_id=my_template.id, + instance_type="standard.medium", + disk_size=10, + size=3) + ``` + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing instance pool may be imported by `@` @@ -784,6 +808,30 @@ def __init__(__self__, args: InstancePoolArgs, opts: Optional[pulumi.ResourceOptions] = None): """ + Manage Exoscale [Instance Pools](https://community.exoscale.com/documentation/compute/instance-pools/). + + Corresponding data sources: exoscale_instance_pool, exoscale_instance_pool_list. + + ## Example Usage + + ```python + import pulumi + import pulumi_exoscale as exoscale + import pulumiverse_exoscale as exoscale + + my_template = exoscale.get_template(zone="ch-gva-2", + name="Linux Ubuntu 22.04 LTS 64-bit") + my_instance_pool = exoscale.InstancePool("myInstancePool", + zone="ch-gva-2", + template_id=my_template.id, + instance_type="standard.medium", + disk_size=10, + size=3) + ``` + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing instance pool may be imported by `@` diff --git a/sdk/python/pulumiverse_exoscale/nlb.py b/sdk/python/pulumiverse_exoscale/nlb.py index 00e32b34..19b974c4 100644 --- a/sdk/python/pulumiverse_exoscale/nlb.py +++ b/sdk/python/pulumiverse_exoscale/nlb.py @@ -9,17 +9,17 @@ from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities -__all__ = ['NLBArgs', 'NLB'] +__all__ = ['NlbArgs', 'Nlb'] @pulumi.input_type -class NLBArgs: +class NlbArgs: def __init__(__self__, *, zone: pulumi.Input[str], description: Optional[pulumi.Input[str]] = None, labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, name: Optional[pulumi.Input[str]] = None): """ - The set of arguments for constructing a NLB resource. + The set of arguments for constructing a Nlb resource. :param pulumi.Input[str] zone: ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. :param pulumi.Input[str] description: A free-form text describing the NLB. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: A map of key/value labels. @@ -83,7 +83,7 @@ def name(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class _NLBState: +class _NlbState: def __init__(__self__, *, created_at: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, @@ -94,7 +94,7 @@ def __init__(__self__, *, state: Optional[pulumi.Input[str]] = None, zone: Optional[pulumi.Input[str]] = None): """ - Input properties used for looking up and filtering NLB resources. + Input properties used for looking up and filtering Nlb resources. :param pulumi.Input[str] created_at: The NLB creation date. :param pulumi.Input[str] description: A free-form text describing the NLB. :param pulumi.Input[str] ip_address: The NLB IPv4 address. @@ -218,7 +218,7 @@ def zone(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "zone", value) -class NLB(pulumi.CustomResource): +class Nlb(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, @@ -229,12 +229,30 @@ def __init__(__self__, zone: Optional[pulumi.Input[str]] = None, __props__=None): """ + Manage Exoscale [Network Load Balancers (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/). + + Corresponding data source: exoscale_nlb. + + ## Example Usage + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_nlb = exoscale.Nlb("myNlb", zone="ch-gva-2") + ``` + + Next step is to attach exoscale_nlb_service(s) to the NLB. + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing network load balancer (NLB) may be imported by `@`console ```sh - $ pulumi import exoscale:index/nLB:NLB \\ + $ pulumi import exoscale:index/nlb:Nlb \\ ``` exoscale_nlb.my_nlb \\ @@ -252,15 +270,33 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: NLBArgs, + args: NlbArgs, opts: Optional[pulumi.ResourceOptions] = None): """ + Manage Exoscale [Network Load Balancers (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/). + + Corresponding data source: exoscale_nlb. + + ## Example Usage + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_nlb = exoscale.Nlb("myNlb", zone="ch-gva-2") + ``` + + Next step is to attach exoscale_nlb_service(s) to the NLB. + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing network load balancer (NLB) may be imported by `@`console ```sh - $ pulumi import exoscale:index/nLB:NLB \\ + $ pulumi import exoscale:index/nlb:Nlb \\ ``` exoscale_nlb.my_nlb \\ @@ -268,12 +304,12 @@ def __init__(__self__, f81d4fae-7dec-11d0-a765-00a0c91e6bf6@ch-gva-2 :param str resource_name: The name of the resource. - :param NLBArgs args: The arguments to use to populate this resource's properties. + :param NlbArgs 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(NLBArgs, pulumi.ResourceOptions, *args, **kwargs) + resource_args, opts = _utilities.get_resource_args_opts(NlbArgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: @@ -293,7 +329,7 @@ def _internal_init(__self__, 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__ = NLBArgs.__new__(NLBArgs) + __props__ = NlbArgs.__new__(NlbArgs) __props__.__dict__["description"] = description __props__.__dict__["labels"] = labels @@ -305,8 +341,8 @@ def _internal_init(__self__, __props__.__dict__["ip_address"] = None __props__.__dict__["services"] = None __props__.__dict__["state"] = None - super(NLB, __self__).__init__( - 'exoscale:index/nLB:NLB', + super(Nlb, __self__).__init__( + 'exoscale:index/nlb:Nlb', resource_name, __props__, opts) @@ -322,9 +358,9 @@ def get(resource_name: str, name: Optional[pulumi.Input[str]] = None, services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, state: Optional[pulumi.Input[str]] = None, - zone: Optional[pulumi.Input[str]] = None) -> 'NLB': + zone: Optional[pulumi.Input[str]] = None) -> 'Nlb': """ - Get an existing NLB resource's state with the given name, id, and optional extra + Get an existing Nlb 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. @@ -341,7 +377,7 @@ def get(resource_name: str, """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - __props__ = _NLBState.__new__(_NLBState) + __props__ = _NlbState.__new__(_NlbState) __props__.__dict__["created_at"] = created_at __props__.__dict__["description"] = description @@ -351,7 +387,7 @@ def get(resource_name: str, __props__.__dict__["services"] = services __props__.__dict__["state"] = state __props__.__dict__["zone"] = zone - return NLB(resource_name, opts=opts, __props__=__props__) + return Nlb(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter(name="createdAt") diff --git a/sdk/python/pulumiverse_exoscale/nlb_service.py b/sdk/python/pulumiverse_exoscale/nlb_service.py index 166cb7a9..d99c3f25 100644 --- a/sdk/python/pulumiverse_exoscale/nlb_service.py +++ b/sdk/python/pulumiverse_exoscale/nlb_service.py @@ -11,12 +11,12 @@ from . import outputs from ._inputs import * -__all__ = ['NLBServiceArgs', 'NLBService'] +__all__ = ['NlbServiceArgs', 'NlbService'] @pulumi.input_type -class NLBServiceArgs: +class NlbServiceArgs: def __init__(__self__, *, - healthchecks: pulumi.Input[Sequence[pulumi.Input['NLBServiceHealthcheckArgs']]], + healthchecks: pulumi.Input[Sequence[pulumi.Input['NlbServiceHealthcheckArgs']]], instance_pool_id: pulumi.Input[str], nlb_id: pulumi.Input[str], port: pulumi.Input[int], @@ -27,10 +27,10 @@ def __init__(__self__, *, protocol: Optional[pulumi.Input[str]] = None, strategy: Optional[pulumi.Input[str]] = None): """ - The set of arguments for constructing a NLBService resource. - :param pulumi.Input[Sequence[pulumi.Input['NLBServiceHealthcheckArgs']]] healthchecks: The service health checking configuration. + The set of arguments for constructing a NlbService resource. + :param pulumi.Input[Sequence[pulumi.Input['NlbServiceHealthcheckArgs']]] healthchecks: The service health checking configuration. :param pulumi.Input[str] instance_pool_id: ❗ The exoscale*instance*pool (ID) to forward traffic to. - :param pulumi.Input[str] nlb_id: ❗ The parent NLB ID. + :param pulumi.Input[str] nlb_id: ❗ The parent Nlb ID. :param pulumi.Input[int] port: The NLB service (TCP/UDP) port. :param pulumi.Input[int] target_port: The (TCP/UDP) port to forward traffic to (on target instance pool members). :param pulumi.Input[str] zone: ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. @@ -56,14 +56,14 @@ def __init__(__self__, *, @property @pulumi.getter - def healthchecks(self) -> pulumi.Input[Sequence[pulumi.Input['NLBServiceHealthcheckArgs']]]: + def healthchecks(self) -> pulumi.Input[Sequence[pulumi.Input['NlbServiceHealthcheckArgs']]]: """ The service health checking configuration. """ return pulumi.get(self, "healthchecks") @healthchecks.setter - def healthchecks(self, value: pulumi.Input[Sequence[pulumi.Input['NLBServiceHealthcheckArgs']]]): + def healthchecks(self, value: pulumi.Input[Sequence[pulumi.Input['NlbServiceHealthcheckArgs']]]): pulumi.set(self, "healthchecks", value) @property @@ -82,7 +82,7 @@ def instance_pool_id(self, value: pulumi.Input[str]): @pulumi.getter(name="nlbId") def nlb_id(self) -> pulumi.Input[str]: """ - ❗ The parent NLB ID. + ❗ The parent Nlb ID. """ return pulumi.get(self, "nlb_id") @@ -176,10 +176,10 @@ def strategy(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class _NLBServiceState: +class _NlbServiceState: def __init__(__self__, *, description: Optional[pulumi.Input[str]] = None, - healthchecks: Optional[pulumi.Input[Sequence[pulumi.Input['NLBServiceHealthcheckArgs']]]] = None, + healthchecks: Optional[pulumi.Input[Sequence[pulumi.Input['NlbServiceHealthcheckArgs']]]] = None, instance_pool_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, nlb_id: Optional[pulumi.Input[str]] = None, @@ -190,12 +190,12 @@ def __init__(__self__, *, target_port: Optional[pulumi.Input[int]] = None, zone: Optional[pulumi.Input[str]] = None): """ - Input properties used for looking up and filtering NLBService resources. + Input properties used for looking up and filtering NlbService resources. :param pulumi.Input[str] description: A free-form text describing the NLB service. - :param pulumi.Input[Sequence[pulumi.Input['NLBServiceHealthcheckArgs']]] healthchecks: The service health checking configuration. + :param pulumi.Input[Sequence[pulumi.Input['NlbServiceHealthcheckArgs']]] healthchecks: The service health checking configuration. :param pulumi.Input[str] instance_pool_id: ❗ The exoscale*instance*pool (ID) to forward traffic to. :param pulumi.Input[str] name: The NLB service name. - :param pulumi.Input[str] nlb_id: ❗ The parent NLB ID. + :param pulumi.Input[str] nlb_id: ❗ The parent Nlb ID. :param pulumi.Input[int] port: The NLB service (TCP/UDP) port. :param pulumi.Input[str] protocol: The protocol (`tcp`|`udp`; default: `tcp`). :param pulumi.Input[str] strategy: The strategy (`round-robin`|`source-hash`; default: `round-robin`). @@ -239,14 +239,14 @@ def description(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter - def healthchecks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NLBServiceHealthcheckArgs']]]]: + def healthchecks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NlbServiceHealthcheckArgs']]]]: """ The service health checking configuration. """ return pulumi.get(self, "healthchecks") @healthchecks.setter - def healthchecks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NLBServiceHealthcheckArgs']]]]): + def healthchecks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NlbServiceHealthcheckArgs']]]]): pulumi.set(self, "healthchecks", value) @property @@ -277,7 +277,7 @@ def name(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="nlbId") def nlb_id(self) -> Optional[pulumi.Input[str]]: """ - ❗ The parent NLB ID. + ❗ The parent Nlb ID. """ return pulumi.get(self, "nlb_id") @@ -355,13 +355,13 @@ def zone(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "zone", value) -class NLBService(pulumi.CustomResource): +class NlbService(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, description: Optional[pulumi.Input[str]] = None, - healthchecks: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NLBServiceHealthcheckArgs']]]]] = None, + healthchecks: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NlbServiceHealthcheckArgs']]]]] = None, instance_pool_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, nlb_id: Optional[pulumi.Input[str]] = None, @@ -372,12 +372,43 @@ def __init__(__self__, zone: Optional[pulumi.Input[str]] = None, __props__=None): """ + Manage Exoscale [Network Load Balancer (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/) Services. + + ## Example Usage + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_nlb = exoscale.Nlb("myNlb", zone="ch-gva-2") + my_nlb_service = exoscale.NlbService("myNlbService", + nlb_id=my_nlb.id, + zone=my_nlb.zone, + instance_pool_id=exoscale_instance_pool["my_instance_pool"]["id"], + protocol="tcp", + port=443, + target_port=8443, + strategy="round-robin", + healthchecks=[exoscale.NlbServiceHealthcheckArgs( + mode="https", + port=8443, + uri="/healthz", + tls_sni="example.net", + interval=5, + timeout=3, + retries=1, + )]) + ``` + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing NLB service may be imported by `/@` ```sh - $ pulumi import exoscale:index/nLBService:NLBService \\ + $ pulumi import exoscale:index/nlbService:NlbService \\ ``` exoscale_nlb_service.my_nlb_service \\ @@ -387,10 +418,10 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] description: A free-form text describing the NLB service. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NLBServiceHealthcheckArgs']]]] healthchecks: The service health checking configuration. + :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NlbServiceHealthcheckArgs']]]] healthchecks: The service health checking configuration. :param pulumi.Input[str] instance_pool_id: ❗ The exoscale*instance*pool (ID) to forward traffic to. :param pulumi.Input[str] name: The NLB service name. - :param pulumi.Input[str] nlb_id: ❗ The parent NLB ID. + :param pulumi.Input[str] nlb_id: ❗ The parent Nlb ID. :param pulumi.Input[int] port: The NLB service (TCP/UDP) port. :param pulumi.Input[str] protocol: The protocol (`tcp`|`udp`; default: `tcp`). :param pulumi.Input[str] strategy: The strategy (`round-robin`|`source-hash`; default: `round-robin`). @@ -401,15 +432,46 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: NLBServiceArgs, + args: NlbServiceArgs, opts: Optional[pulumi.ResourceOptions] = None): """ + Manage Exoscale [Network Load Balancer (NLB)](https://community.exoscale.com/documentation/compute/network-load-balancer/) Services. + + ## Example Usage + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_nlb = exoscale.Nlb("myNlb", zone="ch-gva-2") + my_nlb_service = exoscale.NlbService("myNlbService", + nlb_id=my_nlb.id, + zone=my_nlb.zone, + instance_pool_id=exoscale_instance_pool["my_instance_pool"]["id"], + protocol="tcp", + port=443, + target_port=8443, + strategy="round-robin", + healthchecks=[exoscale.NlbServiceHealthcheckArgs( + mode="https", + port=8443, + uri="/healthz", + tls_sni="example.net", + interval=5, + timeout=3, + retries=1, + )]) + ``` + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing NLB service may be imported by `/@` ```sh - $ pulumi import exoscale:index/nLBService:NLBService \\ + $ pulumi import exoscale:index/nlbService:NlbService \\ ``` exoscale_nlb_service.my_nlb_service \\ @@ -417,12 +479,12 @@ def __init__(__self__, f81d4fae-7dec-11d0-a765-00a0c91e6bf6/9ecc6b8b-73d4-4211-8ced-f7f29bb79524@ch-gva-2 :param str resource_name: The name of the resource. - :param NLBServiceArgs args: The arguments to use to populate this resource's properties. + :param NlbServiceArgs 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(NLBServiceArgs, pulumi.ResourceOptions, *args, **kwargs) + resource_args, opts = _utilities.get_resource_args_opts(NlbServiceArgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: @@ -432,7 +494,7 @@ def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, description: Optional[pulumi.Input[str]] = None, - healthchecks: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NLBServiceHealthcheckArgs']]]]] = None, + healthchecks: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NlbServiceHealthcheckArgs']]]]] = None, instance_pool_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, nlb_id: Optional[pulumi.Input[str]] = None, @@ -448,7 +510,7 @@ def _internal_init(__self__, 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__ = NLBServiceArgs.__new__(NLBServiceArgs) + __props__ = NlbServiceArgs.__new__(NlbServiceArgs) __props__.__dict__["description"] = description if healthchecks is None and not opts.urn: @@ -473,8 +535,8 @@ def _internal_init(__self__, raise TypeError("Missing required property 'zone'") __props__.__dict__["zone"] = zone __props__.__dict__["state"] = None - super(NLBService, __self__).__init__( - 'exoscale:index/nLBService:NLBService', + super(NlbService, __self__).__init__( + 'exoscale:index/nlbService:NlbService', resource_name, __props__, opts) @@ -484,7 +546,7 @@ def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, description: Optional[pulumi.Input[str]] = None, - healthchecks: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NLBServiceHealthcheckArgs']]]]] = None, + healthchecks: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NlbServiceHealthcheckArgs']]]]] = None, instance_pool_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, nlb_id: Optional[pulumi.Input[str]] = None, @@ -493,19 +555,19 @@ def get(resource_name: str, state: Optional[pulumi.Input[str]] = None, strategy: Optional[pulumi.Input[str]] = None, target_port: Optional[pulumi.Input[int]] = None, - zone: Optional[pulumi.Input[str]] = None) -> 'NLBService': + zone: Optional[pulumi.Input[str]] = None) -> 'NlbService': """ - Get an existing NLBService resource's state with the given name, id, and optional extra + Get an existing NlbService 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] description: A free-form text describing the NLB service. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NLBServiceHealthcheckArgs']]]] healthchecks: The service health checking configuration. + :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NlbServiceHealthcheckArgs']]]] healthchecks: The service health checking configuration. :param pulumi.Input[str] instance_pool_id: ❗ The exoscale*instance*pool (ID) to forward traffic to. :param pulumi.Input[str] name: The NLB service name. - :param pulumi.Input[str] nlb_id: ❗ The parent NLB ID. + :param pulumi.Input[str] nlb_id: ❗ The parent Nlb ID. :param pulumi.Input[int] port: The NLB service (TCP/UDP) port. :param pulumi.Input[str] protocol: The protocol (`tcp`|`udp`; default: `tcp`). :param pulumi.Input[str] strategy: The strategy (`round-robin`|`source-hash`; default: `round-robin`). @@ -514,7 +576,7 @@ def get(resource_name: str, """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - __props__ = _NLBServiceState.__new__(_NLBServiceState) + __props__ = _NlbServiceState.__new__(_NlbServiceState) __props__.__dict__["description"] = description __props__.__dict__["healthchecks"] = healthchecks @@ -527,7 +589,7 @@ def get(resource_name: str, __props__.__dict__["strategy"] = strategy __props__.__dict__["target_port"] = target_port __props__.__dict__["zone"] = zone - return NLBService(resource_name, opts=opts, __props__=__props__) + return NlbService(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter @@ -539,7 +601,7 @@ def description(self) -> pulumi.Output[Optional[str]]: @property @pulumi.getter - def healthchecks(self) -> pulumi.Output[Sequence['outputs.NLBServiceHealthcheck']]: + def healthchecks(self) -> pulumi.Output[Sequence['outputs.NlbServiceHealthcheck']]: """ The service health checking configuration. """ @@ -565,7 +627,7 @@ def name(self) -> pulumi.Output[str]: @pulumi.getter(name="nlbId") def nlb_id(self) -> pulumi.Output[str]: """ - ❗ The parent NLB ID. + ❗ The parent Nlb ID. """ return pulumi.get(self, "nlb_id") diff --git a/sdk/python/pulumiverse_exoscale/outputs.py b/sdk/python/pulumiverse_exoscale/outputs.py index d4baea24..b3bfd4e3 100644 --- a/sdk/python/pulumiverse_exoscale/outputs.py +++ b/sdk/python/pulumiverse_exoscale/outputs.py @@ -22,41 +22,41 @@ 'DatabasePg', 'DatabaseRedis', 'DatabaseTimeouts', - 'ElasticIPHealthcheck', - 'IAMAPIKeyTimeouts', - 'IAMOrgPolicyServices', - 'IAMOrgPolicyServicesRule', - 'IAMOrgPolicyTimeouts', - 'IAMRolePolicy', - 'IAMRolePolicyServices', - 'IAMRolePolicyServicesRule', - 'IAMRoleTimeouts', + 'ElasticIpHealthcheck', + 'IamApiKeyTimeouts', + 'IamOrgPolicyServices', + 'IamOrgPolicyServicesRule', + 'IamOrgPolicyTimeouts', + 'IamRolePolicy', + 'IamRolePolicyServices', + 'IamRolePolicyServicesRule', + 'IamRoleTimeouts', 'InstancePoolInstance', - 'NLBServiceHealthcheck', - 'SKSClusterOidc', + 'NlbServiceHealthcheck', + 'SksClusterOidc', 'GetComputeInstanceListInstanceResult', - 'GetDatabaseURITimeoutsResult', + 'GetDatabaseUriTimeoutsResult', 'GetDomainRecordFilterResult', 'GetDomainRecordRecordResult', - 'GetElasticIPHealthcheckResult', - 'GetIAMAPIKeyTimeoutsResult', - 'GetIAMOrgPolicyServicesResult', - 'GetIAMOrgPolicyServicesRuleResult', - 'GetIAMOrgPolicyTimeoutsResult', - 'GetIAMRolePolicyResult', - 'GetIAMRolePolicyServicesResult', - 'GetIAMRolePolicyServicesRuleResult', - 'GetIAMRoleTimeoutsResult', + 'GetElasticIpHealthcheckResult', + 'GetIamApiKeyTimeoutsResult', + 'GetIamOrgPolicyServicesResult', + 'GetIamOrgPolicyServicesRuleResult', + 'GetIamOrgPolicyTimeoutsResult', + 'GetIamRolePolicyResult', + 'GetIamRolePolicyServicesResult', + 'GetIamRolePolicyServicesRuleResult', + 'GetIamRoleTimeoutsResult', 'GetInstancePoolInstanceResult', 'GetInstancePoolListPoolResult', 'GetInstancePoolListPoolInstanceResult', - 'GetNLBServiceListServiceResult', - 'GetNLBServiceListServiceHealthcheckResult', - 'GetNLBServiceListTimeoutsResult', - 'GetSKSClusterListClusterResult', - 'GetSKSClusterListClusterOidcResult', - 'GetSKSClusterOidcResult', - 'GetSKSNodepoolListNodepoolResult', + 'GetNlbServiceListServiceResult', + 'GetNlbServiceListServiceHealthcheckResult', + 'GetNlbServiceListTimeoutsResult', + 'GetSksClusterListClusterResult', + 'GetSksClusterListClusterOidcResult', + 'GetSksClusterOidcResult', + 'GetSksNodepoolListNodepoolResult', ] @pulumi.output_type @@ -1018,7 +1018,7 @@ def update(self) -> Optional[str]: @pulumi.output_type -class ElasticIPHealthcheck(dict): +class ElasticIpHealthcheck(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -1032,14 +1032,14 @@ def __key_warning(key: str): suggest = "tls_sni" if suggest: - pulumi.log.warn(f"Key '{key}' not found in ElasticIPHealthcheck. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in ElasticIpHealthcheck. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - ElasticIPHealthcheck.__key_warning(key) + ElasticIpHealthcheck.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - ElasticIPHealthcheck.__key_warning(key) + ElasticIpHealthcheck.__key_warning(key) return super().get(key, default) def __init__(__self__, *, @@ -1154,7 +1154,7 @@ def uri(self) -> Optional[str]: @pulumi.output_type -class IAMAPIKeyTimeouts(dict): +class IamApiKeyTimeouts(dict): def __init__(__self__, *, read: Optional[str] = None): """ @@ -1173,12 +1173,12 @@ def read(self) -> Optional[str]: @pulumi.output_type -class IAMOrgPolicyServices(dict): +class IamOrgPolicyServices(dict): def __init__(__self__, *, - rules: Optional[Sequence['outputs.IAMOrgPolicyServicesRule']] = None, + rules: Optional[Sequence['outputs.IamOrgPolicyServicesRule']] = None, type: Optional[str] = None): """ - :param Sequence['IAMOrgPolicyServicesRuleArgs'] rules: List of IAM service rules (if type is `rules`). + :param Sequence['IamOrgPolicyServicesRuleArgs'] rules: List of IAM service rules (if type is `rules`). :param str type: Service type (`rules`, `allow`, or `deny`). """ if rules is not None: @@ -1188,7 +1188,7 @@ def __init__(__self__, *, @property @pulumi.getter - def rules(self) -> Optional[Sequence['outputs.IAMOrgPolicyServicesRule']]: + def rules(self) -> Optional[Sequence['outputs.IamOrgPolicyServicesRule']]: """ List of IAM service rules (if type is `rules`). """ @@ -1204,7 +1204,7 @@ def type(self) -> Optional[str]: @pulumi.output_type -class IAMOrgPolicyServicesRule(dict): +class IamOrgPolicyServicesRule(dict): def __init__(__self__, *, action: Optional[str] = None, expression: Optional[str] = None, @@ -1246,7 +1246,7 @@ def resources(self) -> Optional[Sequence[str]]: @pulumi.output_type -class IAMOrgPolicyTimeouts(dict): +class IamOrgPolicyTimeouts(dict): def __init__(__self__, *, read: Optional[str] = None): """ @@ -1265,7 +1265,7 @@ def read(self) -> Optional[str]: @pulumi.output_type -class IAMRolePolicy(dict): +class IamRolePolicy(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -1273,22 +1273,22 @@ def __key_warning(key: str): suggest = "default_service_strategy" if suggest: - pulumi.log.warn(f"Key '{key}' not found in IAMRolePolicy. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in IamRolePolicy. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - IAMRolePolicy.__key_warning(key) + IamRolePolicy.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - IAMRolePolicy.__key_warning(key) + IamRolePolicy.__key_warning(key) return super().get(key, default) def __init__(__self__, *, default_service_strategy: Optional[str] = None, - services: Optional[Mapping[str, 'outputs.IAMRolePolicyServices']] = None): + services: Optional[Mapping[str, 'outputs.IamRolePolicyServices']] = None): """ :param str default_service_strategy: Default service strategy (`allow` or `deny`). - :param Mapping[str, 'IAMRolePolicyServicesArgs'] services: IAM policy services. + :param Mapping[str, 'IamRolePolicyServicesArgs'] services: IAM policy services. """ if default_service_strategy is not None: pulumi.set(__self__, "default_service_strategy", default_service_strategy) @@ -1305,7 +1305,7 @@ def default_service_strategy(self) -> Optional[str]: @property @pulumi.getter - def services(self) -> Optional[Mapping[str, 'outputs.IAMRolePolicyServices']]: + def services(self) -> Optional[Mapping[str, 'outputs.IamRolePolicyServices']]: """ IAM policy services. """ @@ -1313,12 +1313,12 @@ def services(self) -> Optional[Mapping[str, 'outputs.IAMRolePolicyServices']]: @pulumi.output_type -class IAMRolePolicyServices(dict): +class IamRolePolicyServices(dict): def __init__(__self__, *, - rules: Optional[Sequence['outputs.IAMRolePolicyServicesRule']] = None, + rules: Optional[Sequence['outputs.IamRolePolicyServicesRule']] = None, type: Optional[str] = None): """ - :param Sequence['IAMRolePolicyServicesRuleArgs'] rules: List of IAM service rules (if type is `rules`). + :param Sequence['IamRolePolicyServicesRuleArgs'] rules: List of IAM service rules (if type is `rules`). :param str type: Service type (`rules`, `allow`, or `deny`). """ if rules is not None: @@ -1328,7 +1328,7 @@ def __init__(__self__, *, @property @pulumi.getter - def rules(self) -> Optional[Sequence['outputs.IAMRolePolicyServicesRule']]: + def rules(self) -> Optional[Sequence['outputs.IamRolePolicyServicesRule']]: """ List of IAM service rules (if type is `rules`). """ @@ -1344,7 +1344,7 @@ def type(self) -> Optional[str]: @pulumi.output_type -class IAMRolePolicyServicesRule(dict): +class IamRolePolicyServicesRule(dict): def __init__(__self__, *, action: Optional[str] = None, expression: Optional[str] = None, @@ -1386,7 +1386,7 @@ def resources(self) -> Optional[Sequence[str]]: @pulumi.output_type -class IAMRoleTimeouts(dict): +class IamRoleTimeouts(dict): def __init__(__self__, *, read: Optional[str] = None): """ @@ -1479,7 +1479,7 @@ def public_ip_address(self) -> Optional[str]: @pulumi.output_type -class NLBServiceHealthcheck(dict): +class NlbServiceHealthcheck(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -1487,14 +1487,14 @@ def __key_warning(key: str): suggest = "tls_sni" if suggest: - pulumi.log.warn(f"Key '{key}' not found in NLBServiceHealthcheck. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in NlbServiceHealthcheck. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - NLBServiceHealthcheck.__key_warning(key) + NlbServiceHealthcheck.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - NLBServiceHealthcheck.__key_warning(key) + NlbServiceHealthcheck.__key_warning(key) return super().get(key, default) def __init__(__self__, *, @@ -1586,7 +1586,7 @@ def uri(self) -> Optional[str]: @pulumi.output_type -class SKSClusterOidc(dict): +class SksClusterOidc(dict): @staticmethod def __key_warning(key: str): suggest = None @@ -1606,14 +1606,14 @@ def __key_warning(key: str): suggest = "username_prefix" if suggest: - pulumi.log.warn(f"Key '{key}' not found in SKSClusterOidc. Access the value via the '{suggest}' property getter instead.") + pulumi.log.warn(f"Key '{key}' not found in SksClusterOidc. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: - SKSClusterOidc.__key_warning(key) + SksClusterOidc.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: - SKSClusterOidc.__key_warning(key) + SksClusterOidc.__key_warning(key) return super().get(key, default) def __init__(__self__, *, @@ -1865,7 +1865,7 @@ def name(self) -> Optional[str]: @pulumi.output_type -class GetDatabaseURITimeoutsResult(dict): +class GetDatabaseUriTimeoutsResult(dict): def __init__(__self__, *, read: Optional[str] = None): """ @@ -2000,7 +2000,7 @@ def ttl(self) -> Optional[int]: @pulumi.output_type -class GetElasticIPHealthcheckResult(dict): +class GetElasticIpHealthcheckResult(dict): def __init__(__self__, *, interval: int, mode: str, @@ -2068,7 +2068,7 @@ def uri(self) -> str: @pulumi.output_type -class GetIAMAPIKeyTimeoutsResult(dict): +class GetIamApiKeyTimeoutsResult(dict): def __init__(__self__, *, read: Optional[str] = None): """ @@ -2087,12 +2087,12 @@ def read(self) -> Optional[str]: @pulumi.output_type -class GetIAMOrgPolicyServicesResult(dict): +class GetIamOrgPolicyServicesResult(dict): def __init__(__self__, *, - rules: Sequence['outputs.GetIAMOrgPolicyServicesRuleResult'], + rules: Sequence['outputs.GetIamOrgPolicyServicesRuleResult'], type: str): """ - :param Sequence['GetIAMOrgPolicyServicesRuleArgs'] rules: List of IAM service rules (if type is `rules`). + :param Sequence['GetIamOrgPolicyServicesRuleArgs'] rules: List of IAM service rules (if type is `rules`). :param str type: Service type (`rules`, `allow`, or `deny`). """ pulumi.set(__self__, "rules", rules) @@ -2100,7 +2100,7 @@ def __init__(__self__, *, @property @pulumi.getter - def rules(self) -> Sequence['outputs.GetIAMOrgPolicyServicesRuleResult']: + def rules(self) -> Sequence['outputs.GetIamOrgPolicyServicesRuleResult']: """ List of IAM service rules (if type is `rules`). """ @@ -2116,7 +2116,7 @@ def type(self) -> str: @pulumi.output_type -class GetIAMOrgPolicyServicesRuleResult(dict): +class GetIamOrgPolicyServicesRuleResult(dict): def __init__(__self__, *, action: str, expression: str, @@ -2155,7 +2155,7 @@ def resources(self) -> Sequence[str]: @pulumi.output_type -class GetIAMOrgPolicyTimeoutsResult(dict): +class GetIamOrgPolicyTimeoutsResult(dict): def __init__(__self__, *, read: Optional[str] = None): """ @@ -2174,13 +2174,13 @@ def read(self) -> Optional[str]: @pulumi.output_type -class GetIAMRolePolicyResult(dict): +class GetIamRolePolicyResult(dict): def __init__(__self__, *, default_service_strategy: str, - services: Mapping[str, 'outputs.GetIAMRolePolicyServicesResult']): + services: Mapping[str, 'outputs.GetIamRolePolicyServicesResult']): """ :param str default_service_strategy: Default service strategy (`allow` or `deny`). - :param Mapping[str, 'GetIAMRolePolicyServicesArgs'] services: IAM policy services. + :param Mapping[str, 'GetIamRolePolicyServicesArgs'] services: IAM policy services. """ pulumi.set(__self__, "default_service_strategy", default_service_strategy) pulumi.set(__self__, "services", services) @@ -2195,7 +2195,7 @@ def default_service_strategy(self) -> str: @property @pulumi.getter - def services(self) -> Mapping[str, 'outputs.GetIAMRolePolicyServicesResult']: + def services(self) -> Mapping[str, 'outputs.GetIamRolePolicyServicesResult']: """ IAM policy services. """ @@ -2203,12 +2203,12 @@ def services(self) -> Mapping[str, 'outputs.GetIAMRolePolicyServicesResult']: @pulumi.output_type -class GetIAMRolePolicyServicesResult(dict): +class GetIamRolePolicyServicesResult(dict): def __init__(__self__, *, - rules: Sequence['outputs.GetIAMRolePolicyServicesRuleResult'], + rules: Sequence['outputs.GetIamRolePolicyServicesRuleResult'], type: str): """ - :param Sequence['GetIAMRolePolicyServicesRuleArgs'] rules: List of IAM service rules (if type is `rules`). + :param Sequence['GetIamRolePolicyServicesRuleArgs'] rules: List of IAM service rules (if type is `rules`). :param str type: Service type (`rules`, `allow`, or `deny`). """ pulumi.set(__self__, "rules", rules) @@ -2216,7 +2216,7 @@ def __init__(__self__, *, @property @pulumi.getter - def rules(self) -> Sequence['outputs.GetIAMRolePolicyServicesRuleResult']: + def rules(self) -> Sequence['outputs.GetIamRolePolicyServicesRuleResult']: """ List of IAM service rules (if type is `rules`). """ @@ -2232,7 +2232,7 @@ def type(self) -> str: @pulumi.output_type -class GetIAMRolePolicyServicesRuleResult(dict): +class GetIamRolePolicyServicesRuleResult(dict): def __init__(__self__, *, action: str, expression: str, @@ -2271,7 +2271,7 @@ def resources(self) -> Sequence[str]: @pulumi.output_type -class GetIAMRoleTimeoutsResult(dict): +class GetIamRoleTimeoutsResult(dict): def __init__(__self__, *, read: Optional[str] = None): """ @@ -2508,10 +2508,10 @@ def name(self) -> Optional[str]: @pulumi.output_type -class GetNLBServiceListServiceResult(dict): +class GetNlbServiceListServiceResult(dict): def __init__(__self__, *, description: str, - healthcheck: 'outputs.GetNLBServiceListServiceHealthcheckResult', + healthcheck: 'outputs.GetNlbServiceListServiceHealthcheckResult', id: str, instance_pool_id: str, name: str, @@ -2552,7 +2552,7 @@ def description(self) -> str: @property @pulumi.getter - def healthcheck(self) -> 'outputs.GetNLBServiceListServiceHealthcheckResult': + def healthcheck(self) -> 'outputs.GetNlbServiceListServiceHealthcheckResult': return pulumi.get(self, "healthcheck") @property @@ -2621,7 +2621,7 @@ def target_port(self) -> int: @pulumi.output_type -class GetNLBServiceListServiceHealthcheckResult(dict): +class GetNlbServiceListServiceHealthcheckResult(dict): def __init__(__self__, *, interval: int, mode: str, @@ -2675,7 +2675,7 @@ def uri(self) -> str: @pulumi.output_type -class GetNLBServiceListTimeoutsResult(dict): +class GetNlbServiceListTimeoutsResult(dict): def __init__(__self__, *, read: Optional[str] = None): """ @@ -2694,7 +2694,7 @@ def read(self) -> Optional[str]: @pulumi.output_type -class GetSKSClusterListClusterResult(dict): +class GetSksClusterListClusterResult(dict): def __init__(__self__, *, addons: Sequence[str], aggregation_ca: str, @@ -2703,7 +2703,7 @@ def __init__(__self__, *, endpoint: str, kubelet_ca: str, nodepools: Sequence[str], - oidc: 'outputs.GetSKSClusterListClusterOidcResult', + oidc: 'outputs.GetSksClusterListClusterOidcResult', state: str, version: str, zone: str, @@ -2786,7 +2786,7 @@ def nodepools(self) -> Sequence[str]: @property @pulumi.getter - def oidc(self) -> 'outputs.GetSKSClusterListClusterOidcResult': + def oidc(self) -> 'outputs.GetSksClusterListClusterOidcResult': return pulumi.get(self, "oidc") @property @@ -2851,7 +2851,7 @@ def service_level(self) -> Optional[str]: @pulumi.output_type -class GetSKSClusterListClusterOidcResult(dict): +class GetSksClusterListClusterOidcResult(dict): def __init__(__self__, *, client_id: str, issuer_url: str, @@ -2910,7 +2910,7 @@ def username_prefix(self) -> Optional[str]: @pulumi.output_type -class GetSKSClusterOidcResult(dict): +class GetSksClusterOidcResult(dict): def __init__(__self__, *, client_id: str, issuer_url: str, @@ -2999,7 +2999,7 @@ def username_prefix(self) -> Optional[str]: @pulumi.output_type -class GetSKSNodepoolListNodepoolResult(dict): +class GetSksNodepoolListNodepoolResult(dict): def __init__(__self__, *, cluster_id: str, created_at: str, diff --git a/sdk/python/pulumiverse_exoscale/private_network.py b/sdk/python/pulumiverse_exoscale/private_network.py index 5ab076bb..883e8e43 100644 --- a/sdk/python/pulumiverse_exoscale/private_network.py +++ b/sdk/python/pulumiverse_exoscale/private_network.py @@ -264,6 +264,37 @@ def __init__(__self__, zone: Optional[pulumi.Input[str]] = None, __props__=None): """ + Manage Exoscale [Private Networks](https://community.exoscale.com/documentation/compute/private-networks/). + + Corresponding data source: exoscale_private_network. + + ## Example Usage + + *Unmanaged* private network: + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_private_network = exoscale.PrivateNetwork("myPrivateNetwork", zone="ch-gva-2") + ``` + + *Managed* private network: + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_managed_private_network = exoscale.PrivateNetwork("myManagedPrivateNetwork", + end_ip="10.0.0.253", + netmask="255.255.255.0", + start_ip="10.0.0.20", + zone="ch-gva-2") + ``` + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing private network may be imported by `@` @@ -293,6 +324,37 @@ def __init__(__self__, args: PrivateNetworkArgs, opts: Optional[pulumi.ResourceOptions] = None): """ + Manage Exoscale [Private Networks](https://community.exoscale.com/documentation/compute/private-networks/). + + Corresponding data source: exoscale_private_network. + + ## Example Usage + + *Unmanaged* private network: + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_private_network = exoscale.PrivateNetwork("myPrivateNetwork", zone="ch-gva-2") + ``` + + *Managed* private network: + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_managed_private_network = exoscale.PrivateNetwork("myManagedPrivateNetwork", + end_ip="10.0.0.253", + netmask="255.255.255.0", + start_ip="10.0.0.20", + zone="ch-gva-2") + ``` + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing private network may be imported by `@` diff --git a/sdk/python/pulumiverse_exoscale/security_group.py b/sdk/python/pulumiverse_exoscale/security_group.py index 464b17be..ae984527 100644 --- a/sdk/python/pulumiverse_exoscale/security_group.py +++ b/sdk/python/pulumiverse_exoscale/security_group.py @@ -133,6 +133,24 @@ def __init__(__self__, name: Optional[pulumi.Input[str]] = None, __props__=None): """ + Manage Exoscale [Security Groups](https://community.exoscale.com/documentation/compute/security-groups/). + + Corresponding data source: exoscale_security_group. + + ## Example Usage + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_security_group = exoscale.SecurityGroup("mySecurityGroup") + ``` + + Next step is to attach exoscale_security_group_rule(s) to the group. + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing security group may be imported by `` @@ -158,6 +176,24 @@ def __init__(__self__, args: Optional[SecurityGroupArgs] = None, opts: Optional[pulumi.ResourceOptions] = None): """ + Manage Exoscale [Security Groups](https://community.exoscale.com/documentation/compute/security-groups/). + + Corresponding data source: exoscale_security_group. + + ## Example Usage + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_security_group = exoscale.SecurityGroup("mySecurityGroup") + ``` + + Next step is to attach exoscale_security_group_rule(s) to the group. + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing security group may be imported by `` diff --git a/sdk/python/pulumiverse_exoscale/security_group_rule.py b/sdk/python/pulumiverse_exoscale/security_group_rule.py index 4b8e7585..d320d116 100644 --- a/sdk/python/pulumiverse_exoscale/security_group_rule.py +++ b/sdk/python/pulumiverse_exoscale/security_group_rule.py @@ -486,6 +486,27 @@ def __init__(__self__, user_security_group_id: Optional[pulumi.Input[str]] = None, __props__=None): """ + Manage Exoscale [Security Group](https://community.exoscale.com/documentation/compute/security-groups/) Rules. + + ## Example Usage + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_security_group = exoscale.SecurityGroup("mySecurityGroup") + my_security_group_rule = exoscale.SecurityGroupRule("mySecurityGroupRule", + security_group_id=my_security_group.id, + type="INGRESS", + protocol="TCP", + cidr="0.0.0.0/0", + start_port=80, + end_port=80) + ``` + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing security group rule may be imported by `/` @@ -521,6 +542,27 @@ def __init__(__self__, args: SecurityGroupRuleArgs, opts: Optional[pulumi.ResourceOptions] = None): """ + Manage Exoscale [Security Group](https://community.exoscale.com/documentation/compute/security-groups/) Rules. + + ## Example Usage + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_security_group = exoscale.SecurityGroup("mySecurityGroup") + my_security_group_rule = exoscale.SecurityGroupRule("mySecurityGroupRule", + security_group_id=my_security_group.id, + type="INGRESS", + protocol="TCP", + cidr="0.0.0.0/0", + start_port=80, + end_port=80) + ``` + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing security group rule may be imported by `/` diff --git a/sdk/python/pulumiverse_exoscale/sks_cluster.py b/sdk/python/pulumiverse_exoscale/sks_cluster.py index 3298c204..7e4f5909 100644 --- a/sdk/python/pulumiverse_exoscale/sks_cluster.py +++ b/sdk/python/pulumiverse_exoscale/sks_cluster.py @@ -11,10 +11,10 @@ from . import outputs from ._inputs import * -__all__ = ['SKSClusterArgs', 'SKSCluster'] +__all__ = ['SksClusterArgs', 'SksCluster'] @pulumi.input_type -class SKSClusterArgs: +class SksClusterArgs: def __init__(__self__, *, zone: pulumi.Input[str], addons: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, @@ -25,11 +25,11 @@ def __init__(__self__, *, labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, metrics_server: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, - oidc: Optional[pulumi.Input['SKSClusterOidcArgs']] = None, + oidc: Optional[pulumi.Input['SksClusterOidcArgs']] = None, service_level: Optional[pulumi.Input[str]] = None, version: Optional[pulumi.Input[str]] = None): """ - The set of arguments for constructing a SKSCluster resource. + The set of arguments for constructing a SksCluster resource. :param pulumi.Input[str] zone: ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. :param pulumi.Input[bool] auto_upgrade: Enable automatic upgrading of the control plane version. :param pulumi.Input[str] cni: The CNI plugin that is to be used. Available options are "calico" or "cilium". Defaults to "calico". Setting empty string will result in a cluster with no CNI. @@ -38,7 +38,7 @@ def __init__(__self__, *, :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: A map of key/value labels. :param pulumi.Input[bool] metrics_server: Deploy the [Kubernetes Metrics Server](https://github.com/kubernetes-sigs/metrics-server/) in the control plane (boolean; default: `true`; may only be set at creation time). :param pulumi.Input[str] name: The SKS cluster name. - :param pulumi.Input['SKSClusterOidcArgs'] oidc: An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. + :param pulumi.Input['SksClusterOidcArgs'] oidc: An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. :param pulumi.Input[str] service_level: The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). :param pulumi.Input[str] version: The version of the control plane (default: latest version available from the API; see `exo compute sks versions` for reference; may only be set at creation time). """ @@ -179,14 +179,14 @@ def name(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter - def oidc(self) -> Optional[pulumi.Input['SKSClusterOidcArgs']]: + def oidc(self) -> Optional[pulumi.Input['SksClusterOidcArgs']]: """ An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. """ return pulumi.get(self, "oidc") @oidc.setter - def oidc(self, value: Optional[pulumi.Input['SKSClusterOidcArgs']]): + def oidc(self, value: Optional[pulumi.Input['SksClusterOidcArgs']]): pulumi.set(self, "oidc", value) @property @@ -215,7 +215,7 @@ def version(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class _SKSClusterState: +class _SksClusterState: def __init__(__self__, *, addons: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, aggregation_ca: Optional[pulumi.Input[str]] = None, @@ -231,13 +231,13 @@ def __init__(__self__, *, metrics_server: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, nodepools: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - oidc: Optional[pulumi.Input['SKSClusterOidcArgs']] = None, + oidc: Optional[pulumi.Input['SksClusterOidcArgs']] = None, service_level: Optional[pulumi.Input[str]] = None, state: Optional[pulumi.Input[str]] = None, version: Optional[pulumi.Input[str]] = None, zone: Optional[pulumi.Input[str]] = None): """ - Input properties used for looking up and filtering SKSCluster resources. + Input properties used for looking up and filtering SksCluster resources. :param pulumi.Input[str] aggregation_ca: The CA certificate (in PEM format) for TLS communications between the control plane and the aggregation layer (e.g. `metrics-server`). :param pulumi.Input[bool] auto_upgrade: Enable automatic upgrading of the control plane version. :param pulumi.Input[str] cni: The CNI plugin that is to be used. Available options are "calico" or "cilium". Defaults to "calico". Setting empty string will result in a cluster with no CNI. @@ -251,7 +251,7 @@ def __init__(__self__, *, :param pulumi.Input[bool] metrics_server: Deploy the [Kubernetes Metrics Server](https://github.com/kubernetes-sigs/metrics-server/) in the control plane (boolean; default: `true`; may only be set at creation time). :param pulumi.Input[str] name: The SKS cluster name. :param pulumi.Input[Sequence[pulumi.Input[str]]] nodepools: The list of exoscale*sks*nodepool (IDs) attached to the cluster. - :param pulumi.Input['SKSClusterOidcArgs'] oidc: An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. + :param pulumi.Input['SksClusterOidcArgs'] oidc: An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. :param pulumi.Input[str] service_level: The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). :param pulumi.Input[str] state: The cluster state. :param pulumi.Input[str] version: The version of the control plane (default: latest version available from the API; see `exo compute sks versions` for reference; may only be set at creation time). @@ -469,14 +469,14 @@ def nodepools(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): @property @pulumi.getter - def oidc(self) -> Optional[pulumi.Input['SKSClusterOidcArgs']]: + def oidc(self) -> Optional[pulumi.Input['SksClusterOidcArgs']]: """ An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. """ return pulumi.get(self, "oidc") @oidc.setter - def oidc(self, value: Optional[pulumi.Input['SKSClusterOidcArgs']]): + def oidc(self, value: Optional[pulumi.Input['SksClusterOidcArgs']]): pulumi.set(self, "oidc", value) @property @@ -528,7 +528,7 @@ def zone(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "zone", value) -class SKSCluster(pulumi.CustomResource): +class SksCluster(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, @@ -541,18 +541,35 @@ def __init__(__self__, labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, metrics_server: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, - oidc: Optional[pulumi.Input[pulumi.InputType['SKSClusterOidcArgs']]] = None, + oidc: Optional[pulumi.Input[pulumi.InputType['SksClusterOidcArgs']]] = None, service_level: Optional[pulumi.Input[str]] = None, version: Optional[pulumi.Input[str]] = None, zone: Optional[pulumi.Input[str]] = None, __props__=None): """ + Manage Exoscale [Scalable Kubernetes Service (SKS)](https://community.exoscale.com/documentation/sks/) Clusters. + + ## Example Usage + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_sks_cluster = exoscale.SksCluster("mySksCluster", zone="ch-gva-2") + pulumi.export("mySksClusterEndpoint", my_sks_cluster.endpoint) + ``` + + Next step is to attach exoscale_sks_nodepool(s) to the cluster. + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing SKS cluster may be imported by `@` ```sh - $ pulumi import exoscale:index/sKSCluster:SKSCluster \\ + $ pulumi import exoscale:index/sksCluster:SksCluster \\ ``` exoscale_sks_cluster.my_sks_cluster \\ @@ -568,7 +585,7 @@ def __init__(__self__, :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: A map of key/value labels. :param pulumi.Input[bool] metrics_server: Deploy the [Kubernetes Metrics Server](https://github.com/kubernetes-sigs/metrics-server/) in the control plane (boolean; default: `true`; may only be set at creation time). :param pulumi.Input[str] name: The SKS cluster name. - :param pulumi.Input[pulumi.InputType['SKSClusterOidcArgs']] oidc: An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. + :param pulumi.Input[pulumi.InputType['SksClusterOidcArgs']] oidc: An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. :param pulumi.Input[str] service_level: The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). :param pulumi.Input[str] version: The version of the control plane (default: latest version available from the API; see `exo compute sks versions` for reference; may only be set at creation time). :param pulumi.Input[str] zone: ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. @@ -577,15 +594,32 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: SKSClusterArgs, + args: SksClusterArgs, opts: Optional[pulumi.ResourceOptions] = None): """ + Manage Exoscale [Scalable Kubernetes Service (SKS)](https://community.exoscale.com/documentation/sks/) Clusters. + + ## Example Usage + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_sks_cluster = exoscale.SksCluster("mySksCluster", zone="ch-gva-2") + pulumi.export("mySksClusterEndpoint", my_sks_cluster.endpoint) + ``` + + Next step is to attach exoscale_sks_nodepool(s) to the cluster. + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing SKS cluster may be imported by `@` ```sh - $ pulumi import exoscale:index/sKSCluster:SKSCluster \\ + $ pulumi import exoscale:index/sksCluster:SksCluster \\ ``` exoscale_sks_cluster.my_sks_cluster \\ @@ -593,12 +627,12 @@ def __init__(__self__, f81d4fae-7dec-11d0-a765-00a0c91e6bf6@ch-gva-2 :param str resource_name: The name of the resource. - :param SKSClusterArgs args: The arguments to use to populate this resource's properties. + :param SksClusterArgs 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(SKSClusterArgs, pulumi.ResourceOptions, *args, **kwargs) + resource_args, opts = _utilities.get_resource_args_opts(SksClusterArgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: @@ -615,7 +649,7 @@ def _internal_init(__self__, labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, metrics_server: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, - oidc: Optional[pulumi.Input[pulumi.InputType['SKSClusterOidcArgs']]] = None, + oidc: Optional[pulumi.Input[pulumi.InputType['SksClusterOidcArgs']]] = None, service_level: Optional[pulumi.Input[str]] = None, version: Optional[pulumi.Input[str]] = None, zone: Optional[pulumi.Input[str]] = None, @@ -626,7 +660,7 @@ def _internal_init(__self__, 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__ = SKSClusterArgs.__new__(SKSClusterArgs) + __props__ = SksClusterArgs.__new__(SksClusterArgs) __props__.__dict__["addons"] = addons __props__.__dict__["auto_upgrade"] = auto_upgrade @@ -649,8 +683,8 @@ def _internal_init(__self__, __props__.__dict__["kubelet_ca"] = None __props__.__dict__["nodepools"] = None __props__.__dict__["state"] = None - super(SKSCluster, __self__).__init__( - 'exoscale:index/sKSCluster:SKSCluster', + super(SksCluster, __self__).__init__( + 'exoscale:index/sksCluster:SksCluster', resource_name, __props__, opts) @@ -673,13 +707,13 @@ def get(resource_name: str, metrics_server: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, nodepools: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - oidc: Optional[pulumi.Input[pulumi.InputType['SKSClusterOidcArgs']]] = None, + oidc: Optional[pulumi.Input[pulumi.InputType['SksClusterOidcArgs']]] = None, service_level: Optional[pulumi.Input[str]] = None, state: Optional[pulumi.Input[str]] = None, version: Optional[pulumi.Input[str]] = None, - zone: Optional[pulumi.Input[str]] = None) -> 'SKSCluster': + zone: Optional[pulumi.Input[str]] = None) -> 'SksCluster': """ - Get an existing SKSCluster resource's state with the given name, id, and optional extra + Get an existing SksCluster 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. @@ -698,7 +732,7 @@ def get(resource_name: str, :param pulumi.Input[bool] metrics_server: Deploy the [Kubernetes Metrics Server](https://github.com/kubernetes-sigs/metrics-server/) in the control plane (boolean; default: `true`; may only be set at creation time). :param pulumi.Input[str] name: The SKS cluster name. :param pulumi.Input[Sequence[pulumi.Input[str]]] nodepools: The list of exoscale*sks*nodepool (IDs) attached to the cluster. - :param pulumi.Input[pulumi.InputType['SKSClusterOidcArgs']] oidc: An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. + :param pulumi.Input[pulumi.InputType['SksClusterOidcArgs']] oidc: An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. :param pulumi.Input[str] service_level: The service level of the control plane (`pro` or `starter`; default: `pro`; may only be set at creation time). :param pulumi.Input[str] state: The cluster state. :param pulumi.Input[str] version: The version of the control plane (default: latest version available from the API; see `exo compute sks versions` for reference; may only be set at creation time). @@ -706,7 +740,7 @@ def get(resource_name: str, """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - __props__ = _SKSClusterState.__new__(_SKSClusterState) + __props__ = _SksClusterState.__new__(_SksClusterState) __props__.__dict__["addons"] = addons __props__.__dict__["aggregation_ca"] = aggregation_ca @@ -727,7 +761,7 @@ def get(resource_name: str, __props__.__dict__["state"] = state __props__.__dict__["version"] = version __props__.__dict__["zone"] = zone - return SKSCluster(resource_name, opts=opts, __props__=__props__) + return SksCluster(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter @@ -843,7 +877,7 @@ def nodepools(self) -> pulumi.Output[Sequence[str]]: @property @pulumi.getter - def oidc(self) -> pulumi.Output['outputs.SKSClusterOidc']: + def oidc(self) -> pulumi.Output['outputs.SksClusterOidc']: """ An OpenID Connect configuration to provide to the Kubernetes API server (may only be set at creation time). Structure is documented below. """ diff --git a/sdk/python/pulumiverse_exoscale/sks_kubeconfig.py b/sdk/python/pulumiverse_exoscale/sks_kubeconfig.py index 36f5a7d6..8916eb87 100644 --- a/sdk/python/pulumiverse_exoscale/sks_kubeconfig.py +++ b/sdk/python/pulumiverse_exoscale/sks_kubeconfig.py @@ -9,10 +9,10 @@ from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities -__all__ = ['SKSKubeconfigArgs', 'SKSKubeconfig'] +__all__ = ['SksKubeconfigArgs', 'SksKubeconfig'] @pulumi.input_type -class SKSKubeconfigArgs: +class SksKubeconfigArgs: def __init__(__self__, *, cluster_id: pulumi.Input[str], groups: pulumi.Input[Sequence[pulumi.Input[str]]], @@ -21,7 +21,7 @@ def __init__(__self__, *, early_renewal_seconds: Optional[pulumi.Input[int]] = None, ttl_seconds: Optional[pulumi.Input[float]] = None): """ - The set of arguments for constructing a SKSKubeconfig resource. + The set of arguments for constructing a SksKubeconfig resource. :param pulumi.Input[str] cluster_id: ❗ The parent exoscale*sks*cluster ID. :param pulumi.Input[Sequence[pulumi.Input[str]]] groups: ❗ Group names in the generated Kubeconfig. The certificate present in the Kubeconfig will have these roles set in the Organization field. :param pulumi.Input[str] user: ❗ User name in the generated Kubeconfig. The certificate present in the Kubeconfig will also have this name set for the CN field. @@ -120,7 +120,7 @@ def ttl_seconds(self, value: Optional[pulumi.Input[float]]): @pulumi.input_type -class _SKSKubeconfigState: +class _SksKubeconfigState: def __init__(__self__, *, cluster_id: Optional[pulumi.Input[str]] = None, early_renewal_seconds: Optional[pulumi.Input[int]] = None, @@ -131,7 +131,7 @@ def __init__(__self__, *, user: Optional[pulumi.Input[str]] = None, zone: Optional[pulumi.Input[str]] = None): """ - Input properties used for looking up and filtering SKSKubeconfig resources. + Input properties used for looking up and filtering SksKubeconfig resources. :param pulumi.Input[str] cluster_id: ❗ The parent exoscale*sks*cluster ID. :param pulumi.Input[int] early_renewal_seconds: If set, the resource will consider the Kubeconfig to have expired the given number of seconds before its actual CA certificate or client certificate expiry time. This can be useful to deploy an updated Kubeconfig in advance of the @@ -259,7 +259,7 @@ def zone(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "zone", value) -class SKSKubeconfig(pulumi.CustomResource): +class SksKubeconfig(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, @@ -272,7 +272,7 @@ def __init__(__self__, zone: Optional[pulumi.Input[str]] = None, __props__=None): """ - Create a SKSKubeconfig resource with the given unique name, props, and options. + Create a SksKubeconfig resource with the given unique name, props, and options. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] cluster_id: ❗ The parent exoscale*sks*cluster ID. @@ -290,17 +290,17 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: SKSKubeconfigArgs, + args: SksKubeconfigArgs, opts: Optional[pulumi.ResourceOptions] = None): """ - Create a SKSKubeconfig resource with the given unique name, props, and options. + Create a SksKubeconfig resource with the given unique name, props, and options. :param str resource_name: The name of the resource. - :param SKSKubeconfigArgs args: The arguments to use to populate this resource's properties. + :param SksKubeconfigArgs 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(SKSKubeconfigArgs, pulumi.ResourceOptions, *args, **kwargs) + resource_args, opts = _utilities.get_resource_args_opts(SksKubeconfigArgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: @@ -322,7 +322,7 @@ def _internal_init(__self__, 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__ = SKSKubeconfigArgs.__new__(SKSKubeconfigArgs) + __props__ = SksKubeconfigArgs.__new__(SksKubeconfigArgs) if cluster_id is None and not opts.urn: raise TypeError("Missing required property 'cluster_id'") @@ -342,8 +342,8 @@ def _internal_init(__self__, __props__.__dict__["ready_for_renewal"] = None secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["kubeconfig"]) opts = pulumi.ResourceOptions.merge(opts, secret_opts) - super(SKSKubeconfig, __self__).__init__( - 'exoscale:index/sKSKubeconfig:SKSKubeconfig', + super(SksKubeconfig, __self__).__init__( + 'exoscale:index/sksKubeconfig:SksKubeconfig', resource_name, __props__, opts) @@ -359,9 +359,9 @@ def get(resource_name: str, ready_for_renewal: Optional[pulumi.Input[bool]] = None, ttl_seconds: Optional[pulumi.Input[float]] = None, user: Optional[pulumi.Input[str]] = None, - zone: Optional[pulumi.Input[str]] = None) -> 'SKSKubeconfig': + zone: Optional[pulumi.Input[str]] = None) -> 'SksKubeconfig': """ - Get an existing SKSKubeconfig resource's state with the given name, id, and optional extra + Get an existing SksKubeconfig 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. @@ -381,7 +381,7 @@ def get(resource_name: str, """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - __props__ = _SKSKubeconfigState.__new__(_SKSKubeconfigState) + __props__ = _SksKubeconfigState.__new__(_SksKubeconfigState) __props__.__dict__["cluster_id"] = cluster_id __props__.__dict__["early_renewal_seconds"] = early_renewal_seconds @@ -391,7 +391,7 @@ def get(resource_name: str, __props__.__dict__["ttl_seconds"] = ttl_seconds __props__.__dict__["user"] = user __props__.__dict__["zone"] = zone - return SKSKubeconfig(resource_name, opts=opts, __props__=__props__) + return SksKubeconfig(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter(name="clusterId") diff --git a/sdk/python/pulumiverse_exoscale/sks_nodepool.py b/sdk/python/pulumiverse_exoscale/sks_nodepool.py index 6918254c..c1c4c291 100644 --- a/sdk/python/pulumiverse_exoscale/sks_nodepool.py +++ b/sdk/python/pulumiverse_exoscale/sks_nodepool.py @@ -9,10 +9,10 @@ from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities -__all__ = ['SKSNodepoolArgs', 'SKSNodepool'] +__all__ = ['SksNodepoolArgs', 'SksNodepool'] @pulumi.input_type -class SKSNodepoolArgs: +class SksNodepoolArgs: def __init__(__self__, *, cluster_id: pulumi.Input[str], instance_type: pulumi.Input[str], @@ -30,7 +30,7 @@ def __init__(__self__, *, storage_lvm: Optional[pulumi.Input[bool]] = None, taints: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): """ - The set of arguments for constructing a SKSNodepool resource. + The set of arguments for constructing a SksNodepool resource. :param pulumi.Input[str] cluster_id: ❗ The parent exoscale*sks*cluster ID. :param pulumi.Input[str] instance_type: The managed compute instances type (`.`, e.g. `standard.medium`; use the [Exoscale CLI](https://github.com/exoscale/cli/) - `exo compute instance-type list` - for the list of available types). :param pulumi.Input[str] zone: ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. @@ -44,7 +44,7 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] private_network_ids: A list of exoscale*private*network (IDs) to be attached to the managed instances. :param pulumi.Input[Sequence[pulumi.Input[str]]] security_group_ids: A list of exoscale*security*group (IDs) to be attached to the managed instances. :param pulumi.Input[bool] storage_lvm: Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time). - :param pulumi.Input[Mapping[str, pulumi.Input[str]]] taints: A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] taints: A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \\n\\n = "\\n\\n:\\n\\n" }'). """ pulumi.set(__self__, "cluster_id", cluster_id) pulumi.set(__self__, "instance_type", instance_type) @@ -242,7 +242,7 @@ def storage_lvm(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter def taints(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: """ - A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \\n\\n = "\\n\\n:\\n\\n" }'). """ return pulumi.get(self, "taints") @@ -252,7 +252,7 @@ def taints(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]) @pulumi.input_type -class _SKSNodepoolState: +class _SksNodepoolState: def __init__(__self__, *, anti_affinity_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, cluster_id: Optional[pulumi.Input[str]] = None, @@ -275,7 +275,7 @@ def __init__(__self__, *, version: Optional[pulumi.Input[str]] = None, zone: Optional[pulumi.Input[str]] = None): """ - Input properties used for looking up and filtering SKSNodepool resources. + Input properties used for looking up and filtering SksNodepool resources. :param pulumi.Input[Sequence[pulumi.Input[str]]] anti_affinity_group_ids: A list of exoscale*anti*affinity_group (IDs) to be attached to the managed instances. :param pulumi.Input[str] cluster_id: ❗ The parent exoscale*sks*cluster ID. :param pulumi.Input[str] created_at: The pool creation date. @@ -291,7 +291,7 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] security_group_ids: A list of exoscale*security*group (IDs) to be attached to the managed instances. :param pulumi.Input[str] state: The current pool state. :param pulumi.Input[bool] storage_lvm: Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time). - :param pulumi.Input[Mapping[str, pulumi.Input[str]]] taints: A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] taints: A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \\n\\n = "\\n\\n:\\n\\n" }'). :param pulumi.Input[str] template_id: The managed instances template ID. :param pulumi.Input[str] version: The managed instances version. :param pulumi.Input[str] zone: ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. @@ -530,7 +530,7 @@ def storage_lvm(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter def taints(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: """ - A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \\n\\n = "\\n\\n:\\n\\n" }'). """ return pulumi.get(self, "taints") @@ -575,7 +575,7 @@ def zone(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "zone", value) -class SKSNodepool(pulumi.CustomResource): +class SksNodepool(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, @@ -597,12 +597,31 @@ def __init__(__self__, zone: Optional[pulumi.Input[str]] = None, __props__=None): """ + Manage Exoscale [Scalable Kubernetes Service (SKS)](https://community.exoscale.com/documentation/sks/) Node Pools. + + ## Example Usage + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_sks_cluster = exoscale.SksCluster("mySksCluster", zone="ch-gva-2") + my_sks_nodepool = exoscale.SksNodepool("mySksNodepool", + cluster_id=my_sks_cluster.id, + zone=my_sks_cluster.zone, + instance_type="standard.medium", + size=3) + ``` + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing SKS node pool may be imported by `/@` ```sh - $ pulumi import exoscale:index/sKSNodepool:SKSNodepool \\ + $ pulumi import exoscale:index/sksNodepool:SksNodepool \\ ``` exoscale_sks_nodepool.my_sks_nodepool \\ @@ -623,22 +642,41 @@ def __init__(__self__, :param pulumi.Input[Sequence[pulumi.Input[str]]] private_network_ids: A list of exoscale*private*network (IDs) to be attached to the managed instances. :param pulumi.Input[Sequence[pulumi.Input[str]]] security_group_ids: A list of exoscale*security*group (IDs) to be attached to the managed instances. :param pulumi.Input[bool] storage_lvm: Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time). - :param pulumi.Input[Mapping[str, pulumi.Input[str]]] taints: A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] taints: A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \\n\\n = "\\n\\n:\\n\\n" }'). :param pulumi.Input[str] zone: ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. """ ... @overload def __init__(__self__, resource_name: str, - args: SKSNodepoolArgs, + args: SksNodepoolArgs, opts: Optional[pulumi.ResourceOptions] = None): """ + Manage Exoscale [Scalable Kubernetes Service (SKS)](https://community.exoscale.com/documentation/sks/) Node Pools. + + ## Example Usage + + ```python + import pulumi + import pulumiverse_exoscale as exoscale + + my_sks_cluster = exoscale.SksCluster("mySksCluster", zone="ch-gva-2") + my_sks_nodepool = exoscale.SksNodepool("mySksNodepool", + cluster_id=my_sks_cluster.id, + zone=my_sks_cluster.zone, + instance_type="standard.medium", + size=3) + ``` + + Please refer to the examples + directory for complete configuration examples. + ## Import An existing SKS node pool may be imported by `/@` ```sh - $ pulumi import exoscale:index/sKSNodepool:SKSNodepool \\ + $ pulumi import exoscale:index/sksNodepool:SksNodepool \\ ``` exoscale_sks_nodepool.my_sks_nodepool \\ @@ -646,12 +684,12 @@ def __init__(__self__, f81d4fae-7dec-11d0-a765-00a0c91e6bf6/9ecc6b8b-73d4-4211-8ced-f7f29bb79524@ch-gva-2 :param str resource_name: The name of the resource. - :param SKSNodepoolArgs args: The arguments to use to populate this resource's properties. + :param SksNodepoolArgs 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(SKSNodepoolArgs, pulumi.ResourceOptions, *args, **kwargs) + resource_args, opts = _utilities.get_resource_args_opts(SksNodepoolArgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: @@ -682,7 +720,7 @@ def _internal_init(__self__, 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__ = SKSNodepoolArgs.__new__(SKSNodepoolArgs) + __props__ = SksNodepoolArgs.__new__(SksNodepoolArgs) __props__.__dict__["anti_affinity_group_ids"] = anti_affinity_group_ids if cluster_id is None and not opts.urn: @@ -712,8 +750,8 @@ def _internal_init(__self__, __props__.__dict__["state"] = None __props__.__dict__["template_id"] = None __props__.__dict__["version"] = None - super(SKSNodepool, __self__).__init__( - 'exoscale:index/sKSNodepool:SKSNodepool', + super(SksNodepool, __self__).__init__( + 'exoscale:index/sksNodepool:SksNodepool', resource_name, __props__, opts) @@ -741,9 +779,9 @@ def get(resource_name: str, taints: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, template_id: Optional[pulumi.Input[str]] = None, version: Optional[pulumi.Input[str]] = None, - zone: Optional[pulumi.Input[str]] = None) -> 'SKSNodepool': + zone: Optional[pulumi.Input[str]] = None) -> 'SksNodepool': """ - Get an existing SKSNodepool resource's state with the given name, id, and optional extra + Get an existing SksNodepool 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. @@ -764,14 +802,14 @@ def get(resource_name: str, :param pulumi.Input[Sequence[pulumi.Input[str]]] security_group_ids: A list of exoscale*security*group (IDs) to be attached to the managed instances. :param pulumi.Input[str] state: The current pool state. :param pulumi.Input[bool] storage_lvm: Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time). - :param pulumi.Input[Mapping[str, pulumi.Input[str]]] taints: A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] taints: A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \\n\\n = "\\n\\n:\\n\\n" }'). :param pulumi.Input[str] template_id: The managed instances template ID. :param pulumi.Input[str] version: The managed instances version. :param pulumi.Input[str] zone: ❗ The Exoscale [Zone](https://www.exoscale.com/datacenters/) name. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - __props__ = _SKSNodepoolState.__new__(_SKSNodepoolState) + __props__ = _SksNodepoolState.__new__(_SksNodepoolState) __props__.__dict__["anti_affinity_group_ids"] = anti_affinity_group_ids __props__.__dict__["cluster_id"] = cluster_id @@ -793,7 +831,7 @@ def get(resource_name: str, __props__.__dict__["template_id"] = template_id __props__.__dict__["version"] = version __props__.__dict__["zone"] = zone - return SKSNodepool(resource_name, opts=opts, __props__=__props__) + return SksNodepool(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter(name="antiAffinityGroupIds") @@ -924,7 +962,7 @@ def storage_lvm(self) -> pulumi.Output[Optional[bool]]: @pulumi.getter def taints(self) -> pulumi.Output[Optional[Mapping[str, str]]]: """ - A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`:`). + A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \\n\\n = "\\n\\n:\\n\\n" }'). """ return pulumi.get(self, "taints") diff --git a/sdk/python/pulumiverse_exoscale/ssh_key.py b/sdk/python/pulumiverse_exoscale/ssh_key.py index c137cf02..0e0aa960 100644 --- a/sdk/python/pulumiverse_exoscale/ssh_key.py +++ b/sdk/python/pulumiverse_exoscale/ssh_key.py @@ -9,15 +9,15 @@ from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities -__all__ = ['SSHKeyArgs', 'SSHKey'] +__all__ = ['SshKeyArgs', 'SshKey'] @pulumi.input_type -class SSHKeyArgs: +class SshKeyArgs: def __init__(__self__, *, public_key: pulumi.Input[str], name: Optional[pulumi.Input[str]] = None): """ - The set of arguments for constructing a SSHKey resource. + The set of arguments for constructing a SshKey resource. :param pulumi.Input[str] public_key: ❗ The SSH *public* key that will be authorized in compute instances. :param pulumi.Input[str] name: ❗ The SSH key name. """ @@ -51,13 +51,13 @@ def name(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class _SSHKeyState: +class _SshKeyState: def __init__(__self__, *, fingerprint: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, public_key: Optional[pulumi.Input[str]] = None): """ - Input properties used for looking up and filtering SSHKey resources. + Input properties used for looking up and filtering SshKey resources. :param pulumi.Input[str] fingerprint: The SSH key unique identifier. :param pulumi.Input[str] name: ❗ The SSH key name. :param pulumi.Input[str] public_key: ❗ The SSH *public* key that will be authorized in compute instances. @@ -106,7 +106,7 @@ def public_key(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "public_key", value) -class SSHKey(pulumi.CustomResource): +class SshKey(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, @@ -120,7 +120,7 @@ def __init__(__self__, An existing SSH key may be imported as a resource by `` ```sh - $ pulumi import exoscale:index/sSHKey:SSHKey \\ + $ pulumi import exoscale:index/sshKey:SshKey \\ ``` exoscale_ssh_key.my_ssh_key \\ @@ -136,7 +136,7 @@ def __init__(__self__, @overload def __init__(__self__, resource_name: str, - args: SSHKeyArgs, + args: SshKeyArgs, opts: Optional[pulumi.ResourceOptions] = None): """ ## Import @@ -144,7 +144,7 @@ def __init__(__self__, An existing SSH key may be imported as a resource by `` ```sh - $ pulumi import exoscale:index/sSHKey:SSHKey \\ + $ pulumi import exoscale:index/sshKey:SshKey \\ ``` exoscale_ssh_key.my_ssh_key \\ @@ -152,12 +152,12 @@ def __init__(__self__, my-ssh-key :param str resource_name: The name of the resource. - :param SSHKeyArgs args: The arguments to use to populate this resource's properties. + :param SshKeyArgs 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(SSHKeyArgs, pulumi.ResourceOptions, *args, **kwargs) + resource_args, opts = _utilities.get_resource_args_opts(SshKeyArgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: @@ -175,15 +175,15 @@ def _internal_init(__self__, 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__ = SSHKeyArgs.__new__(SSHKeyArgs) + __props__ = SshKeyArgs.__new__(SshKeyArgs) __props__.__dict__["name"] = name if public_key is None and not opts.urn: raise TypeError("Missing required property 'public_key'") __props__.__dict__["public_key"] = public_key __props__.__dict__["fingerprint"] = None - super(SSHKey, __self__).__init__( - 'exoscale:index/sSHKey:SSHKey', + super(SshKey, __self__).__init__( + 'exoscale:index/sshKey:SshKey', resource_name, __props__, opts) @@ -194,9 +194,9 @@ def get(resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, fingerprint: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, - public_key: Optional[pulumi.Input[str]] = None) -> 'SSHKey': + public_key: Optional[pulumi.Input[str]] = None) -> 'SshKey': """ - Get an existing SSHKey resource's state with the given name, id, and optional extra + Get an existing SshKey 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. @@ -208,12 +208,12 @@ def get(resource_name: str, """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - __props__ = _SSHKeyState.__new__(_SSHKeyState) + __props__ = _SshKeyState.__new__(_SshKeyState) __props__.__dict__["fingerprint"] = fingerprint __props__.__dict__["name"] = name __props__.__dict__["public_key"] = public_key - return SSHKey(resource_name, opts=opts, __props__=__props__) + return SshKey(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter