Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
golang 1.24
golang 1.25.8
nodejs 20.13
# Should align with https://sourcegraph.sourcegraph.com/github.com/sourcegraph/sourcegraph@main/-/blob/dev/managedservicesplatform/internal/terraform/terraform.go?L5
terraform 1.7.5
2 changes: 1 addition & 1 deletion cloudflare.cdktf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: cloudflare
provider:
# https://registry.terraform.io/providers/cloudflare/cloudflare/latest
source: registry.terraform.io/cloudflare/cloudflare
version: "5.7.1"
version: "5.17.0"

target:
language: go
Expand Down
18 changes: 9 additions & 9 deletions gen/cloudflare/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ MIT License

Copyright (c) <year> <copyright holders>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial
The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE.
6 changes: 3 additions & 3 deletions gen/cloudflare/accessrule/AccessRule.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/sourcegraph/managed-services-platform-cdktf/gen/cloudflare/accessrule/internal"
)

// Represents a {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.7.1/docs/resources/access_rule cloudflare_access_rule}.
// Represents a {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.17.0/docs/resources/access_rule cloudflare_access_rule}.
type AccessRule interface {
cdktf.TerraformResource
AccountId() *string
Expand Down Expand Up @@ -456,7 +456,7 @@ func (j *jsiiProxy_AccessRule) ZoneIdInput() *string {
}


// Create a new {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.7.1/docs/resources/access_rule cloudflare_access_rule} Resource.
// Create a new {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.17.0/docs/resources/access_rule cloudflare_access_rule} Resource.
func NewAccessRule(scope constructs.Construct, id *string, config *AccessRuleConfig) AccessRule {
_init_.Initialize()

Expand All @@ -474,7 +474,7 @@ func NewAccessRule(scope constructs.Construct, id *string, config *AccessRuleCon
return &j
}

// Create a new {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.7.1/docs/resources/access_rule cloudflare_access_rule} Resource.
// Create a new {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.17.0/docs/resources/access_rule cloudflare_access_rule} Resource.
func NewAccessRule_Override(a AccessRule, scope constructs.Construct, id *string, config *AccessRuleConfig) {
_init_.Initialize()

Expand Down
10 changes: 5 additions & 5 deletions gen/cloudflare/accessrule/AccessRuleConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@ type AccessRuleConfig struct {
Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"`
// The rule configuration.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.7.1/docs/resources/access_rule#configuration AccessRule#configuration}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.17.0/docs/resources/access_rule#configuration AccessRule#configuration}
Configuration *AccessRuleConfiguration `field:"required" json:"configuration" yaml:"configuration"`
// The action to apply to a matched request. Available values: "block", "challenge", "whitelist", "js_challenge", "managed_challenge".
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.7.1/docs/resources/access_rule#mode AccessRule#mode}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.17.0/docs/resources/access_rule#mode AccessRule#mode}
Mode *string `field:"required" json:"mode" yaml:"mode"`
// The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.7.1/docs/resources/access_rule#account_id AccessRule#account_id}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.17.0/docs/resources/access_rule#account_id AccessRule#account_id}
AccountId *string `field:"optional" json:"accountId" yaml:"accountId"`
// An informative summary of the rule, typically used as a reminder or explanation.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.7.1/docs/resources/access_rule#notes AccessRule#notes}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.17.0/docs/resources/access_rule#notes AccessRule#notes}
Notes *string `field:"optional" json:"notes" yaml:"notes"`
// The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.7.1/docs/resources/access_rule#zone_id AccessRule#zone_id}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.17.0/docs/resources/access_rule#zone_id AccessRule#zone_id}
ZoneId *string `field:"optional" json:"zoneId" yaml:"zoneId"`
}

4 changes: 2 additions & 2 deletions gen/cloudflare/accessrule/AccessRuleConfiguration.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ type AccessRuleConfiguration struct {
// You must set the target to `ip` when specifying an IP address in the rule.
// Available values: "ip", "ip6", "ip_range", "asn", "country".
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.7.1/docs/resources/access_rule#target AccessRule#target}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.17.0/docs/resources/access_rule#target AccessRule#target}
Target *string `field:"optional" json:"target" yaml:"target"`
// The IP address to match. This address will be compared to the IP address of incoming requests.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.7.1/docs/resources/access_rule#value AccessRule#value}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.17.0/docs/resources/access_rule#value AccessRule#value}
Value *string `field:"optional" json:"value" yaml:"value"`
}

2 changes: 1 addition & 1 deletion gen/cloudflare/accessrule/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# `cloudflare_access_rule`

Refer to the Terraform Registry for docs: [`cloudflare_access_rule`](https://registry.terraform.io/providers/cloudflare/cloudflare/5.7.1/docs/resources/access_rule).
Refer to the Terraform Registry for docs: [`cloudflare_access_rule`](https://registry.terraform.io/providers/cloudflare/cloudflare/5.17.0/docs/resources/access_rule).
58 changes: 55 additions & 3 deletions gen/cloudflare/account/Account.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/sourcegraph/managed-services-platform-cdktf/gen/cloudflare/account/internal"
)

// Represents a {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.7.1/docs/resources/account cloudflare_account}.
// Represents a {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.17.0/docs/resources/account cloudflare_account}.
type Account interface {
cdktf.TerraformResource
// Experimental.
Expand Down Expand Up @@ -42,6 +42,8 @@ type Account interface {
Lifecycle() *cdktf.TerraformResourceLifecycle
// Experimental.
SetLifecycle(val *cdktf.TerraformResourceLifecycle)
ManagedBy() AccountManagedByOutputReference
ManagedByInput() interface{}
Name() *string
SetName(val *string)
NameInput() *string
Expand Down Expand Up @@ -113,12 +115,15 @@ type Account interface {
// Overrides the auto-generated logical ID with a specific ID.
// Experimental.
OverrideLogicalId(newLogicalId *string)
PutManagedBy(value *AccountManagedBy)
PutSettings(value *AccountSettings)
PutUnit(value *AccountUnit)
ResetManagedBy()
// Resets a previously passed logical Id to use the auto-generated logical id again.
// Experimental.
ResetOverrideLogicalId()
ResetSettings()
ResetType()
ResetUnit()
SynthesizeAttributes() *map[string]interface{}
SynthesizeHclAttributes() *map[string]interface{}
Expand Down Expand Up @@ -248,6 +253,26 @@ func (j *jsiiProxy_Account) Lifecycle() *cdktf.TerraformResourceLifecycle {
return returns
}

func (j *jsiiProxy_Account) ManagedBy() AccountManagedByOutputReference {
var returns AccountManagedByOutputReference
_jsii_.Get(
j,
"managedBy",
&returns,
)
return returns
}

func (j *jsiiProxy_Account) ManagedByInput() interface{} {
var returns interface{}
_jsii_.Get(
j,
"managedByInput",
&returns,
)
return returns
}

func (j *jsiiProxy_Account) Name() *string {
var returns *string
_jsii_.Get(
Expand Down Expand Up @@ -399,7 +424,7 @@ func (j *jsiiProxy_Account) UnitInput() interface{} {
}


// Create a new {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.7.1/docs/resources/account cloudflare_account} Resource.
// Create a new {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.17.0/docs/resources/account cloudflare_account} Resource.
func NewAccount(scope constructs.Construct, id *string, config *AccountConfig) Account {
_init_.Initialize()

Expand All @@ -417,7 +442,7 @@ func NewAccount(scope constructs.Construct, id *string, config *AccountConfig) A
return &j
}

// Create a new {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.7.1/docs/resources/account cloudflare_account} Resource.
// Create a new {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.17.0/docs/resources/account cloudflare_account} Resource.
func NewAccount_Override(a Account, scope constructs.Construct, id *string, config *AccountConfig) {
_init_.Initialize()

Expand Down Expand Up @@ -871,6 +896,17 @@ func (a *jsiiProxy_Account) OverrideLogicalId(newLogicalId *string) {
)
}

func (a *jsiiProxy_Account) PutManagedBy(value *AccountManagedBy) {
if err := a.validatePutManagedByParameters(value); err != nil {
panic(err)
}
_jsii_.InvokeVoid(
a,
"putManagedBy",
[]interface{}{value},
)
}

func (a *jsiiProxy_Account) PutSettings(value *AccountSettings) {
if err := a.validatePutSettingsParameters(value); err != nil {
panic(err)
Expand All @@ -893,6 +929,14 @@ func (a *jsiiProxy_Account) PutUnit(value *AccountUnit) {
)
}

func (a *jsiiProxy_Account) ResetManagedBy() {
_jsii_.InvokeVoid(
a,
"resetManagedBy",
nil, // no parameters
)
}

func (a *jsiiProxy_Account) ResetOverrideLogicalId() {
_jsii_.InvokeVoid(
a,
Expand All @@ -909,6 +953,14 @@ func (a *jsiiProxy_Account) ResetSettings() {
)
}

func (a *jsiiProxy_Account) ResetType() {
_jsii_.InvokeVoid(
a,
"resetType",
nil, // no parameters
)
}

func (a *jsiiProxy_Account) ResetUnit() {
_jsii_.InvokeVoid(
a,
Expand Down
16 changes: 10 additions & 6 deletions gen/cloudflare/account/AccountConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,25 @@ type AccountConfig struct {
Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"`
// Account name.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.7.1/docs/resources/account#name Account#name}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.17.0/docs/resources/account#name Account#name}
Name *string `field:"required" json:"name" yaml:"name"`
// the type of account being created. For self-serve customers, use standard. for enterprise customers, use enterprise. Available values: "standard", "enterprise".
// Parent container details.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.7.1/docs/resources/account#type Account#type}
Type *string `field:"required" json:"type" yaml:"type"`
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.17.0/docs/resources/account#managed_by Account#managed_by}
ManagedBy *AccountManagedBy `field:"optional" json:"managedBy" yaml:"managedBy"`
// Account settings.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.7.1/docs/resources/account#settings Account#settings}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.17.0/docs/resources/account#settings Account#settings}
Settings *AccountSettings `field:"optional" json:"settings" yaml:"settings"`
// Available values: "standard", "enterprise".
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.17.0/docs/resources/account#type Account#type}
Type *string `field:"optional" json:"type" yaml:"type"`
// information related to the tenant unit, and optionally, an id of the unit to create the account on.
//
// see https://developers.cloudflare.com/tenant/how-to/manage-accounts/
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.7.1/docs/resources/account#unit Account#unit}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.17.0/docs/resources/account#unit Account#unit}
Unit *AccountUnit `field:"optional" json:"unit" yaml:"unit"`
}

6 changes: 6 additions & 0 deletions gen/cloudflare/account/AccountManagedBy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package account


type AccountManagedBy struct {
}

Loading