diff --git a/gen/postgresql/database/Database.go b/gen/postgresql/database/Database.go index a02d1593d7..1b6341d6db 100644 --- a/gen/postgresql/database/Database.go +++ b/gen/postgresql/database/Database.go @@ -12,27 +12,27 @@ import ( // Represents a {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/database postgresql_database}. type Database interface { cdktf.TerraformResource - AllowConnections() interface{} - SetAllowConnections(val interface{}) - AllowConnectionsInput() interface{} - AlterObjectOwnership() interface{} - SetAlterObjectOwnership(val interface{}) - AlterObjectOwnershipInput() interface{} + AllowConnections() any + SetAllowConnections(val any) + AllowConnectionsInput() any + AlterObjectOwnership() any + SetAlterObjectOwnership(val any) + AlterObjectOwnershipInput() any // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. - Connection() interface{} + Connection() any // Experimental. - SetConnection(val interface{}) + SetConnection(val any) ConnectionLimit() *float64 SetConnectionLimit(val *float64) ConnectionLimitInput() *float64 // Experimental. - ConstructNodeMetadata() *map[string]interface{} + ConstructNodeMetadata() *map[string]any // Experimental. - Count() interface{} + Count() any // Experimental. - SetCount(val interface{}) + SetCount(val any) // Experimental. DependsOn() *[]*string // Experimental. @@ -51,9 +51,9 @@ type Database interface { Id() *string SetId(val *string) IdInput() *string - IsTemplate() interface{} - SetIsTemplate(val interface{}) - IsTemplateInput() interface{} + IsTemplate() any + SetIsTemplate(val any) + IsTemplateInput() any LcCollate() *string SetLcCollate(val *string) LcCollateInput() *string @@ -77,11 +77,11 @@ type Database interface { // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. - Provisioners() *[]interface{} + Provisioners() *[]any // Experimental. - SetProvisioners(val *[]interface{}) + SetProvisioners(val *[]any) // Experimental. - RawOverrides() interface{} + RawOverrides() any TablespaceName() *string SetTablespaceName(val *string) TablespaceNameInput() *string @@ -91,16 +91,16 @@ type Database interface { // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. - TerraformMetaArguments() *map[string]interface{} + TerraformMetaArguments() *map[string]any // Experimental. TerraformResourceType() *string // Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. // Experimental. AddMoveTarget(moveTarget *string) // Experimental. - AddOverride(path *string, value interface{}) + AddOverride(path *string, value any) // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -118,7 +118,7 @@ type Database interface { // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. - HasResourceMove() interface{} + HasResourceMove() any // Experimental. ImportFrom(id *string, provider cdktf.TerraformProvider) // Experimental. @@ -130,7 +130,7 @@ type Database interface { MoveFromId(id *string) // Moves this resource to the target resource given by moveTarget. // Experimental. - MoveTo(moveTarget *string, index interface{}) + MoveTo(moveTarget *string, index any) // Moves this resource to the resource corresponding to "id". // Experimental. MoveToId(id *string) @@ -151,17 +151,17 @@ type Database interface { ResetOwner() ResetTablespaceName() ResetTemplate() - SynthesizeAttributes() *map[string]interface{} - SynthesizeHclAttributes() *map[string]interface{} + SynthesizeAttributes() *map[string]any + SynthesizeHclAttributes() *map[string]any // Experimental. - ToHclTerraform() interface{} + ToHclTerraform() any // Experimental. - ToMetadata() interface{} + ToMetadata() any // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. - ToTerraform() interface{} + ToTerraform() any } // The jsii proxy struct for Database @@ -169,8 +169,8 @@ type jsiiProxy_Database struct { internal.Type__cdktfTerraformResource } -func (j *jsiiProxy_Database) AllowConnections() interface{} { - var returns interface{} +func (j *jsiiProxy_Database) AllowConnections() any { + var returns any _jsii_.Get( j, "allowConnections", @@ -179,8 +179,8 @@ func (j *jsiiProxy_Database) AllowConnections() interface{} { return returns } -func (j *jsiiProxy_Database) AllowConnectionsInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Database) AllowConnectionsInput() any { + var returns any _jsii_.Get( j, "allowConnectionsInput", @@ -189,8 +189,8 @@ func (j *jsiiProxy_Database) AllowConnectionsInput() interface{} { return returns } -func (j *jsiiProxy_Database) AlterObjectOwnership() interface{} { - var returns interface{} +func (j *jsiiProxy_Database) AlterObjectOwnership() any { + var returns any _jsii_.Get( j, "alterObjectOwnership", @@ -199,8 +199,8 @@ func (j *jsiiProxy_Database) AlterObjectOwnership() interface{} { return returns } -func (j *jsiiProxy_Database) AlterObjectOwnershipInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Database) AlterObjectOwnershipInput() any { + var returns any _jsii_.Get( j, "alterObjectOwnershipInput", @@ -219,8 +219,8 @@ func (j *jsiiProxy_Database) CdktfStack() cdktf.TerraformStack { return returns } -func (j *jsiiProxy_Database) Connection() interface{} { - var returns interface{} +func (j *jsiiProxy_Database) Connection() any { + var returns any _jsii_.Get( j, "connection", @@ -249,8 +249,8 @@ func (j *jsiiProxy_Database) ConnectionLimitInput() *float64 { return returns } -func (j *jsiiProxy_Database) ConstructNodeMetadata() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_Database) ConstructNodeMetadata() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "constructNodeMetadata", @@ -259,8 +259,8 @@ func (j *jsiiProxy_Database) ConstructNodeMetadata() *map[string]interface{} { return returns } -func (j *jsiiProxy_Database) Count() interface{} { - var returns interface{} +func (j *jsiiProxy_Database) Count() any { + var returns any _jsii_.Get( j, "count", @@ -349,8 +349,8 @@ func (j *jsiiProxy_Database) IdInput() *string { return returns } -func (j *jsiiProxy_Database) IsTemplate() interface{} { - var returns interface{} +func (j *jsiiProxy_Database) IsTemplate() any { + var returns any _jsii_.Get( j, "isTemplate", @@ -359,8 +359,8 @@ func (j *jsiiProxy_Database) IsTemplate() interface{} { return returns } -func (j *jsiiProxy_Database) IsTemplateInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Database) IsTemplateInput() any { + var returns any _jsii_.Get( j, "isTemplateInput", @@ -479,8 +479,8 @@ func (j *jsiiProxy_Database) Provider() cdktf.TerraformProvider { return returns } -func (j *jsiiProxy_Database) Provisioners() *[]interface{} { - var returns *[]interface{} +func (j *jsiiProxy_Database) Provisioners() *[]any { + var returns *[]any _jsii_.Get( j, "provisioners", @@ -489,8 +489,8 @@ func (j *jsiiProxy_Database) Provisioners() *[]interface{} { return returns } -func (j *jsiiProxy_Database) RawOverrides() interface{} { - var returns interface{} +func (j *jsiiProxy_Database) RawOverrides() any { + var returns any _jsii_.Get( j, "rawOverrides", @@ -549,8 +549,8 @@ func (j *jsiiProxy_Database) TerraformGeneratorMetadata() *cdktf.TerraformProvid return returns } -func (j *jsiiProxy_Database) TerraformMetaArguments() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_Database) TerraformMetaArguments() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "terraformMetaArguments", @@ -569,7 +569,6 @@ func (j *jsiiProxy_Database) TerraformResourceType() *string { return returns } - // Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/database postgresql_database} Resource. func NewDatabase(scope constructs.Construct, id *string, config *DatabaseConfig) Database { _init_.Initialize() @@ -581,7 +580,7 @@ func NewDatabase(scope constructs.Construct, id *string, config *DatabaseConfig) _jsii_.Create( "@cdktf/provider-postgresql.database.Database", - []interface{}{scope, id, config}, + []any{scope, id, config}, &j, ) @@ -594,12 +593,12 @@ func NewDatabase_Override(d Database, scope constructs.Construct, id *string, co _jsii_.Create( "@cdktf/provider-postgresql.database.Database", - []interface{}{scope, id, config}, + []any{scope, id, config}, d, ) } -func (j *jsiiProxy_Database)SetAllowConnections(val interface{}) { +func (j *jsiiProxy_Database) SetAllowConnections(val any) { if err := j.validateSetAllowConnectionsParameters(val); err != nil { panic(err) } @@ -610,7 +609,7 @@ func (j *jsiiProxy_Database)SetAllowConnections(val interface{}) { ) } -func (j *jsiiProxy_Database)SetAlterObjectOwnership(val interface{}) { +func (j *jsiiProxy_Database) SetAlterObjectOwnership(val any) { if err := j.validateSetAlterObjectOwnershipParameters(val); err != nil { panic(err) } @@ -621,7 +620,7 @@ func (j *jsiiProxy_Database)SetAlterObjectOwnership(val interface{}) { ) } -func (j *jsiiProxy_Database)SetConnection(val interface{}) { +func (j *jsiiProxy_Database) SetConnection(val any) { if err := j.validateSetConnectionParameters(val); err != nil { panic(err) } @@ -632,7 +631,7 @@ func (j *jsiiProxy_Database)SetConnection(val interface{}) { ) } -func (j *jsiiProxy_Database)SetConnectionLimit(val *float64) { +func (j *jsiiProxy_Database) SetConnectionLimit(val *float64) { if err := j.validateSetConnectionLimitParameters(val); err != nil { panic(err) } @@ -643,7 +642,7 @@ func (j *jsiiProxy_Database)SetConnectionLimit(val *float64) { ) } -func (j *jsiiProxy_Database)SetCount(val interface{}) { +func (j *jsiiProxy_Database) SetCount(val any) { if err := j.validateSetCountParameters(val); err != nil { panic(err) } @@ -654,7 +653,7 @@ func (j *jsiiProxy_Database)SetCount(val interface{}) { ) } -func (j *jsiiProxy_Database)SetDependsOn(val *[]*string) { +func (j *jsiiProxy_Database) SetDependsOn(val *[]*string) { _jsii_.Set( j, "dependsOn", @@ -662,7 +661,7 @@ func (j *jsiiProxy_Database)SetDependsOn(val *[]*string) { ) } -func (j *jsiiProxy_Database)SetEncoding(val *string) { +func (j *jsiiProxy_Database) SetEncoding(val *string) { if err := j.validateSetEncodingParameters(val); err != nil { panic(err) } @@ -673,7 +672,7 @@ func (j *jsiiProxy_Database)SetEncoding(val *string) { ) } -func (j *jsiiProxy_Database)SetForEach(val cdktf.ITerraformIterator) { +func (j *jsiiProxy_Database) SetForEach(val cdktf.ITerraformIterator) { _jsii_.Set( j, "forEach", @@ -681,7 +680,7 @@ func (j *jsiiProxy_Database)SetForEach(val cdktf.ITerraformIterator) { ) } -func (j *jsiiProxy_Database)SetId(val *string) { +func (j *jsiiProxy_Database) SetId(val *string) { if err := j.validateSetIdParameters(val); err != nil { panic(err) } @@ -692,7 +691,7 @@ func (j *jsiiProxy_Database)SetId(val *string) { ) } -func (j *jsiiProxy_Database)SetIsTemplate(val interface{}) { +func (j *jsiiProxy_Database) SetIsTemplate(val any) { if err := j.validateSetIsTemplateParameters(val); err != nil { panic(err) } @@ -703,7 +702,7 @@ func (j *jsiiProxy_Database)SetIsTemplate(val interface{}) { ) } -func (j *jsiiProxy_Database)SetLcCollate(val *string) { +func (j *jsiiProxy_Database) SetLcCollate(val *string) { if err := j.validateSetLcCollateParameters(val); err != nil { panic(err) } @@ -714,7 +713,7 @@ func (j *jsiiProxy_Database)SetLcCollate(val *string) { ) } -func (j *jsiiProxy_Database)SetLcCtype(val *string) { +func (j *jsiiProxy_Database) SetLcCtype(val *string) { if err := j.validateSetLcCtypeParameters(val); err != nil { panic(err) } @@ -725,7 +724,7 @@ func (j *jsiiProxy_Database)SetLcCtype(val *string) { ) } -func (j *jsiiProxy_Database)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { +func (j *jsiiProxy_Database) SetLifecycle(val *cdktf.TerraformResourceLifecycle) { if err := j.validateSetLifecycleParameters(val); err != nil { panic(err) } @@ -736,7 +735,7 @@ func (j *jsiiProxy_Database)SetLifecycle(val *cdktf.TerraformResourceLifecycle) ) } -func (j *jsiiProxy_Database)SetName(val *string) { +func (j *jsiiProxy_Database) SetName(val *string) { if err := j.validateSetNameParameters(val); err != nil { panic(err) } @@ -747,7 +746,7 @@ func (j *jsiiProxy_Database)SetName(val *string) { ) } -func (j *jsiiProxy_Database)SetOwner(val *string) { +func (j *jsiiProxy_Database) SetOwner(val *string) { if err := j.validateSetOwnerParameters(val); err != nil { panic(err) } @@ -758,7 +757,7 @@ func (j *jsiiProxy_Database)SetOwner(val *string) { ) } -func (j *jsiiProxy_Database)SetProvider(val cdktf.TerraformProvider) { +func (j *jsiiProxy_Database) SetProvider(val cdktf.TerraformProvider) { _jsii_.Set( j, "provider", @@ -766,7 +765,7 @@ func (j *jsiiProxy_Database)SetProvider(val cdktf.TerraformProvider) { ) } -func (j *jsiiProxy_Database)SetProvisioners(val *[]interface{}) { +func (j *jsiiProxy_Database) SetProvisioners(val *[]any) { if err := j.validateSetProvisionersParameters(val); err != nil { panic(err) } @@ -777,7 +776,7 @@ func (j *jsiiProxy_Database)SetProvisioners(val *[]interface{}) { ) } -func (j *jsiiProxy_Database)SetTablespaceName(val *string) { +func (j *jsiiProxy_Database) SetTablespaceName(val *string) { if err := j.validateSetTablespaceNameParameters(val); err != nil { panic(err) } @@ -788,7 +787,7 @@ func (j *jsiiProxy_Database)SetTablespaceName(val *string) { ) } -func (j *jsiiProxy_Database)SetTemplate(val *string) { +func (j *jsiiProxy_Database) SetTemplate(val *string) { if err := j.validateSetTemplateParameters(val); err != nil { panic(err) } @@ -811,7 +810,7 @@ func Database_GenerateConfigForImport(scope constructs.Construct, importToId *st _jsii_.StaticInvoke( "@cdktf/provider-postgresql.database.Database", "generateConfigForImport", - []interface{}{scope, importToId, importFromId, provider}, + []any{scope, importToId, importFromId, provider}, &returns, ) @@ -835,7 +834,7 @@ func Database_GenerateConfigForImport(scope constructs.Construct, importToId *st // this type-testing method instead. // // Returns: true if `x` is an object created from a class which extends `Construct`. -func Database_IsConstruct(x interface{}) *bool { +func Database_IsConstruct(x any) *bool { _init_.Initialize() if err := validateDatabase_IsConstructParameters(x); err != nil { @@ -846,7 +845,7 @@ func Database_IsConstruct(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.database.Database", "isConstruct", - []interface{}{x}, + []any{x}, &returns, ) @@ -854,7 +853,7 @@ func Database_IsConstruct(x interface{}) *bool { } // Experimental. -func Database_IsTerraformElement(x interface{}) *bool { +func Database_IsTerraformElement(x any) *bool { _init_.Initialize() if err := validateDatabase_IsTerraformElementParameters(x); err != nil { @@ -865,7 +864,7 @@ func Database_IsTerraformElement(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.database.Database", "isTerraformElement", - []interface{}{x}, + []any{x}, &returns, ) @@ -873,7 +872,7 @@ func Database_IsTerraformElement(x interface{}) *bool { } // Experimental. -func Database_IsTerraformResource(x interface{}) *bool { +func Database_IsTerraformResource(x any) *bool { _init_.Initialize() if err := validateDatabase_IsTerraformResourceParameters(x); err != nil { @@ -884,7 +883,7 @@ func Database_IsTerraformResource(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.database.Database", "isTerraformResource", - []interface{}{x}, + []any{x}, &returns, ) @@ -909,31 +908,31 @@ func (d *jsiiProxy_Database) AddMoveTarget(moveTarget *string) { _jsii_.InvokeVoid( d, "addMoveTarget", - []interface{}{moveTarget}, + []any{moveTarget}, ) } -func (d *jsiiProxy_Database) AddOverride(path *string, value interface{}) { +func (d *jsiiProxy_Database) AddOverride(path *string, value any) { if err := d.validateAddOverrideParameters(path, value); err != nil { panic(err) } _jsii_.InvokeVoid( d, "addOverride", - []interface{}{path, value}, + []any{path, value}, ) } -func (d *jsiiProxy_Database) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (d *jsiiProxy_Database) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := d.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( d, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -949,7 +948,7 @@ func (d *jsiiProxy_Database) GetBooleanAttribute(terraformAttribute *string) cdk _jsii_.Invoke( d, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -965,7 +964,7 @@ func (d *jsiiProxy_Database) GetBooleanMapAttribute(terraformAttribute *string) _jsii_.Invoke( d, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -981,7 +980,7 @@ func (d *jsiiProxy_Database) GetListAttribute(terraformAttribute *string) *[]*st _jsii_.Invoke( d, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -997,7 +996,7 @@ func (d *jsiiProxy_Database) GetNumberAttribute(terraformAttribute *string) *flo _jsii_.Invoke( d, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1013,7 +1012,7 @@ func (d *jsiiProxy_Database) GetNumberListAttribute(terraformAttribute *string) _jsii_.Invoke( d, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1029,7 +1028,7 @@ func (d *jsiiProxy_Database) GetNumberMapAttribute(terraformAttribute *string) * _jsii_.Invoke( d, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1045,7 +1044,7 @@ func (d *jsiiProxy_Database) GetStringAttribute(terraformAttribute *string) *str _jsii_.Invoke( d, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1061,15 +1060,15 @@ func (d *jsiiProxy_Database) GetStringMapAttribute(terraformAttribute *string) * _jsii_.Invoke( d, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) return returns } -func (d *jsiiProxy_Database) HasResourceMove() interface{} { - var returns interface{} +func (d *jsiiProxy_Database) HasResourceMove() any { + var returns any _jsii_.Invoke( d, @@ -1088,7 +1087,7 @@ func (d *jsiiProxy_Database) ImportFrom(id *string, provider cdktf.TerraformProv _jsii_.InvokeVoid( d, "importFrom", - []interface{}{id, provider}, + []any{id, provider}, ) } @@ -1101,7 +1100,7 @@ func (d *jsiiProxy_Database) InterpolationForAttribute(terraformAttribute *strin _jsii_.Invoke( d, "interpolationForAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1115,18 +1114,18 @@ func (d *jsiiProxy_Database) MoveFromId(id *string) { _jsii_.InvokeVoid( d, "moveFromId", - []interface{}{id}, + []any{id}, ) } -func (d *jsiiProxy_Database) MoveTo(moveTarget *string, index interface{}) { +func (d *jsiiProxy_Database) MoveTo(moveTarget *string, index any) { if err := d.validateMoveToParameters(moveTarget, index); err != nil { panic(err) } _jsii_.InvokeVoid( d, "moveTo", - []interface{}{moveTarget, index}, + []any{moveTarget, index}, ) } @@ -1137,7 +1136,7 @@ func (d *jsiiProxy_Database) MoveToId(id *string) { _jsii_.InvokeVoid( d, "moveToId", - []interface{}{id}, + []any{id}, ) } @@ -1148,7 +1147,7 @@ func (d *jsiiProxy_Database) OverrideLogicalId(newLogicalId *string) { _jsii_.InvokeVoid( d, "overrideLogicalId", - []interface{}{newLogicalId}, + []any{newLogicalId}, ) } @@ -1248,8 +1247,8 @@ func (d *jsiiProxy_Database) ResetTemplate() { ) } -func (d *jsiiProxy_Database) SynthesizeAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (d *jsiiProxy_Database) SynthesizeAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( d, @@ -1261,8 +1260,8 @@ func (d *jsiiProxy_Database) SynthesizeAttributes() *map[string]interface{} { return returns } -func (d *jsiiProxy_Database) SynthesizeHclAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (d *jsiiProxy_Database) SynthesizeHclAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( d, @@ -1274,8 +1273,8 @@ func (d *jsiiProxy_Database) SynthesizeHclAttributes() *map[string]interface{} { return returns } -func (d *jsiiProxy_Database) ToHclTerraform() interface{} { - var returns interface{} +func (d *jsiiProxy_Database) ToHclTerraform() any { + var returns any _jsii_.Invoke( d, @@ -1287,8 +1286,8 @@ func (d *jsiiProxy_Database) ToHclTerraform() interface{} { return returns } -func (d *jsiiProxy_Database) ToMetadata() interface{} { - var returns interface{} +func (d *jsiiProxy_Database) ToMetadata() any { + var returns any _jsii_.Invoke( d, @@ -1313,8 +1312,8 @@ func (d *jsiiProxy_Database) ToString() *string { return returns } -func (d *jsiiProxy_Database) ToTerraform() interface{} { - var returns interface{} +func (d *jsiiProxy_Database) ToTerraform() any { + var returns any _jsii_.Invoke( d, @@ -1325,4 +1324,3 @@ func (d *jsiiProxy_Database) ToTerraform() interface{} { return returns } - diff --git a/gen/postgresql/database/DatabaseConfig.go b/gen/postgresql/database/DatabaseConfig.go index 106dd7fd28..8551ebabed 100644 --- a/gen/postgresql/database/DatabaseConfig.go +++ b/gen/postgresql/database/DatabaseConfig.go @@ -6,9 +6,9 @@ import ( type DatabaseConfig struct { // Experimental. - Connection interface{} `field:"optional" json:"connection" yaml:"connection"` + Connection any `field:"optional" json:"connection" yaml:"connection"` // Experimental. - Count interface{} `field:"optional" json:"count" yaml:"count"` + Count any `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. @@ -18,7 +18,7 @@ type DatabaseConfig struct { // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. - Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` + Provisioners *[]any `field:"optional" json:"provisioners" yaml:"provisioners"` // The PostgreSQL database name to connect to. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/database#name Database#name} @@ -26,11 +26,11 @@ type DatabaseConfig struct { // If false then no one can connect to this database. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/database#allow_connections Database#allow_connections} - AllowConnections interface{} `field:"optional" json:"allowConnections" yaml:"allowConnections"` + AllowConnections any `field:"optional" json:"allowConnections" yaml:"allowConnections"` // If true, the owner of already existing objects will change if the owner changes. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/database#alter_object_ownership Database#alter_object_ownership} - AlterObjectOwnership interface{} `field:"optional" json:"alterObjectOwnership" yaml:"alterObjectOwnership"` + AlterObjectOwnership any `field:"optional" json:"alterObjectOwnership" yaml:"alterObjectOwnership"` // How many concurrent connections can be made to this database. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/database#connection_limit Database#connection_limit} @@ -47,7 +47,7 @@ type DatabaseConfig struct { // If true, then this database can be cloned by any user with CREATEDB privileges. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/database#is_template Database#is_template} - IsTemplate interface{} `field:"optional" json:"isTemplate" yaml:"isTemplate"` + IsTemplate any `field:"optional" json:"isTemplate" yaml:"isTemplate"` // Collation order (LC_COLLATE) to use in the new database. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/database#lc_collate Database#lc_collate} @@ -69,4 +69,3 @@ type DatabaseConfig struct { // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/database#template Database#template} Template *string `field:"optional" json:"template" yaml:"template"` } - diff --git a/gen/postgresql/database/Database__checks.go b/gen/postgresql/database/Database__checks.go index eed094f87c..218140eb74 100644 --- a/gen/postgresql/database/Database__checks.go +++ b/gen/postgresql/database/Database__checks.go @@ -19,7 +19,7 @@ func (d *jsiiProxy_Database) validateAddMoveTargetParameters(moveTarget *string) return nil } -func (d *jsiiProxy_Database) validateAddOverrideParameters(path *string, value interface{}) error { +func (d *jsiiProxy_Database) validateAddOverrideParameters(path *string, value any) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } @@ -127,7 +127,7 @@ func (d *jsiiProxy_Database) validateMoveFromIdParameters(id *string) error { return nil } -func (d *jsiiProxy_Database) validateMoveToParameters(moveTarget *string, index interface{}) error { +func (d *jsiiProxy_Database) validateMoveToParameters(moveTarget *string, index any) error { if moveTarget == nil { return fmt.Errorf("parameter moveTarget is required, but nil was provided") } @@ -220,7 +220,7 @@ func validateDatabase_GenerateConfigForImportParameters(scope constructs.Constru return nil } -func validateDatabase_IsConstructParameters(x interface{}) error { +func validateDatabase_IsConstructParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -228,7 +228,7 @@ func validateDatabase_IsConstructParameters(x interface{}) error { return nil } -func validateDatabase_IsTerraformElementParameters(x interface{}) error { +func validateDatabase_IsTerraformElementParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -236,7 +236,7 @@ func validateDatabase_IsTerraformElementParameters(x interface{}) error { return nil } -func validateDatabase_IsTerraformResourceParameters(x interface{}) error { +func validateDatabase_IsTerraformResourceParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -244,7 +244,7 @@ func validateDatabase_IsTerraformResourceParameters(x interface{}) error { return nil } -func (j *jsiiProxy_Database) validateSetAllowConnectionsParameters(val interface{}) error { +func (j *jsiiProxy_Database) validateSetAllowConnectionsParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -264,7 +264,7 @@ func (j *jsiiProxy_Database) validateSetAllowConnectionsParameters(val interface return nil } -func (j *jsiiProxy_Database) validateSetAlterObjectOwnershipParameters(val interface{}) error { +func (j *jsiiProxy_Database) validateSetAlterObjectOwnershipParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -284,7 +284,7 @@ func (j *jsiiProxy_Database) validateSetAlterObjectOwnershipParameters(val inter return nil } -func (j *jsiiProxy_Database) validateSetConnectionParameters(val interface{}) error { +func (j *jsiiProxy_Database) validateSetConnectionParameters(val any) error { switch val.(type) { case *cdktf.SSHProvisionerConnection: val := val.(*cdktf.SSHProvisionerConnection) @@ -325,7 +325,7 @@ func (j *jsiiProxy_Database) validateSetConnectionLimitParameters(val *float64) return nil } -func (j *jsiiProxy_Database) validateSetCountParameters(val interface{}) error { +func (j *jsiiProxy_Database) validateSetCountParameters(val any) error { switch val.(type) { case *float64: // ok @@ -398,7 +398,7 @@ func (j *jsiiProxy_Database) validateSetIdParameters(val *string) error { return nil } -func (j *jsiiProxy_Database) validateSetIsTemplateParameters(val interface{}) error { +func (j *jsiiProxy_Database) validateSetIsTemplateParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -458,7 +458,7 @@ func (j *jsiiProxy_Database) validateSetOwnerParameters(val *string) error { return nil } -func (j *jsiiProxy_Database) validateSetProvisionersParameters(val *[]interface{}) error { +func (j *jsiiProxy_Database) validateSetProvisionersParameters(val *[]any) error { for idx_97dfc6, v := range *val { switch v.(type) { case *cdktf.FileProvisioner: @@ -538,4 +538,3 @@ func validateNewDatabaseParameters(scope constructs.Construct, id *string, confi return nil } - diff --git a/gen/postgresql/database/main.go b/gen/postgresql/database/main.go index 11eb34750d..da3525a882 100644 --- a/gen/postgresql/database/main.go +++ b/gen/postgresql/database/main.go @@ -9,7 +9,7 @@ import ( func init() { _jsii_.RegisterClass( "@cdktf/provider-postgresql.database.Database", - reflect.TypeOf((*Database)(nil)).Elem(), + reflect.TypeFor[Database](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "addMoveTarget", GoMethod: "AddMoveTarget"}, _jsii_.MemberMethod{JsiiMethod: "addOverride", GoMethod: "AddOverride"}, @@ -88,7 +88,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "toString", GoMethod: "ToString"}, _jsii_.MemberMethod{JsiiMethod: "toTerraform", GoMethod: "ToTerraform"}, }, - func() interface{} { + func() any { j := jsiiProxy_Database{} _jsii_.InitJsiiProxy(&j.Type__cdktfTerraformResource) return &j @@ -96,6 +96,6 @@ func init() { ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.database.DatabaseConfig", - reflect.TypeOf((*DatabaseConfig)(nil)).Elem(), + reflect.TypeFor[DatabaseConfig](), ) } diff --git a/gen/postgresql/datapostgresqlschemas/DataPostgresqlSchemas.go b/gen/postgresql/datapostgresqlschemas/DataPostgresqlSchemas.go index d35c33863f..a454b9500d 100644 --- a/gen/postgresql/datapostgresqlschemas/DataPostgresqlSchemas.go +++ b/gen/postgresql/datapostgresqlschemas/DataPostgresqlSchemas.go @@ -15,11 +15,11 @@ type DataPostgresqlSchemas interface { // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. - ConstructNodeMetadata() *map[string]interface{} + ConstructNodeMetadata() *map[string]any // Experimental. - Count() interface{} + Count() any // Experimental. - SetCount(val interface{}) + SetCount(val any) Database() *string SetDatabase(val *string) DatabaseInput() *string @@ -38,9 +38,9 @@ type DataPostgresqlSchemas interface { Id() *string SetId(val *string) IdInput() *string - IncludeSystemSchemas() interface{} - SetIncludeSystemSchemas(val interface{}) - IncludeSystemSchemasInput() interface{} + IncludeSystemSchemas() any + SetIncludeSystemSchemas(val any) + IncludeSystemSchemasInput() any // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. @@ -61,7 +61,7 @@ type DataPostgresqlSchemas interface { // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. - RawOverrides() interface{} + RawOverrides() any RegexPattern() *string SetRegexPattern(val *string) RegexPatternInput() *string @@ -69,13 +69,13 @@ type DataPostgresqlSchemas interface { // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. - TerraformMetaArguments() *map[string]interface{} + TerraformMetaArguments() *map[string]any // Experimental. TerraformResourceType() *string // Experimental. - AddOverride(path *string, value interface{}) + AddOverride(path *string, value any) // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -106,18 +106,18 @@ type DataPostgresqlSchemas interface { // Experimental. ResetOverrideLogicalId() ResetRegexPattern() - SynthesizeAttributes() *map[string]interface{} - SynthesizeHclAttributes() *map[string]interface{} + SynthesizeAttributes() *map[string]any + SynthesizeHclAttributes() *map[string]any // Adds this resource to the terraform JSON output. // Experimental. - ToHclTerraform() interface{} + ToHclTerraform() any // Experimental. - ToMetadata() interface{} + ToMetadata() any // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. - ToTerraform() interface{} + ToTerraform() any } // The jsii proxy struct for DataPostgresqlSchemas @@ -135,8 +135,8 @@ func (j *jsiiProxy_DataPostgresqlSchemas) CdktfStack() cdktf.TerraformStack { return returns } -func (j *jsiiProxy_DataPostgresqlSchemas) ConstructNodeMetadata() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_DataPostgresqlSchemas) ConstructNodeMetadata() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "constructNodeMetadata", @@ -145,8 +145,8 @@ func (j *jsiiProxy_DataPostgresqlSchemas) ConstructNodeMetadata() *map[string]in return returns } -func (j *jsiiProxy_DataPostgresqlSchemas) Count() interface{} { - var returns interface{} +func (j *jsiiProxy_DataPostgresqlSchemas) Count() any { + var returns any _jsii_.Get( j, "count", @@ -235,8 +235,8 @@ func (j *jsiiProxy_DataPostgresqlSchemas) IdInput() *string { return returns } -func (j *jsiiProxy_DataPostgresqlSchemas) IncludeSystemSchemas() interface{} { - var returns interface{} +func (j *jsiiProxy_DataPostgresqlSchemas) IncludeSystemSchemas() any { + var returns any _jsii_.Get( j, "includeSystemSchemas", @@ -245,8 +245,8 @@ func (j *jsiiProxy_DataPostgresqlSchemas) IncludeSystemSchemas() interface{} { return returns } -func (j *jsiiProxy_DataPostgresqlSchemas) IncludeSystemSchemasInput() interface{} { - var returns interface{} +func (j *jsiiProxy_DataPostgresqlSchemas) IncludeSystemSchemasInput() any { + var returns any _jsii_.Get( j, "includeSystemSchemasInput", @@ -345,8 +345,8 @@ func (j *jsiiProxy_DataPostgresqlSchemas) Provider() cdktf.TerraformProvider { return returns } -func (j *jsiiProxy_DataPostgresqlSchemas) RawOverrides() interface{} { - var returns interface{} +func (j *jsiiProxy_DataPostgresqlSchemas) RawOverrides() any { + var returns any _jsii_.Get( j, "rawOverrides", @@ -395,8 +395,8 @@ func (j *jsiiProxy_DataPostgresqlSchemas) TerraformGeneratorMetadata() *cdktf.Te return returns } -func (j *jsiiProxy_DataPostgresqlSchemas) TerraformMetaArguments() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_DataPostgresqlSchemas) TerraformMetaArguments() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "terraformMetaArguments", @@ -415,7 +415,6 @@ func (j *jsiiProxy_DataPostgresqlSchemas) TerraformResourceType() *string { return returns } - // Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/data-sources/schemas postgresql_schemas} Data Source. func NewDataPostgresqlSchemas(scope constructs.Construct, id *string, config *DataPostgresqlSchemasConfig) DataPostgresqlSchemas { _init_.Initialize() @@ -427,7 +426,7 @@ func NewDataPostgresqlSchemas(scope constructs.Construct, id *string, config *Da _jsii_.Create( "@cdktf/provider-postgresql.dataPostgresqlSchemas.DataPostgresqlSchemas", - []interface{}{scope, id, config}, + []any{scope, id, config}, &j, ) @@ -440,12 +439,12 @@ func NewDataPostgresqlSchemas_Override(d DataPostgresqlSchemas, scope constructs _jsii_.Create( "@cdktf/provider-postgresql.dataPostgresqlSchemas.DataPostgresqlSchemas", - []interface{}{scope, id, config}, + []any{scope, id, config}, d, ) } -func (j *jsiiProxy_DataPostgresqlSchemas)SetCount(val interface{}) { +func (j *jsiiProxy_DataPostgresqlSchemas) SetCount(val any) { if err := j.validateSetCountParameters(val); err != nil { panic(err) } @@ -456,7 +455,7 @@ func (j *jsiiProxy_DataPostgresqlSchemas)SetCount(val interface{}) { ) } -func (j *jsiiProxy_DataPostgresqlSchemas)SetDatabase(val *string) { +func (j *jsiiProxy_DataPostgresqlSchemas) SetDatabase(val *string) { if err := j.validateSetDatabaseParameters(val); err != nil { panic(err) } @@ -467,7 +466,7 @@ func (j *jsiiProxy_DataPostgresqlSchemas)SetDatabase(val *string) { ) } -func (j *jsiiProxy_DataPostgresqlSchemas)SetDependsOn(val *[]*string) { +func (j *jsiiProxy_DataPostgresqlSchemas) SetDependsOn(val *[]*string) { _jsii_.Set( j, "dependsOn", @@ -475,7 +474,7 @@ func (j *jsiiProxy_DataPostgresqlSchemas)SetDependsOn(val *[]*string) { ) } -func (j *jsiiProxy_DataPostgresqlSchemas)SetForEach(val cdktf.ITerraformIterator) { +func (j *jsiiProxy_DataPostgresqlSchemas) SetForEach(val cdktf.ITerraformIterator) { _jsii_.Set( j, "forEach", @@ -483,7 +482,7 @@ func (j *jsiiProxy_DataPostgresqlSchemas)SetForEach(val cdktf.ITerraformIterator ) } -func (j *jsiiProxy_DataPostgresqlSchemas)SetId(val *string) { +func (j *jsiiProxy_DataPostgresqlSchemas) SetId(val *string) { if err := j.validateSetIdParameters(val); err != nil { panic(err) } @@ -494,7 +493,7 @@ func (j *jsiiProxy_DataPostgresqlSchemas)SetId(val *string) { ) } -func (j *jsiiProxy_DataPostgresqlSchemas)SetIncludeSystemSchemas(val interface{}) { +func (j *jsiiProxy_DataPostgresqlSchemas) SetIncludeSystemSchemas(val any) { if err := j.validateSetIncludeSystemSchemasParameters(val); err != nil { panic(err) } @@ -505,7 +504,7 @@ func (j *jsiiProxy_DataPostgresqlSchemas)SetIncludeSystemSchemas(val interface{} ) } -func (j *jsiiProxy_DataPostgresqlSchemas)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { +func (j *jsiiProxy_DataPostgresqlSchemas) SetLifecycle(val *cdktf.TerraformResourceLifecycle) { if err := j.validateSetLifecycleParameters(val); err != nil { panic(err) } @@ -516,7 +515,7 @@ func (j *jsiiProxy_DataPostgresqlSchemas)SetLifecycle(val *cdktf.TerraformResour ) } -func (j *jsiiProxy_DataPostgresqlSchemas)SetLikeAllPatterns(val *[]*string) { +func (j *jsiiProxy_DataPostgresqlSchemas) SetLikeAllPatterns(val *[]*string) { if err := j.validateSetLikeAllPatternsParameters(val); err != nil { panic(err) } @@ -527,7 +526,7 @@ func (j *jsiiProxy_DataPostgresqlSchemas)SetLikeAllPatterns(val *[]*string) { ) } -func (j *jsiiProxy_DataPostgresqlSchemas)SetLikeAnyPatterns(val *[]*string) { +func (j *jsiiProxy_DataPostgresqlSchemas) SetLikeAnyPatterns(val *[]*string) { if err := j.validateSetLikeAnyPatternsParameters(val); err != nil { panic(err) } @@ -538,7 +537,7 @@ func (j *jsiiProxy_DataPostgresqlSchemas)SetLikeAnyPatterns(val *[]*string) { ) } -func (j *jsiiProxy_DataPostgresqlSchemas)SetNotLikeAllPatterns(val *[]*string) { +func (j *jsiiProxy_DataPostgresqlSchemas) SetNotLikeAllPatterns(val *[]*string) { if err := j.validateSetNotLikeAllPatternsParameters(val); err != nil { panic(err) } @@ -549,7 +548,7 @@ func (j *jsiiProxy_DataPostgresqlSchemas)SetNotLikeAllPatterns(val *[]*string) { ) } -func (j *jsiiProxy_DataPostgresqlSchemas)SetProvider(val cdktf.TerraformProvider) { +func (j *jsiiProxy_DataPostgresqlSchemas) SetProvider(val cdktf.TerraformProvider) { _jsii_.Set( j, "provider", @@ -557,7 +556,7 @@ func (j *jsiiProxy_DataPostgresqlSchemas)SetProvider(val cdktf.TerraformProvider ) } -func (j *jsiiProxy_DataPostgresqlSchemas)SetRegexPattern(val *string) { +func (j *jsiiProxy_DataPostgresqlSchemas) SetRegexPattern(val *string) { if err := j.validateSetRegexPatternParameters(val); err != nil { panic(err) } @@ -580,7 +579,7 @@ func DataPostgresqlSchemas_GenerateConfigForImport(scope constructs.Construct, i _jsii_.StaticInvoke( "@cdktf/provider-postgresql.dataPostgresqlSchemas.DataPostgresqlSchemas", "generateConfigForImport", - []interface{}{scope, importToId, importFromId, provider}, + []any{scope, importToId, importFromId, provider}, &returns, ) @@ -604,7 +603,7 @@ func DataPostgresqlSchemas_GenerateConfigForImport(scope constructs.Construct, i // this type-testing method instead. // // Returns: true if `x` is an object created from a class which extends `Construct`. -func DataPostgresqlSchemas_IsConstruct(x interface{}) *bool { +func DataPostgresqlSchemas_IsConstruct(x any) *bool { _init_.Initialize() if err := validateDataPostgresqlSchemas_IsConstructParameters(x); err != nil { @@ -615,7 +614,7 @@ func DataPostgresqlSchemas_IsConstruct(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.dataPostgresqlSchemas.DataPostgresqlSchemas", "isConstruct", - []interface{}{x}, + []any{x}, &returns, ) @@ -623,7 +622,7 @@ func DataPostgresqlSchemas_IsConstruct(x interface{}) *bool { } // Experimental. -func DataPostgresqlSchemas_IsTerraformDataSource(x interface{}) *bool { +func DataPostgresqlSchemas_IsTerraformDataSource(x any) *bool { _init_.Initialize() if err := validateDataPostgresqlSchemas_IsTerraformDataSourceParameters(x); err != nil { @@ -634,7 +633,7 @@ func DataPostgresqlSchemas_IsTerraformDataSource(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.dataPostgresqlSchemas.DataPostgresqlSchemas", "isTerraformDataSource", - []interface{}{x}, + []any{x}, &returns, ) @@ -642,7 +641,7 @@ func DataPostgresqlSchemas_IsTerraformDataSource(x interface{}) *bool { } // Experimental. -func DataPostgresqlSchemas_IsTerraformElement(x interface{}) *bool { +func DataPostgresqlSchemas_IsTerraformElement(x any) *bool { _init_.Initialize() if err := validateDataPostgresqlSchemas_IsTerraformElementParameters(x); err != nil { @@ -653,7 +652,7 @@ func DataPostgresqlSchemas_IsTerraformElement(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.dataPostgresqlSchemas.DataPostgresqlSchemas", "isTerraformElement", - []interface{}{x}, + []any{x}, &returns, ) @@ -671,27 +670,27 @@ func DataPostgresqlSchemas_TfResourceType() *string { return returns } -func (d *jsiiProxy_DataPostgresqlSchemas) AddOverride(path *string, value interface{}) { +func (d *jsiiProxy_DataPostgresqlSchemas) AddOverride(path *string, value any) { if err := d.validateAddOverrideParameters(path, value); err != nil { panic(err) } _jsii_.InvokeVoid( d, "addOverride", - []interface{}{path, value}, + []any{path, value}, ) } -func (d *jsiiProxy_DataPostgresqlSchemas) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (d *jsiiProxy_DataPostgresqlSchemas) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := d.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( d, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -707,7 +706,7 @@ func (d *jsiiProxy_DataPostgresqlSchemas) GetBooleanAttribute(terraformAttribute _jsii_.Invoke( d, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -723,7 +722,7 @@ func (d *jsiiProxy_DataPostgresqlSchemas) GetBooleanMapAttribute(terraformAttrib _jsii_.Invoke( d, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -739,7 +738,7 @@ func (d *jsiiProxy_DataPostgresqlSchemas) GetListAttribute(terraformAttribute *s _jsii_.Invoke( d, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -755,7 +754,7 @@ func (d *jsiiProxy_DataPostgresqlSchemas) GetNumberAttribute(terraformAttribute _jsii_.Invoke( d, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -771,7 +770,7 @@ func (d *jsiiProxy_DataPostgresqlSchemas) GetNumberListAttribute(terraformAttrib _jsii_.Invoke( d, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -787,7 +786,7 @@ func (d *jsiiProxy_DataPostgresqlSchemas) GetNumberMapAttribute(terraformAttribu _jsii_.Invoke( d, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -803,7 +802,7 @@ func (d *jsiiProxy_DataPostgresqlSchemas) GetStringAttribute(terraformAttribute _jsii_.Invoke( d, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -819,7 +818,7 @@ func (d *jsiiProxy_DataPostgresqlSchemas) GetStringMapAttribute(terraformAttribu _jsii_.Invoke( d, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -835,7 +834,7 @@ func (d *jsiiProxy_DataPostgresqlSchemas) InterpolationForAttribute(terraformAtt _jsii_.Invoke( d, "interpolationForAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -849,7 +848,7 @@ func (d *jsiiProxy_DataPostgresqlSchemas) OverrideLogicalId(newLogicalId *string _jsii_.InvokeVoid( d, "overrideLogicalId", - []interface{}{newLogicalId}, + []any{newLogicalId}, ) } @@ -909,8 +908,8 @@ func (d *jsiiProxy_DataPostgresqlSchemas) ResetRegexPattern() { ) } -func (d *jsiiProxy_DataPostgresqlSchemas) SynthesizeAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (d *jsiiProxy_DataPostgresqlSchemas) SynthesizeAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( d, @@ -922,8 +921,8 @@ func (d *jsiiProxy_DataPostgresqlSchemas) SynthesizeAttributes() *map[string]int return returns } -func (d *jsiiProxy_DataPostgresqlSchemas) SynthesizeHclAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (d *jsiiProxy_DataPostgresqlSchemas) SynthesizeHclAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( d, @@ -935,8 +934,8 @@ func (d *jsiiProxy_DataPostgresqlSchemas) SynthesizeHclAttributes() *map[string] return returns } -func (d *jsiiProxy_DataPostgresqlSchemas) ToHclTerraform() interface{} { - var returns interface{} +func (d *jsiiProxy_DataPostgresqlSchemas) ToHclTerraform() any { + var returns any _jsii_.Invoke( d, @@ -948,8 +947,8 @@ func (d *jsiiProxy_DataPostgresqlSchemas) ToHclTerraform() interface{} { return returns } -func (d *jsiiProxy_DataPostgresqlSchemas) ToMetadata() interface{} { - var returns interface{} +func (d *jsiiProxy_DataPostgresqlSchemas) ToMetadata() any { + var returns any _jsii_.Invoke( d, @@ -974,8 +973,8 @@ func (d *jsiiProxy_DataPostgresqlSchemas) ToString() *string { return returns } -func (d *jsiiProxy_DataPostgresqlSchemas) ToTerraform() interface{} { - var returns interface{} +func (d *jsiiProxy_DataPostgresqlSchemas) ToTerraform() any { + var returns any _jsii_.Invoke( d, @@ -986,4 +985,3 @@ func (d *jsiiProxy_DataPostgresqlSchemas) ToTerraform() interface{} { return returns } - diff --git a/gen/postgresql/datapostgresqlschemas/DataPostgresqlSchemasConfig.go b/gen/postgresql/datapostgresqlschemas/DataPostgresqlSchemasConfig.go index 9241858dea..f334fb3406 100644 --- a/gen/postgresql/datapostgresqlschemas/DataPostgresqlSchemasConfig.go +++ b/gen/postgresql/datapostgresqlschemas/DataPostgresqlSchemasConfig.go @@ -6,9 +6,9 @@ import ( type DataPostgresqlSchemasConfig struct { // Experimental. - Connection interface{} `field:"optional" json:"connection" yaml:"connection"` + Connection any `field:"optional" json:"connection" yaml:"connection"` // Experimental. - Count interface{} `field:"optional" json:"count" yaml:"count"` + Count any `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. @@ -18,7 +18,7 @@ type DataPostgresqlSchemasConfig struct { // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. - Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` + Provisioners *[]any `field:"optional" json:"provisioners" yaml:"provisioners"` // The PostgreSQL database which will be queried for schema names. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/data-sources/schemas#database DataPostgresqlSchemas#database} @@ -31,7 +31,7 @@ type DataPostgresqlSchemasConfig struct { // Determines whether to include system schemas (pg_ prefix and information_schema). 'public' will always be included. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/data-sources/schemas#include_system_schemas DataPostgresqlSchemas#include_system_schemas} - IncludeSystemSchemas interface{} `field:"optional" json:"includeSystemSchemas" yaml:"includeSystemSchemas"` + IncludeSystemSchemas any `field:"optional" json:"includeSystemSchemas" yaml:"includeSystemSchemas"` // Expression(s) which will be pattern matched in the query using the PostgreSQL LIKE ALL operator. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/data-sources/schemas#like_all_patterns DataPostgresqlSchemas#like_all_patterns} @@ -49,4 +49,3 @@ type DataPostgresqlSchemasConfig struct { // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/data-sources/schemas#regex_pattern DataPostgresqlSchemas#regex_pattern} RegexPattern *string `field:"optional" json:"regexPattern" yaml:"regexPattern"` } - diff --git a/gen/postgresql/datapostgresqlschemas/DataPostgresqlSchemas__checks.go b/gen/postgresql/datapostgresqlschemas/DataPostgresqlSchemas__checks.go index 6b1135f204..354f9977ae 100644 --- a/gen/postgresql/datapostgresqlschemas/DataPostgresqlSchemas__checks.go +++ b/gen/postgresql/datapostgresqlschemas/DataPostgresqlSchemas__checks.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/terraform-cdk-go/cdktf" ) -func (d *jsiiProxy_DataPostgresqlSchemas) validateAddOverrideParameters(path *string, value interface{}) error { +func (d *jsiiProxy_DataPostgresqlSchemas) validateAddOverrideParameters(path *string, value any) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } @@ -127,7 +127,7 @@ func validateDataPostgresqlSchemas_GenerateConfigForImportParameters(scope const return nil } -func validateDataPostgresqlSchemas_IsConstructParameters(x interface{}) error { +func validateDataPostgresqlSchemas_IsConstructParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -135,7 +135,7 @@ func validateDataPostgresqlSchemas_IsConstructParameters(x interface{}) error { return nil } -func validateDataPostgresqlSchemas_IsTerraformDataSourceParameters(x interface{}) error { +func validateDataPostgresqlSchemas_IsTerraformDataSourceParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -143,7 +143,7 @@ func validateDataPostgresqlSchemas_IsTerraformDataSourceParameters(x interface{} return nil } -func validateDataPostgresqlSchemas_IsTerraformElementParameters(x interface{}) error { +func validateDataPostgresqlSchemas_IsTerraformElementParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -151,7 +151,7 @@ func validateDataPostgresqlSchemas_IsTerraformElementParameters(x interface{}) e return nil } -func (j *jsiiProxy_DataPostgresqlSchemas) validateSetCountParameters(val interface{}) error { +func (j *jsiiProxy_DataPostgresqlSchemas) validateSetCountParameters(val any) error { switch val.(type) { case *float64: // ok @@ -224,7 +224,7 @@ func (j *jsiiProxy_DataPostgresqlSchemas) validateSetIdParameters(val *string) e return nil } -func (j *jsiiProxy_DataPostgresqlSchemas) validateSetIncludeSystemSchemasParameters(val interface{}) error { +func (j *jsiiProxy_DataPostgresqlSchemas) validateSetIncludeSystemSchemasParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -302,4 +302,3 @@ func validateNewDataPostgresqlSchemasParameters(scope constructs.Construct, id * return nil } - diff --git a/gen/postgresql/datapostgresqlschemas/main.go b/gen/postgresql/datapostgresqlschemas/main.go index 206cc52f7b..c10003f21f 100644 --- a/gen/postgresql/datapostgresqlschemas/main.go +++ b/gen/postgresql/datapostgresqlschemas/main.go @@ -9,7 +9,7 @@ import ( func init() { _jsii_.RegisterClass( "@cdktf/provider-postgresql.dataPostgresqlSchemas.DataPostgresqlSchemas", - reflect.TypeOf((*DataPostgresqlSchemas)(nil)).Elem(), + reflect.TypeFor[DataPostgresqlSchemas](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "addOverride", GoMethod: "AddOverride"}, _jsii_.MemberProperty{JsiiProperty: "cdktfStack", GoGetter: "CdktfStack"}, @@ -66,7 +66,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "toString", GoMethod: "ToString"}, _jsii_.MemberMethod{JsiiMethod: "toTerraform", GoMethod: "ToTerraform"}, }, - func() interface{} { + func() any { j := jsiiProxy_DataPostgresqlSchemas{} _jsii_.InitJsiiProxy(&j.Type__cdktfTerraformDataSource) return &j @@ -74,6 +74,6 @@ func init() { ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.dataPostgresqlSchemas.DataPostgresqlSchemasConfig", - reflect.TypeOf((*DataPostgresqlSchemasConfig)(nil)).Elem(), + reflect.TypeFor[DataPostgresqlSchemasConfig](), ) } diff --git a/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequences.go b/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequences.go index 43122d685c..5c921fee45 100644 --- a/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequences.go +++ b/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequences.go @@ -15,11 +15,11 @@ type DataPostgresqlSequences interface { // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. - ConstructNodeMetadata() *map[string]interface{} + ConstructNodeMetadata() *map[string]any // Experimental. - Count() interface{} + Count() any // Experimental. - SetCount(val interface{}) + SetCount(val any) Database() *string SetDatabase(val *string) DatabaseInput() *string @@ -58,7 +58,7 @@ type DataPostgresqlSequences interface { // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. - RawOverrides() interface{} + RawOverrides() any RegexPattern() *string SetRegexPattern(val *string) RegexPatternInput() *string @@ -69,13 +69,13 @@ type DataPostgresqlSequences interface { // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. - TerraformMetaArguments() *map[string]interface{} + TerraformMetaArguments() *map[string]any // Experimental. TerraformResourceType() *string // Experimental. - AddOverride(path *string, value interface{}) + AddOverride(path *string, value any) // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -106,18 +106,18 @@ type DataPostgresqlSequences interface { ResetOverrideLogicalId() ResetRegexPattern() ResetSchemas() - SynthesizeAttributes() *map[string]interface{} - SynthesizeHclAttributes() *map[string]interface{} + SynthesizeAttributes() *map[string]any + SynthesizeHclAttributes() *map[string]any // Adds this resource to the terraform JSON output. // Experimental. - ToHclTerraform() interface{} + ToHclTerraform() any // Experimental. - ToMetadata() interface{} + ToMetadata() any // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. - ToTerraform() interface{} + ToTerraform() any } // The jsii proxy struct for DataPostgresqlSequences @@ -135,8 +135,8 @@ func (j *jsiiProxy_DataPostgresqlSequences) CdktfStack() cdktf.TerraformStack { return returns } -func (j *jsiiProxy_DataPostgresqlSequences) ConstructNodeMetadata() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_DataPostgresqlSequences) ConstructNodeMetadata() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "constructNodeMetadata", @@ -145,8 +145,8 @@ func (j *jsiiProxy_DataPostgresqlSequences) ConstructNodeMetadata() *map[string] return returns } -func (j *jsiiProxy_DataPostgresqlSequences) Count() interface{} { - var returns interface{} +func (j *jsiiProxy_DataPostgresqlSequences) Count() any { + var returns any _jsii_.Get( j, "count", @@ -325,8 +325,8 @@ func (j *jsiiProxy_DataPostgresqlSequences) Provider() cdktf.TerraformProvider { return returns } -func (j *jsiiProxy_DataPostgresqlSequences) RawOverrides() interface{} { - var returns interface{} +func (j *jsiiProxy_DataPostgresqlSequences) RawOverrides() any { + var returns any _jsii_.Get( j, "rawOverrides", @@ -395,8 +395,8 @@ func (j *jsiiProxy_DataPostgresqlSequences) TerraformGeneratorMetadata() *cdktf. return returns } -func (j *jsiiProxy_DataPostgresqlSequences) TerraformMetaArguments() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_DataPostgresqlSequences) TerraformMetaArguments() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "terraformMetaArguments", @@ -415,7 +415,6 @@ func (j *jsiiProxy_DataPostgresqlSequences) TerraformResourceType() *string { return returns } - // Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/data-sources/sequences postgresql_sequences} Data Source. func NewDataPostgresqlSequences(scope constructs.Construct, id *string, config *DataPostgresqlSequencesConfig) DataPostgresqlSequences { _init_.Initialize() @@ -427,7 +426,7 @@ func NewDataPostgresqlSequences(scope constructs.Construct, id *string, config * _jsii_.Create( "@cdktf/provider-postgresql.dataPostgresqlSequences.DataPostgresqlSequences", - []interface{}{scope, id, config}, + []any{scope, id, config}, &j, ) @@ -440,12 +439,12 @@ func NewDataPostgresqlSequences_Override(d DataPostgresqlSequences, scope constr _jsii_.Create( "@cdktf/provider-postgresql.dataPostgresqlSequences.DataPostgresqlSequences", - []interface{}{scope, id, config}, + []any{scope, id, config}, d, ) } -func (j *jsiiProxy_DataPostgresqlSequences)SetCount(val interface{}) { +func (j *jsiiProxy_DataPostgresqlSequences) SetCount(val any) { if err := j.validateSetCountParameters(val); err != nil { panic(err) } @@ -456,7 +455,7 @@ func (j *jsiiProxy_DataPostgresqlSequences)SetCount(val interface{}) { ) } -func (j *jsiiProxy_DataPostgresqlSequences)SetDatabase(val *string) { +func (j *jsiiProxy_DataPostgresqlSequences) SetDatabase(val *string) { if err := j.validateSetDatabaseParameters(val); err != nil { panic(err) } @@ -467,7 +466,7 @@ func (j *jsiiProxy_DataPostgresqlSequences)SetDatabase(val *string) { ) } -func (j *jsiiProxy_DataPostgresqlSequences)SetDependsOn(val *[]*string) { +func (j *jsiiProxy_DataPostgresqlSequences) SetDependsOn(val *[]*string) { _jsii_.Set( j, "dependsOn", @@ -475,7 +474,7 @@ func (j *jsiiProxy_DataPostgresqlSequences)SetDependsOn(val *[]*string) { ) } -func (j *jsiiProxy_DataPostgresqlSequences)SetForEach(val cdktf.ITerraformIterator) { +func (j *jsiiProxy_DataPostgresqlSequences) SetForEach(val cdktf.ITerraformIterator) { _jsii_.Set( j, "forEach", @@ -483,7 +482,7 @@ func (j *jsiiProxy_DataPostgresqlSequences)SetForEach(val cdktf.ITerraformIterat ) } -func (j *jsiiProxy_DataPostgresqlSequences)SetId(val *string) { +func (j *jsiiProxy_DataPostgresqlSequences) SetId(val *string) { if err := j.validateSetIdParameters(val); err != nil { panic(err) } @@ -494,7 +493,7 @@ func (j *jsiiProxy_DataPostgresqlSequences)SetId(val *string) { ) } -func (j *jsiiProxy_DataPostgresqlSequences)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { +func (j *jsiiProxy_DataPostgresqlSequences) SetLifecycle(val *cdktf.TerraformResourceLifecycle) { if err := j.validateSetLifecycleParameters(val); err != nil { panic(err) } @@ -505,7 +504,7 @@ func (j *jsiiProxy_DataPostgresqlSequences)SetLifecycle(val *cdktf.TerraformReso ) } -func (j *jsiiProxy_DataPostgresqlSequences)SetLikeAllPatterns(val *[]*string) { +func (j *jsiiProxy_DataPostgresqlSequences) SetLikeAllPatterns(val *[]*string) { if err := j.validateSetLikeAllPatternsParameters(val); err != nil { panic(err) } @@ -516,7 +515,7 @@ func (j *jsiiProxy_DataPostgresqlSequences)SetLikeAllPatterns(val *[]*string) { ) } -func (j *jsiiProxy_DataPostgresqlSequences)SetLikeAnyPatterns(val *[]*string) { +func (j *jsiiProxy_DataPostgresqlSequences) SetLikeAnyPatterns(val *[]*string) { if err := j.validateSetLikeAnyPatternsParameters(val); err != nil { panic(err) } @@ -527,7 +526,7 @@ func (j *jsiiProxy_DataPostgresqlSequences)SetLikeAnyPatterns(val *[]*string) { ) } -func (j *jsiiProxy_DataPostgresqlSequences)SetNotLikeAllPatterns(val *[]*string) { +func (j *jsiiProxy_DataPostgresqlSequences) SetNotLikeAllPatterns(val *[]*string) { if err := j.validateSetNotLikeAllPatternsParameters(val); err != nil { panic(err) } @@ -538,7 +537,7 @@ func (j *jsiiProxy_DataPostgresqlSequences)SetNotLikeAllPatterns(val *[]*string) ) } -func (j *jsiiProxy_DataPostgresqlSequences)SetProvider(val cdktf.TerraformProvider) { +func (j *jsiiProxy_DataPostgresqlSequences) SetProvider(val cdktf.TerraformProvider) { _jsii_.Set( j, "provider", @@ -546,7 +545,7 @@ func (j *jsiiProxy_DataPostgresqlSequences)SetProvider(val cdktf.TerraformProvid ) } -func (j *jsiiProxy_DataPostgresqlSequences)SetRegexPattern(val *string) { +func (j *jsiiProxy_DataPostgresqlSequences) SetRegexPattern(val *string) { if err := j.validateSetRegexPatternParameters(val); err != nil { panic(err) } @@ -557,7 +556,7 @@ func (j *jsiiProxy_DataPostgresqlSequences)SetRegexPattern(val *string) { ) } -func (j *jsiiProxy_DataPostgresqlSequences)SetSchemas(val *[]*string) { +func (j *jsiiProxy_DataPostgresqlSequences) SetSchemas(val *[]*string) { if err := j.validateSetSchemasParameters(val); err != nil { panic(err) } @@ -580,7 +579,7 @@ func DataPostgresqlSequences_GenerateConfigForImport(scope constructs.Construct, _jsii_.StaticInvoke( "@cdktf/provider-postgresql.dataPostgresqlSequences.DataPostgresqlSequences", "generateConfigForImport", - []interface{}{scope, importToId, importFromId, provider}, + []any{scope, importToId, importFromId, provider}, &returns, ) @@ -604,7 +603,7 @@ func DataPostgresqlSequences_GenerateConfigForImport(scope constructs.Construct, // this type-testing method instead. // // Returns: true if `x` is an object created from a class which extends `Construct`. -func DataPostgresqlSequences_IsConstruct(x interface{}) *bool { +func DataPostgresqlSequences_IsConstruct(x any) *bool { _init_.Initialize() if err := validateDataPostgresqlSequences_IsConstructParameters(x); err != nil { @@ -615,7 +614,7 @@ func DataPostgresqlSequences_IsConstruct(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.dataPostgresqlSequences.DataPostgresqlSequences", "isConstruct", - []interface{}{x}, + []any{x}, &returns, ) @@ -623,7 +622,7 @@ func DataPostgresqlSequences_IsConstruct(x interface{}) *bool { } // Experimental. -func DataPostgresqlSequences_IsTerraformDataSource(x interface{}) *bool { +func DataPostgresqlSequences_IsTerraformDataSource(x any) *bool { _init_.Initialize() if err := validateDataPostgresqlSequences_IsTerraformDataSourceParameters(x); err != nil { @@ -634,7 +633,7 @@ func DataPostgresqlSequences_IsTerraformDataSource(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.dataPostgresqlSequences.DataPostgresqlSequences", "isTerraformDataSource", - []interface{}{x}, + []any{x}, &returns, ) @@ -642,7 +641,7 @@ func DataPostgresqlSequences_IsTerraformDataSource(x interface{}) *bool { } // Experimental. -func DataPostgresqlSequences_IsTerraformElement(x interface{}) *bool { +func DataPostgresqlSequences_IsTerraformElement(x any) *bool { _init_.Initialize() if err := validateDataPostgresqlSequences_IsTerraformElementParameters(x); err != nil { @@ -653,7 +652,7 @@ func DataPostgresqlSequences_IsTerraformElement(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.dataPostgresqlSequences.DataPostgresqlSequences", "isTerraformElement", - []interface{}{x}, + []any{x}, &returns, ) @@ -671,27 +670,27 @@ func DataPostgresqlSequences_TfResourceType() *string { return returns } -func (d *jsiiProxy_DataPostgresqlSequences) AddOverride(path *string, value interface{}) { +func (d *jsiiProxy_DataPostgresqlSequences) AddOverride(path *string, value any) { if err := d.validateAddOverrideParameters(path, value); err != nil { panic(err) } _jsii_.InvokeVoid( d, "addOverride", - []interface{}{path, value}, + []any{path, value}, ) } -func (d *jsiiProxy_DataPostgresqlSequences) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (d *jsiiProxy_DataPostgresqlSequences) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := d.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( d, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -707,7 +706,7 @@ func (d *jsiiProxy_DataPostgresqlSequences) GetBooleanAttribute(terraformAttribu _jsii_.Invoke( d, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -723,7 +722,7 @@ func (d *jsiiProxy_DataPostgresqlSequences) GetBooleanMapAttribute(terraformAttr _jsii_.Invoke( d, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -739,7 +738,7 @@ func (d *jsiiProxy_DataPostgresqlSequences) GetListAttribute(terraformAttribute _jsii_.Invoke( d, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -755,7 +754,7 @@ func (d *jsiiProxy_DataPostgresqlSequences) GetNumberAttribute(terraformAttribut _jsii_.Invoke( d, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -771,7 +770,7 @@ func (d *jsiiProxy_DataPostgresqlSequences) GetNumberListAttribute(terraformAttr _jsii_.Invoke( d, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -787,7 +786,7 @@ func (d *jsiiProxy_DataPostgresqlSequences) GetNumberMapAttribute(terraformAttri _jsii_.Invoke( d, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -803,7 +802,7 @@ func (d *jsiiProxy_DataPostgresqlSequences) GetStringAttribute(terraformAttribut _jsii_.Invoke( d, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -819,7 +818,7 @@ func (d *jsiiProxy_DataPostgresqlSequences) GetStringMapAttribute(terraformAttri _jsii_.Invoke( d, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -835,7 +834,7 @@ func (d *jsiiProxy_DataPostgresqlSequences) InterpolationForAttribute(terraformA _jsii_.Invoke( d, "interpolationForAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -849,7 +848,7 @@ func (d *jsiiProxy_DataPostgresqlSequences) OverrideLogicalId(newLogicalId *stri _jsii_.InvokeVoid( d, "overrideLogicalId", - []interface{}{newLogicalId}, + []any{newLogicalId}, ) } @@ -909,8 +908,8 @@ func (d *jsiiProxy_DataPostgresqlSequences) ResetSchemas() { ) } -func (d *jsiiProxy_DataPostgresqlSequences) SynthesizeAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (d *jsiiProxy_DataPostgresqlSequences) SynthesizeAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( d, @@ -922,8 +921,8 @@ func (d *jsiiProxy_DataPostgresqlSequences) SynthesizeAttributes() *map[string]i return returns } -func (d *jsiiProxy_DataPostgresqlSequences) SynthesizeHclAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (d *jsiiProxy_DataPostgresqlSequences) SynthesizeHclAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( d, @@ -935,8 +934,8 @@ func (d *jsiiProxy_DataPostgresqlSequences) SynthesizeHclAttributes() *map[strin return returns } -func (d *jsiiProxy_DataPostgresqlSequences) ToHclTerraform() interface{} { - var returns interface{} +func (d *jsiiProxy_DataPostgresqlSequences) ToHclTerraform() any { + var returns any _jsii_.Invoke( d, @@ -948,8 +947,8 @@ func (d *jsiiProxy_DataPostgresqlSequences) ToHclTerraform() interface{} { return returns } -func (d *jsiiProxy_DataPostgresqlSequences) ToMetadata() interface{} { - var returns interface{} +func (d *jsiiProxy_DataPostgresqlSequences) ToMetadata() any { + var returns any _jsii_.Invoke( d, @@ -974,8 +973,8 @@ func (d *jsiiProxy_DataPostgresqlSequences) ToString() *string { return returns } -func (d *jsiiProxy_DataPostgresqlSequences) ToTerraform() interface{} { - var returns interface{} +func (d *jsiiProxy_DataPostgresqlSequences) ToTerraform() any { + var returns any _jsii_.Invoke( d, @@ -986,4 +985,3 @@ func (d *jsiiProxy_DataPostgresqlSequences) ToTerraform() interface{} { return returns } - diff --git a/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequencesConfig.go b/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequencesConfig.go index 95361947b8..1c37cc96e0 100644 --- a/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequencesConfig.go +++ b/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequencesConfig.go @@ -6,9 +6,9 @@ import ( type DataPostgresqlSequencesConfig struct { // Experimental. - Connection interface{} `field:"optional" json:"connection" yaml:"connection"` + Connection any `field:"optional" json:"connection" yaml:"connection"` // Experimental. - Count interface{} `field:"optional" json:"count" yaml:"count"` + Count any `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. @@ -18,7 +18,7 @@ type DataPostgresqlSequencesConfig struct { // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. - Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` + Provisioners *[]any `field:"optional" json:"provisioners" yaml:"provisioners"` // The PostgreSQL database which will be queried for sequence names. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/data-sources/sequences#database DataPostgresqlSequences#database} @@ -49,4 +49,3 @@ type DataPostgresqlSequencesConfig struct { // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/data-sources/sequences#schemas DataPostgresqlSequences#schemas} Schemas *[]*string `field:"optional" json:"schemas" yaml:"schemas"` } - diff --git a/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequencesSequencesList.go b/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequencesSequencesList.go index 4e945e7bd5..a394c34c92 100644 --- a/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequencesSequencesList.go +++ b/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequencesSequencesList.go @@ -36,7 +36,7 @@ type DataPostgresqlSequencesSequencesList interface { Get(index *float64) DataPostgresqlSequencesSequencesOutputReference // Produce the Token's value at resolution time. // Experimental. - Resolve(_context cdktf.IResolveContext) interface{} + Resolve(_context cdktf.IResolveContext) any // Return a string representation of this resolvable object. // // Returns a reversible string representation. @@ -99,7 +99,6 @@ func (j *jsiiProxy_DataPostgresqlSequencesSequencesList) WrapsSet() *bool { return returns } - func NewDataPostgresqlSequencesSequencesList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) DataPostgresqlSequencesSequencesList { _init_.Initialize() @@ -110,7 +109,7 @@ func NewDataPostgresqlSequencesSequencesList(terraformResource cdktf.IInterpolat _jsii_.Create( "@cdktf/provider-postgresql.dataPostgresqlSequences.DataPostgresqlSequencesSequencesList", - []interface{}{terraformResource, terraformAttribute, wrapsSet}, + []any{terraformResource, terraformAttribute, wrapsSet}, &j, ) @@ -122,12 +121,12 @@ func NewDataPostgresqlSequencesSequencesList_Override(d DataPostgresqlSequencesS _jsii_.Create( "@cdktf/provider-postgresql.dataPostgresqlSequences.DataPostgresqlSequencesSequencesList", - []interface{}{terraformResource, terraformAttribute, wrapsSet}, + []any{terraformResource, terraformAttribute, wrapsSet}, d, ) } -func (j *jsiiProxy_DataPostgresqlSequencesSequencesList)SetTerraformAttribute(val *string) { +func (j *jsiiProxy_DataPostgresqlSequencesSequencesList) SetTerraformAttribute(val *string) { if err := j.validateSetTerraformAttributeParameters(val); err != nil { panic(err) } @@ -138,7 +137,7 @@ func (j *jsiiProxy_DataPostgresqlSequencesSequencesList)SetTerraformAttribute(va ) } -func (j *jsiiProxy_DataPostgresqlSequencesSequencesList)SetTerraformResource(val cdktf.IInterpolatingParent) { +func (j *jsiiProxy_DataPostgresqlSequencesSequencesList) SetTerraformResource(val cdktf.IInterpolatingParent) { if err := j.validateSetTerraformResourceParameters(val); err != nil { panic(err) } @@ -149,7 +148,7 @@ func (j *jsiiProxy_DataPostgresqlSequencesSequencesList)SetTerraformResource(val ) } -func (j *jsiiProxy_DataPostgresqlSequencesSequencesList)SetWrapsSet(val *bool) { +func (j *jsiiProxy_DataPostgresqlSequencesSequencesList) SetWrapsSet(val *bool) { if err := j.validateSetWrapsSetParameters(val); err != nil { panic(err) } @@ -169,7 +168,7 @@ func (d *jsiiProxy_DataPostgresqlSequencesSequencesList) AllWithMapKey(mapKeyAtt _jsii_.Invoke( d, "allWithMapKey", - []interface{}{mapKeyAttributeName}, + []any{mapKeyAttributeName}, &returns, ) @@ -198,23 +197,23 @@ func (d *jsiiProxy_DataPostgresqlSequencesSequencesList) Get(index *float64) Dat _jsii_.Invoke( d, "get", - []interface{}{index}, + []any{index}, &returns, ) return returns } -func (d *jsiiProxy_DataPostgresqlSequencesSequencesList) Resolve(_context cdktf.IResolveContext) interface{} { +func (d *jsiiProxy_DataPostgresqlSequencesSequencesList) Resolve(_context cdktf.IResolveContext) any { if err := d.validateResolveParameters(_context); err != nil { panic(err) } - var returns interface{} + var returns any _jsii_.Invoke( d, "resolve", - []interface{}{_context}, + []any{_context}, &returns, ) @@ -233,4 +232,3 @@ func (d *jsiiProxy_DataPostgresqlSequencesSequencesList) ToString() *string { return returns } - diff --git a/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequencesSequencesOutputReference.go b/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequencesSequencesOutputReference.go index 5d5d7923b5..459ca3cd36 100644 --- a/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequencesSequencesOutputReference.go +++ b/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequencesSequencesOutputReference.go @@ -12,9 +12,9 @@ type DataPostgresqlSequencesSequencesOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. - ComplexObjectIndex() interface{} + ComplexObjectIndex() any // Experimental. - SetComplexObjectIndex(val interface{}) + SetComplexObjectIndex(val any) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool @@ -43,7 +43,7 @@ type DataPostgresqlSequencesSequencesOutputReference interface { // Experimental. ComputeFqn() *string // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -66,7 +66,7 @@ type DataPostgresqlSequencesSequencesOutputReference interface { InterpolationForAttribute(property *string) cdktf.IResolvable // Produce the Token's value at resolution time. // Experimental. - Resolve(_context cdktf.IResolveContext) interface{} + Resolve(_context cdktf.IResolveContext) any // Return a string representation of this resolvable object. // // Returns a reversible string representation. @@ -79,8 +79,8 @@ type jsiiProxy_DataPostgresqlSequencesSequencesOutputReference struct { internal.Type__cdktfComplexObject } -func (j *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) ComplexObjectIndex() interface{} { - var returns interface{} +func (j *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) ComplexObjectIndex() any { + var returns any _jsii_.Get( j, "complexObjectIndex", @@ -179,7 +179,6 @@ func (j *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) TerraformRes return returns } - func NewDataPostgresqlSequencesSequencesOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) DataPostgresqlSequencesSequencesOutputReference { _init_.Initialize() @@ -190,7 +189,7 @@ func NewDataPostgresqlSequencesSequencesOutputReference(terraformResource cdktf. _jsii_.Create( "@cdktf/provider-postgresql.dataPostgresqlSequences.DataPostgresqlSequencesSequencesOutputReference", - []interface{}{terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet}, + []any{terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet}, &j, ) @@ -202,12 +201,12 @@ func NewDataPostgresqlSequencesSequencesOutputReference_Override(d DataPostgresq _jsii_.Create( "@cdktf/provider-postgresql.dataPostgresqlSequences.DataPostgresqlSequencesSequencesOutputReference", - []interface{}{terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet}, + []any{terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet}, d, ) } -func (j *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference)SetComplexObjectIndex(val interface{}) { +func (j *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) SetComplexObjectIndex(val any) { if err := j.validateSetComplexObjectIndexParameters(val); err != nil { panic(err) } @@ -218,7 +217,7 @@ func (j *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference)SetComplexObj ) } -func (j *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference)SetComplexObjectIsFromSet(val *bool) { +func (j *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) SetComplexObjectIsFromSet(val *bool) { if err := j.validateSetComplexObjectIsFromSetParameters(val); err != nil { panic(err) } @@ -229,7 +228,7 @@ func (j *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference)SetComplexObj ) } -func (j *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference)SetInternalValue(val *DataPostgresqlSequencesSequences) { +func (j *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) SetInternalValue(val *DataPostgresqlSequencesSequences) { if err := j.validateSetInternalValueParameters(val); err != nil { panic(err) } @@ -240,7 +239,7 @@ func (j *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference)SetInternalVa ) } -func (j *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference)SetTerraformAttribute(val *string) { +func (j *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) SetTerraformAttribute(val *string) { if err := j.validateSetTerraformAttributeParameters(val); err != nil { panic(err) } @@ -251,7 +250,7 @@ func (j *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference)SetTerraformA ) } -func (j *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference)SetTerraformResource(val cdktf.IInterpolatingParent) { +func (j *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) SetTerraformResource(val cdktf.IInterpolatingParent) { if err := j.validateSetTerraformResourceParameters(val); err != nil { panic(err) } @@ -275,16 +274,16 @@ func (d *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) ComputeFqn() return returns } -func (d *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (d *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := d.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( d, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -300,7 +299,7 @@ func (d *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) GetBooleanAt _jsii_.Invoke( d, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -316,7 +315,7 @@ func (d *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) GetBooleanMa _jsii_.Invoke( d, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -332,7 +331,7 @@ func (d *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) GetListAttri _jsii_.Invoke( d, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -348,7 +347,7 @@ func (d *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) GetNumberAtt _jsii_.Invoke( d, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -364,7 +363,7 @@ func (d *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) GetNumberLis _jsii_.Invoke( d, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -380,7 +379,7 @@ func (d *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) GetNumberMap _jsii_.Invoke( d, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -396,7 +395,7 @@ func (d *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) GetStringAtt _jsii_.Invoke( d, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -412,7 +411,7 @@ func (d *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) GetStringMap _jsii_.Invoke( d, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -441,23 +440,23 @@ func (d *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) Interpolatio _jsii_.Invoke( d, "interpolationForAttribute", - []interface{}{property}, + []any{property}, &returns, ) return returns } -func (d *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) Resolve(_context cdktf.IResolveContext) interface{} { +func (d *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) Resolve(_context cdktf.IResolveContext) any { if err := d.validateResolveParameters(_context); err != nil { panic(err) } - var returns interface{} + var returns any _jsii_.Invoke( d, "resolve", - []interface{}{_context}, + []any{_context}, &returns, ) @@ -476,4 +475,3 @@ func (d *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) ToString() * return returns } - diff --git a/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequencesSequencesOutputReference__checks.go b/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequencesSequencesOutputReference__checks.go index ddc7fddafc..37a8407c75 100644 --- a/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequencesSequencesOutputReference__checks.go +++ b/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequencesSequencesOutputReference__checks.go @@ -98,7 +98,7 @@ func (d *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) validateReso return nil } -func (j *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) validateSetComplexObjectIndexParameters(val interface{}) error { +func (j *jsiiProxy_DataPostgresqlSequencesSequencesOutputReference) validateSetComplexObjectIndexParameters(val any) error { switch val.(type) { case *string: // ok @@ -206,4 +206,3 @@ func validateNewDataPostgresqlSequencesSequencesOutputReferenceParameters(terraf return nil } - diff --git a/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequences__checks.go b/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequences__checks.go index 59c3bf5195..e67135708d 100644 --- a/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequences__checks.go +++ b/gen/postgresql/datapostgresqlsequences/DataPostgresqlSequences__checks.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/terraform-cdk-go/cdktf" ) -func (d *jsiiProxy_DataPostgresqlSequences) validateAddOverrideParameters(path *string, value interface{}) error { +func (d *jsiiProxy_DataPostgresqlSequences) validateAddOverrideParameters(path *string, value any) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } @@ -127,7 +127,7 @@ func validateDataPostgresqlSequences_GenerateConfigForImportParameters(scope con return nil } -func validateDataPostgresqlSequences_IsConstructParameters(x interface{}) error { +func validateDataPostgresqlSequences_IsConstructParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -135,7 +135,7 @@ func validateDataPostgresqlSequences_IsConstructParameters(x interface{}) error return nil } -func validateDataPostgresqlSequences_IsTerraformDataSourceParameters(x interface{}) error { +func validateDataPostgresqlSequences_IsTerraformDataSourceParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -143,7 +143,7 @@ func validateDataPostgresqlSequences_IsTerraformDataSourceParameters(x interface return nil } -func validateDataPostgresqlSequences_IsTerraformElementParameters(x interface{}) error { +func validateDataPostgresqlSequences_IsTerraformElementParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -151,7 +151,7 @@ func validateDataPostgresqlSequences_IsTerraformElementParameters(x interface{}) return nil } -func (j *jsiiProxy_DataPostgresqlSequences) validateSetCountParameters(val interface{}) error { +func (j *jsiiProxy_DataPostgresqlSequences) validateSetCountParameters(val any) error { switch val.(type) { case *float64: // ok @@ -290,4 +290,3 @@ func validateNewDataPostgresqlSequencesParameters(scope constructs.Construct, id return nil } - diff --git a/gen/postgresql/datapostgresqlsequences/main.go b/gen/postgresql/datapostgresqlsequences/main.go index 0a356b8b02..fd091443f1 100644 --- a/gen/postgresql/datapostgresqlsequences/main.go +++ b/gen/postgresql/datapostgresqlsequences/main.go @@ -9,7 +9,7 @@ import ( func init() { _jsii_.RegisterClass( "@cdktf/provider-postgresql.dataPostgresqlSequences.DataPostgresqlSequences", - reflect.TypeOf((*DataPostgresqlSequences)(nil)).Elem(), + reflect.TypeFor[DataPostgresqlSequences](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "addOverride", GoMethod: "AddOverride"}, _jsii_.MemberProperty{JsiiProperty: "cdktfStack", GoGetter: "CdktfStack"}, @@ -66,7 +66,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "toString", GoMethod: "ToString"}, _jsii_.MemberMethod{JsiiMethod: "toTerraform", GoMethod: "ToTerraform"}, }, - func() interface{} { + func() any { j := jsiiProxy_DataPostgresqlSequences{} _jsii_.InitJsiiProxy(&j.Type__cdktfTerraformDataSource) return &j @@ -74,15 +74,15 @@ func init() { ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.dataPostgresqlSequences.DataPostgresqlSequencesConfig", - reflect.TypeOf((*DataPostgresqlSequencesConfig)(nil)).Elem(), + reflect.TypeFor[DataPostgresqlSequencesConfig](), ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.dataPostgresqlSequences.DataPostgresqlSequencesSequences", - reflect.TypeOf((*DataPostgresqlSequencesSequences)(nil)).Elem(), + reflect.TypeFor[DataPostgresqlSequencesSequences](), ) _jsii_.RegisterClass( "@cdktf/provider-postgresql.dataPostgresqlSequences.DataPostgresqlSequencesSequencesList", - reflect.TypeOf((*DataPostgresqlSequencesSequencesList)(nil)).Elem(), + reflect.TypeFor[DataPostgresqlSequencesSequencesList](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "allWithMapKey", GoMethod: "AllWithMapKey"}, _jsii_.MemberMethod{JsiiMethod: "computeFqn", GoMethod: "ComputeFqn"}, @@ -95,7 +95,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "toString", GoMethod: "ToString"}, _jsii_.MemberProperty{JsiiProperty: "wrapsSet", GoGetter: "WrapsSet"}, }, - func() interface{} { + func() any { j := jsiiProxy_DataPostgresqlSequencesSequencesList{} _jsii_.InitJsiiProxy(&j.Type__cdktfComplexList) return &j @@ -103,7 +103,7 @@ func init() { ) _jsii_.RegisterClass( "@cdktf/provider-postgresql.dataPostgresqlSequences.DataPostgresqlSequencesSequencesOutputReference", - reflect.TypeOf((*DataPostgresqlSequencesSequencesOutputReference)(nil)).Elem(), + reflect.TypeFor[DataPostgresqlSequencesSequencesOutputReference](), []_jsii_.Member{ _jsii_.MemberProperty{JsiiProperty: "complexObjectIndex", GoGetter: "ComplexObjectIndex"}, _jsii_.MemberProperty{JsiiProperty: "complexObjectIsFromSet", GoGetter: "ComplexObjectIsFromSet"}, @@ -130,7 +130,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "terraformResource", GoGetter: "TerraformResource"}, _jsii_.MemberMethod{JsiiMethod: "toString", GoMethod: "ToString"}, }, - func() interface{} { + func() any { j := jsiiProxy_DataPostgresqlSequencesSequencesOutputReference{} _jsii_.InitJsiiProxy(&j.Type__cdktfComplexObject) return &j diff --git a/gen/postgresql/datapostgresqltables/DataPostgresqlTables.go b/gen/postgresql/datapostgresqltables/DataPostgresqlTables.go index 2796f45987..f606f6e64c 100644 --- a/gen/postgresql/datapostgresqltables/DataPostgresqlTables.go +++ b/gen/postgresql/datapostgresqltables/DataPostgresqlTables.go @@ -15,11 +15,11 @@ type DataPostgresqlTables interface { // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. - ConstructNodeMetadata() *map[string]interface{} + ConstructNodeMetadata() *map[string]any // Experimental. - Count() interface{} + Count() any // Experimental. - SetCount(val interface{}) + SetCount(val any) Database() *string SetDatabase(val *string) DatabaseInput() *string @@ -58,7 +58,7 @@ type DataPostgresqlTables interface { // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. - RawOverrides() interface{} + RawOverrides() any RegexPattern() *string SetRegexPattern(val *string) RegexPatternInput() *string @@ -72,13 +72,13 @@ type DataPostgresqlTables interface { // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. - TerraformMetaArguments() *map[string]interface{} + TerraformMetaArguments() *map[string]any // Experimental. TerraformResourceType() *string // Experimental. - AddOverride(path *string, value interface{}) + AddOverride(path *string, value any) // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -110,18 +110,18 @@ type DataPostgresqlTables interface { ResetRegexPattern() ResetSchemas() ResetTableTypes() - SynthesizeAttributes() *map[string]interface{} - SynthesizeHclAttributes() *map[string]interface{} + SynthesizeAttributes() *map[string]any + SynthesizeHclAttributes() *map[string]any // Adds this resource to the terraform JSON output. // Experimental. - ToHclTerraform() interface{} + ToHclTerraform() any // Experimental. - ToMetadata() interface{} + ToMetadata() any // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. - ToTerraform() interface{} + ToTerraform() any } // The jsii proxy struct for DataPostgresqlTables @@ -139,8 +139,8 @@ func (j *jsiiProxy_DataPostgresqlTables) CdktfStack() cdktf.TerraformStack { return returns } -func (j *jsiiProxy_DataPostgresqlTables) ConstructNodeMetadata() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_DataPostgresqlTables) ConstructNodeMetadata() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "constructNodeMetadata", @@ -149,8 +149,8 @@ func (j *jsiiProxy_DataPostgresqlTables) ConstructNodeMetadata() *map[string]int return returns } -func (j *jsiiProxy_DataPostgresqlTables) Count() interface{} { - var returns interface{} +func (j *jsiiProxy_DataPostgresqlTables) Count() any { + var returns any _jsii_.Get( j, "count", @@ -329,8 +329,8 @@ func (j *jsiiProxy_DataPostgresqlTables) Provider() cdktf.TerraformProvider { return returns } -func (j *jsiiProxy_DataPostgresqlTables) RawOverrides() interface{} { - var returns interface{} +func (j *jsiiProxy_DataPostgresqlTables) RawOverrides() any { + var returns any _jsii_.Get( j, "rawOverrides", @@ -419,8 +419,8 @@ func (j *jsiiProxy_DataPostgresqlTables) TerraformGeneratorMetadata() *cdktf.Ter return returns } -func (j *jsiiProxy_DataPostgresqlTables) TerraformMetaArguments() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_DataPostgresqlTables) TerraformMetaArguments() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "terraformMetaArguments", @@ -439,7 +439,6 @@ func (j *jsiiProxy_DataPostgresqlTables) TerraformResourceType() *string { return returns } - // Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/data-sources/tables postgresql_tables} Data Source. func NewDataPostgresqlTables(scope constructs.Construct, id *string, config *DataPostgresqlTablesConfig) DataPostgresqlTables { _init_.Initialize() @@ -451,7 +450,7 @@ func NewDataPostgresqlTables(scope constructs.Construct, id *string, config *Dat _jsii_.Create( "@cdktf/provider-postgresql.dataPostgresqlTables.DataPostgresqlTables", - []interface{}{scope, id, config}, + []any{scope, id, config}, &j, ) @@ -464,12 +463,12 @@ func NewDataPostgresqlTables_Override(d DataPostgresqlTables, scope constructs.C _jsii_.Create( "@cdktf/provider-postgresql.dataPostgresqlTables.DataPostgresqlTables", - []interface{}{scope, id, config}, + []any{scope, id, config}, d, ) } -func (j *jsiiProxy_DataPostgresqlTables)SetCount(val interface{}) { +func (j *jsiiProxy_DataPostgresqlTables) SetCount(val any) { if err := j.validateSetCountParameters(val); err != nil { panic(err) } @@ -480,7 +479,7 @@ func (j *jsiiProxy_DataPostgresqlTables)SetCount(val interface{}) { ) } -func (j *jsiiProxy_DataPostgresqlTables)SetDatabase(val *string) { +func (j *jsiiProxy_DataPostgresqlTables) SetDatabase(val *string) { if err := j.validateSetDatabaseParameters(val); err != nil { panic(err) } @@ -491,7 +490,7 @@ func (j *jsiiProxy_DataPostgresqlTables)SetDatabase(val *string) { ) } -func (j *jsiiProxy_DataPostgresqlTables)SetDependsOn(val *[]*string) { +func (j *jsiiProxy_DataPostgresqlTables) SetDependsOn(val *[]*string) { _jsii_.Set( j, "dependsOn", @@ -499,7 +498,7 @@ func (j *jsiiProxy_DataPostgresqlTables)SetDependsOn(val *[]*string) { ) } -func (j *jsiiProxy_DataPostgresqlTables)SetForEach(val cdktf.ITerraformIterator) { +func (j *jsiiProxy_DataPostgresqlTables) SetForEach(val cdktf.ITerraformIterator) { _jsii_.Set( j, "forEach", @@ -507,7 +506,7 @@ func (j *jsiiProxy_DataPostgresqlTables)SetForEach(val cdktf.ITerraformIterator) ) } -func (j *jsiiProxy_DataPostgresqlTables)SetId(val *string) { +func (j *jsiiProxy_DataPostgresqlTables) SetId(val *string) { if err := j.validateSetIdParameters(val); err != nil { panic(err) } @@ -518,7 +517,7 @@ func (j *jsiiProxy_DataPostgresqlTables)SetId(val *string) { ) } -func (j *jsiiProxy_DataPostgresqlTables)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { +func (j *jsiiProxy_DataPostgresqlTables) SetLifecycle(val *cdktf.TerraformResourceLifecycle) { if err := j.validateSetLifecycleParameters(val); err != nil { panic(err) } @@ -529,7 +528,7 @@ func (j *jsiiProxy_DataPostgresqlTables)SetLifecycle(val *cdktf.TerraformResourc ) } -func (j *jsiiProxy_DataPostgresqlTables)SetLikeAllPatterns(val *[]*string) { +func (j *jsiiProxy_DataPostgresqlTables) SetLikeAllPatterns(val *[]*string) { if err := j.validateSetLikeAllPatternsParameters(val); err != nil { panic(err) } @@ -540,7 +539,7 @@ func (j *jsiiProxy_DataPostgresqlTables)SetLikeAllPatterns(val *[]*string) { ) } -func (j *jsiiProxy_DataPostgresqlTables)SetLikeAnyPatterns(val *[]*string) { +func (j *jsiiProxy_DataPostgresqlTables) SetLikeAnyPatterns(val *[]*string) { if err := j.validateSetLikeAnyPatternsParameters(val); err != nil { panic(err) } @@ -551,7 +550,7 @@ func (j *jsiiProxy_DataPostgresqlTables)SetLikeAnyPatterns(val *[]*string) { ) } -func (j *jsiiProxy_DataPostgresqlTables)SetNotLikeAllPatterns(val *[]*string) { +func (j *jsiiProxy_DataPostgresqlTables) SetNotLikeAllPatterns(val *[]*string) { if err := j.validateSetNotLikeAllPatternsParameters(val); err != nil { panic(err) } @@ -562,7 +561,7 @@ func (j *jsiiProxy_DataPostgresqlTables)SetNotLikeAllPatterns(val *[]*string) { ) } -func (j *jsiiProxy_DataPostgresqlTables)SetProvider(val cdktf.TerraformProvider) { +func (j *jsiiProxy_DataPostgresqlTables) SetProvider(val cdktf.TerraformProvider) { _jsii_.Set( j, "provider", @@ -570,7 +569,7 @@ func (j *jsiiProxy_DataPostgresqlTables)SetProvider(val cdktf.TerraformProvider) ) } -func (j *jsiiProxy_DataPostgresqlTables)SetRegexPattern(val *string) { +func (j *jsiiProxy_DataPostgresqlTables) SetRegexPattern(val *string) { if err := j.validateSetRegexPatternParameters(val); err != nil { panic(err) } @@ -581,7 +580,7 @@ func (j *jsiiProxy_DataPostgresqlTables)SetRegexPattern(val *string) { ) } -func (j *jsiiProxy_DataPostgresqlTables)SetSchemas(val *[]*string) { +func (j *jsiiProxy_DataPostgresqlTables) SetSchemas(val *[]*string) { if err := j.validateSetSchemasParameters(val); err != nil { panic(err) } @@ -592,7 +591,7 @@ func (j *jsiiProxy_DataPostgresqlTables)SetSchemas(val *[]*string) { ) } -func (j *jsiiProxy_DataPostgresqlTables)SetTableTypes(val *[]*string) { +func (j *jsiiProxy_DataPostgresqlTables) SetTableTypes(val *[]*string) { if err := j.validateSetTableTypesParameters(val); err != nil { panic(err) } @@ -615,7 +614,7 @@ func DataPostgresqlTables_GenerateConfigForImport(scope constructs.Construct, im _jsii_.StaticInvoke( "@cdktf/provider-postgresql.dataPostgresqlTables.DataPostgresqlTables", "generateConfigForImport", - []interface{}{scope, importToId, importFromId, provider}, + []any{scope, importToId, importFromId, provider}, &returns, ) @@ -639,7 +638,7 @@ func DataPostgresqlTables_GenerateConfigForImport(scope constructs.Construct, im // this type-testing method instead. // // Returns: true if `x` is an object created from a class which extends `Construct`. -func DataPostgresqlTables_IsConstruct(x interface{}) *bool { +func DataPostgresqlTables_IsConstruct(x any) *bool { _init_.Initialize() if err := validateDataPostgresqlTables_IsConstructParameters(x); err != nil { @@ -650,7 +649,7 @@ func DataPostgresqlTables_IsConstruct(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.dataPostgresqlTables.DataPostgresqlTables", "isConstruct", - []interface{}{x}, + []any{x}, &returns, ) @@ -658,7 +657,7 @@ func DataPostgresqlTables_IsConstruct(x interface{}) *bool { } // Experimental. -func DataPostgresqlTables_IsTerraformDataSource(x interface{}) *bool { +func DataPostgresqlTables_IsTerraformDataSource(x any) *bool { _init_.Initialize() if err := validateDataPostgresqlTables_IsTerraformDataSourceParameters(x); err != nil { @@ -669,7 +668,7 @@ func DataPostgresqlTables_IsTerraformDataSource(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.dataPostgresqlTables.DataPostgresqlTables", "isTerraformDataSource", - []interface{}{x}, + []any{x}, &returns, ) @@ -677,7 +676,7 @@ func DataPostgresqlTables_IsTerraformDataSource(x interface{}) *bool { } // Experimental. -func DataPostgresqlTables_IsTerraformElement(x interface{}) *bool { +func DataPostgresqlTables_IsTerraformElement(x any) *bool { _init_.Initialize() if err := validateDataPostgresqlTables_IsTerraformElementParameters(x); err != nil { @@ -688,7 +687,7 @@ func DataPostgresqlTables_IsTerraformElement(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.dataPostgresqlTables.DataPostgresqlTables", "isTerraformElement", - []interface{}{x}, + []any{x}, &returns, ) @@ -706,27 +705,27 @@ func DataPostgresqlTables_TfResourceType() *string { return returns } -func (d *jsiiProxy_DataPostgresqlTables) AddOverride(path *string, value interface{}) { +func (d *jsiiProxy_DataPostgresqlTables) AddOverride(path *string, value any) { if err := d.validateAddOverrideParameters(path, value); err != nil { panic(err) } _jsii_.InvokeVoid( d, "addOverride", - []interface{}{path, value}, + []any{path, value}, ) } -func (d *jsiiProxy_DataPostgresqlTables) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (d *jsiiProxy_DataPostgresqlTables) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := d.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( d, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -742,7 +741,7 @@ func (d *jsiiProxy_DataPostgresqlTables) GetBooleanAttribute(terraformAttribute _jsii_.Invoke( d, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -758,7 +757,7 @@ func (d *jsiiProxy_DataPostgresqlTables) GetBooleanMapAttribute(terraformAttribu _jsii_.Invoke( d, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -774,7 +773,7 @@ func (d *jsiiProxy_DataPostgresqlTables) GetListAttribute(terraformAttribute *st _jsii_.Invoke( d, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -790,7 +789,7 @@ func (d *jsiiProxy_DataPostgresqlTables) GetNumberAttribute(terraformAttribute * _jsii_.Invoke( d, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -806,7 +805,7 @@ func (d *jsiiProxy_DataPostgresqlTables) GetNumberListAttribute(terraformAttribu _jsii_.Invoke( d, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -822,7 +821,7 @@ func (d *jsiiProxy_DataPostgresqlTables) GetNumberMapAttribute(terraformAttribut _jsii_.Invoke( d, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -838,7 +837,7 @@ func (d *jsiiProxy_DataPostgresqlTables) GetStringAttribute(terraformAttribute * _jsii_.Invoke( d, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -854,7 +853,7 @@ func (d *jsiiProxy_DataPostgresqlTables) GetStringMapAttribute(terraformAttribut _jsii_.Invoke( d, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -870,7 +869,7 @@ func (d *jsiiProxy_DataPostgresqlTables) InterpolationForAttribute(terraformAttr _jsii_.Invoke( d, "interpolationForAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -884,7 +883,7 @@ func (d *jsiiProxy_DataPostgresqlTables) OverrideLogicalId(newLogicalId *string) _jsii_.InvokeVoid( d, "overrideLogicalId", - []interface{}{newLogicalId}, + []any{newLogicalId}, ) } @@ -952,8 +951,8 @@ func (d *jsiiProxy_DataPostgresqlTables) ResetTableTypes() { ) } -func (d *jsiiProxy_DataPostgresqlTables) SynthesizeAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (d *jsiiProxy_DataPostgresqlTables) SynthesizeAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( d, @@ -965,8 +964,8 @@ func (d *jsiiProxy_DataPostgresqlTables) SynthesizeAttributes() *map[string]inte return returns } -func (d *jsiiProxy_DataPostgresqlTables) SynthesizeHclAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (d *jsiiProxy_DataPostgresqlTables) SynthesizeHclAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( d, @@ -978,8 +977,8 @@ func (d *jsiiProxy_DataPostgresqlTables) SynthesizeHclAttributes() *map[string]i return returns } -func (d *jsiiProxy_DataPostgresqlTables) ToHclTerraform() interface{} { - var returns interface{} +func (d *jsiiProxy_DataPostgresqlTables) ToHclTerraform() any { + var returns any _jsii_.Invoke( d, @@ -991,8 +990,8 @@ func (d *jsiiProxy_DataPostgresqlTables) ToHclTerraform() interface{} { return returns } -func (d *jsiiProxy_DataPostgresqlTables) ToMetadata() interface{} { - var returns interface{} +func (d *jsiiProxy_DataPostgresqlTables) ToMetadata() any { + var returns any _jsii_.Invoke( d, @@ -1017,8 +1016,8 @@ func (d *jsiiProxy_DataPostgresqlTables) ToString() *string { return returns } -func (d *jsiiProxy_DataPostgresqlTables) ToTerraform() interface{} { - var returns interface{} +func (d *jsiiProxy_DataPostgresqlTables) ToTerraform() any { + var returns any _jsii_.Invoke( d, @@ -1029,4 +1028,3 @@ func (d *jsiiProxy_DataPostgresqlTables) ToTerraform() interface{} { return returns } - diff --git a/gen/postgresql/datapostgresqltables/DataPostgresqlTablesConfig.go b/gen/postgresql/datapostgresqltables/DataPostgresqlTablesConfig.go index bd47c6e1c4..445485cc8b 100644 --- a/gen/postgresql/datapostgresqltables/DataPostgresqlTablesConfig.go +++ b/gen/postgresql/datapostgresqltables/DataPostgresqlTablesConfig.go @@ -6,9 +6,9 @@ import ( type DataPostgresqlTablesConfig struct { // Experimental. - Connection interface{} `field:"optional" json:"connection" yaml:"connection"` + Connection any `field:"optional" json:"connection" yaml:"connection"` // Experimental. - Count interface{} `field:"optional" json:"count" yaml:"count"` + Count any `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. @@ -18,7 +18,7 @@ type DataPostgresqlTablesConfig struct { // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. - Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` + Provisioners *[]any `field:"optional" json:"provisioners" yaml:"provisioners"` // The PostgreSQL database which will be queried for table names. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/data-sources/tables#database DataPostgresqlTables#database} @@ -55,4 +55,3 @@ type DataPostgresqlTablesConfig struct { // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/data-sources/tables#table_types DataPostgresqlTables#table_types} TableTypes *[]*string `field:"optional" json:"tableTypes" yaml:"tableTypes"` } - diff --git a/gen/postgresql/datapostgresqltables/DataPostgresqlTablesTablesList.go b/gen/postgresql/datapostgresqltables/DataPostgresqlTablesTablesList.go index 2b06a1546c..0abcf25e3c 100644 --- a/gen/postgresql/datapostgresqltables/DataPostgresqlTablesTablesList.go +++ b/gen/postgresql/datapostgresqltables/DataPostgresqlTablesTablesList.go @@ -36,7 +36,7 @@ type DataPostgresqlTablesTablesList interface { Get(index *float64) DataPostgresqlTablesTablesOutputReference // Produce the Token's value at resolution time. // Experimental. - Resolve(_context cdktf.IResolveContext) interface{} + Resolve(_context cdktf.IResolveContext) any // Return a string representation of this resolvable object. // // Returns a reversible string representation. @@ -99,7 +99,6 @@ func (j *jsiiProxy_DataPostgresqlTablesTablesList) WrapsSet() *bool { return returns } - func NewDataPostgresqlTablesTablesList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) DataPostgresqlTablesTablesList { _init_.Initialize() @@ -110,7 +109,7 @@ func NewDataPostgresqlTablesTablesList(terraformResource cdktf.IInterpolatingPar _jsii_.Create( "@cdktf/provider-postgresql.dataPostgresqlTables.DataPostgresqlTablesTablesList", - []interface{}{terraformResource, terraformAttribute, wrapsSet}, + []any{terraformResource, terraformAttribute, wrapsSet}, &j, ) @@ -122,12 +121,12 @@ func NewDataPostgresqlTablesTablesList_Override(d DataPostgresqlTablesTablesList _jsii_.Create( "@cdktf/provider-postgresql.dataPostgresqlTables.DataPostgresqlTablesTablesList", - []interface{}{terraformResource, terraformAttribute, wrapsSet}, + []any{terraformResource, terraformAttribute, wrapsSet}, d, ) } -func (j *jsiiProxy_DataPostgresqlTablesTablesList)SetTerraformAttribute(val *string) { +func (j *jsiiProxy_DataPostgresqlTablesTablesList) SetTerraformAttribute(val *string) { if err := j.validateSetTerraformAttributeParameters(val); err != nil { panic(err) } @@ -138,7 +137,7 @@ func (j *jsiiProxy_DataPostgresqlTablesTablesList)SetTerraformAttribute(val *str ) } -func (j *jsiiProxy_DataPostgresqlTablesTablesList)SetTerraformResource(val cdktf.IInterpolatingParent) { +func (j *jsiiProxy_DataPostgresqlTablesTablesList) SetTerraformResource(val cdktf.IInterpolatingParent) { if err := j.validateSetTerraformResourceParameters(val); err != nil { panic(err) } @@ -149,7 +148,7 @@ func (j *jsiiProxy_DataPostgresqlTablesTablesList)SetTerraformResource(val cdktf ) } -func (j *jsiiProxy_DataPostgresqlTablesTablesList)SetWrapsSet(val *bool) { +func (j *jsiiProxy_DataPostgresqlTablesTablesList) SetWrapsSet(val *bool) { if err := j.validateSetWrapsSetParameters(val); err != nil { panic(err) } @@ -169,7 +168,7 @@ func (d *jsiiProxy_DataPostgresqlTablesTablesList) AllWithMapKey(mapKeyAttribute _jsii_.Invoke( d, "allWithMapKey", - []interface{}{mapKeyAttributeName}, + []any{mapKeyAttributeName}, &returns, ) @@ -198,23 +197,23 @@ func (d *jsiiProxy_DataPostgresqlTablesTablesList) Get(index *float64) DataPostg _jsii_.Invoke( d, "get", - []interface{}{index}, + []any{index}, &returns, ) return returns } -func (d *jsiiProxy_DataPostgresqlTablesTablesList) Resolve(_context cdktf.IResolveContext) interface{} { +func (d *jsiiProxy_DataPostgresqlTablesTablesList) Resolve(_context cdktf.IResolveContext) any { if err := d.validateResolveParameters(_context); err != nil { panic(err) } - var returns interface{} + var returns any _jsii_.Invoke( d, "resolve", - []interface{}{_context}, + []any{_context}, &returns, ) @@ -233,4 +232,3 @@ func (d *jsiiProxy_DataPostgresqlTablesTablesList) ToString() *string { return returns } - diff --git a/gen/postgresql/datapostgresqltables/DataPostgresqlTablesTablesOutputReference.go b/gen/postgresql/datapostgresqltables/DataPostgresqlTablesTablesOutputReference.go index b88b9e866d..6e10184a4a 100644 --- a/gen/postgresql/datapostgresqltables/DataPostgresqlTablesTablesOutputReference.go +++ b/gen/postgresql/datapostgresqltables/DataPostgresqlTablesTablesOutputReference.go @@ -12,9 +12,9 @@ type DataPostgresqlTablesTablesOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. - ComplexObjectIndex() interface{} + ComplexObjectIndex() any // Experimental. - SetComplexObjectIndex(val interface{}) + SetComplexObjectIndex(val any) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool @@ -43,7 +43,7 @@ type DataPostgresqlTablesTablesOutputReference interface { // Experimental. ComputeFqn() *string // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -66,7 +66,7 @@ type DataPostgresqlTablesTablesOutputReference interface { InterpolationForAttribute(property *string) cdktf.IResolvable // Produce the Token's value at resolution time. // Experimental. - Resolve(_context cdktf.IResolveContext) interface{} + Resolve(_context cdktf.IResolveContext) any // Return a string representation of this resolvable object. // // Returns a reversible string representation. @@ -79,8 +79,8 @@ type jsiiProxy_DataPostgresqlTablesTablesOutputReference struct { internal.Type__cdktfComplexObject } -func (j *jsiiProxy_DataPostgresqlTablesTablesOutputReference) ComplexObjectIndex() interface{} { - var returns interface{} +func (j *jsiiProxy_DataPostgresqlTablesTablesOutputReference) ComplexObjectIndex() any { + var returns any _jsii_.Get( j, "complexObjectIndex", @@ -179,7 +179,6 @@ func (j *jsiiProxy_DataPostgresqlTablesTablesOutputReference) TerraformResource( return returns } - func NewDataPostgresqlTablesTablesOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) DataPostgresqlTablesTablesOutputReference { _init_.Initialize() @@ -190,7 +189,7 @@ func NewDataPostgresqlTablesTablesOutputReference(terraformResource cdktf.IInter _jsii_.Create( "@cdktf/provider-postgresql.dataPostgresqlTables.DataPostgresqlTablesTablesOutputReference", - []interface{}{terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet}, + []any{terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet}, &j, ) @@ -202,12 +201,12 @@ func NewDataPostgresqlTablesTablesOutputReference_Override(d DataPostgresqlTable _jsii_.Create( "@cdktf/provider-postgresql.dataPostgresqlTables.DataPostgresqlTablesTablesOutputReference", - []interface{}{terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet}, + []any{terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet}, d, ) } -func (j *jsiiProxy_DataPostgresqlTablesTablesOutputReference)SetComplexObjectIndex(val interface{}) { +func (j *jsiiProxy_DataPostgresqlTablesTablesOutputReference) SetComplexObjectIndex(val any) { if err := j.validateSetComplexObjectIndexParameters(val); err != nil { panic(err) } @@ -218,7 +217,7 @@ func (j *jsiiProxy_DataPostgresqlTablesTablesOutputReference)SetComplexObjectInd ) } -func (j *jsiiProxy_DataPostgresqlTablesTablesOutputReference)SetComplexObjectIsFromSet(val *bool) { +func (j *jsiiProxy_DataPostgresqlTablesTablesOutputReference) SetComplexObjectIsFromSet(val *bool) { if err := j.validateSetComplexObjectIsFromSetParameters(val); err != nil { panic(err) } @@ -229,7 +228,7 @@ func (j *jsiiProxy_DataPostgresqlTablesTablesOutputReference)SetComplexObjectIsF ) } -func (j *jsiiProxy_DataPostgresqlTablesTablesOutputReference)SetInternalValue(val *DataPostgresqlTablesTables) { +func (j *jsiiProxy_DataPostgresqlTablesTablesOutputReference) SetInternalValue(val *DataPostgresqlTablesTables) { if err := j.validateSetInternalValueParameters(val); err != nil { panic(err) } @@ -240,7 +239,7 @@ func (j *jsiiProxy_DataPostgresqlTablesTablesOutputReference)SetInternalValue(va ) } -func (j *jsiiProxy_DataPostgresqlTablesTablesOutputReference)SetTerraformAttribute(val *string) { +func (j *jsiiProxy_DataPostgresqlTablesTablesOutputReference) SetTerraformAttribute(val *string) { if err := j.validateSetTerraformAttributeParameters(val); err != nil { panic(err) } @@ -251,7 +250,7 @@ func (j *jsiiProxy_DataPostgresqlTablesTablesOutputReference)SetTerraformAttribu ) } -func (j *jsiiProxy_DataPostgresqlTablesTablesOutputReference)SetTerraformResource(val cdktf.IInterpolatingParent) { +func (j *jsiiProxy_DataPostgresqlTablesTablesOutputReference) SetTerraformResource(val cdktf.IInterpolatingParent) { if err := j.validateSetTerraformResourceParameters(val); err != nil { panic(err) } @@ -275,16 +274,16 @@ func (d *jsiiProxy_DataPostgresqlTablesTablesOutputReference) ComputeFqn() *stri return returns } -func (d *jsiiProxy_DataPostgresqlTablesTablesOutputReference) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (d *jsiiProxy_DataPostgresqlTablesTablesOutputReference) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := d.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( d, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -300,7 +299,7 @@ func (d *jsiiProxy_DataPostgresqlTablesTablesOutputReference) GetBooleanAttribut _jsii_.Invoke( d, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -316,7 +315,7 @@ func (d *jsiiProxy_DataPostgresqlTablesTablesOutputReference) GetBooleanMapAttri _jsii_.Invoke( d, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -332,7 +331,7 @@ func (d *jsiiProxy_DataPostgresqlTablesTablesOutputReference) GetListAttribute(t _jsii_.Invoke( d, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -348,7 +347,7 @@ func (d *jsiiProxy_DataPostgresqlTablesTablesOutputReference) GetNumberAttribute _jsii_.Invoke( d, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -364,7 +363,7 @@ func (d *jsiiProxy_DataPostgresqlTablesTablesOutputReference) GetNumberListAttri _jsii_.Invoke( d, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -380,7 +379,7 @@ func (d *jsiiProxy_DataPostgresqlTablesTablesOutputReference) GetNumberMapAttrib _jsii_.Invoke( d, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -396,7 +395,7 @@ func (d *jsiiProxy_DataPostgresqlTablesTablesOutputReference) GetStringAttribute _jsii_.Invoke( d, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -412,7 +411,7 @@ func (d *jsiiProxy_DataPostgresqlTablesTablesOutputReference) GetStringMapAttrib _jsii_.Invoke( d, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -441,23 +440,23 @@ func (d *jsiiProxy_DataPostgresqlTablesTablesOutputReference) InterpolationForAt _jsii_.Invoke( d, "interpolationForAttribute", - []interface{}{property}, + []any{property}, &returns, ) return returns } -func (d *jsiiProxy_DataPostgresqlTablesTablesOutputReference) Resolve(_context cdktf.IResolveContext) interface{} { +func (d *jsiiProxy_DataPostgresqlTablesTablesOutputReference) Resolve(_context cdktf.IResolveContext) any { if err := d.validateResolveParameters(_context); err != nil { panic(err) } - var returns interface{} + var returns any _jsii_.Invoke( d, "resolve", - []interface{}{_context}, + []any{_context}, &returns, ) @@ -476,4 +475,3 @@ func (d *jsiiProxy_DataPostgresqlTablesTablesOutputReference) ToString() *string return returns } - diff --git a/gen/postgresql/datapostgresqltables/DataPostgresqlTablesTablesOutputReference__checks.go b/gen/postgresql/datapostgresqltables/DataPostgresqlTablesTablesOutputReference__checks.go index 494531abc8..0cdaa0dcb6 100644 --- a/gen/postgresql/datapostgresqltables/DataPostgresqlTablesTablesOutputReference__checks.go +++ b/gen/postgresql/datapostgresqltables/DataPostgresqlTablesTablesOutputReference__checks.go @@ -98,7 +98,7 @@ func (d *jsiiProxy_DataPostgresqlTablesTablesOutputReference) validateResolvePar return nil } -func (j *jsiiProxy_DataPostgresqlTablesTablesOutputReference) validateSetComplexObjectIndexParameters(val interface{}) error { +func (j *jsiiProxy_DataPostgresqlTablesTablesOutputReference) validateSetComplexObjectIndexParameters(val any) error { switch val.(type) { case *string: // ok @@ -206,4 +206,3 @@ func validateNewDataPostgresqlTablesTablesOutputReferenceParameters(terraformRes return nil } - diff --git a/gen/postgresql/datapostgresqltables/DataPostgresqlTables__checks.go b/gen/postgresql/datapostgresqltables/DataPostgresqlTables__checks.go index 92f918524e..d79540d606 100644 --- a/gen/postgresql/datapostgresqltables/DataPostgresqlTables__checks.go +++ b/gen/postgresql/datapostgresqltables/DataPostgresqlTables__checks.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/terraform-cdk-go/cdktf" ) -func (d *jsiiProxy_DataPostgresqlTables) validateAddOverrideParameters(path *string, value interface{}) error { +func (d *jsiiProxy_DataPostgresqlTables) validateAddOverrideParameters(path *string, value any) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } @@ -127,7 +127,7 @@ func validateDataPostgresqlTables_GenerateConfigForImportParameters(scope constr return nil } -func validateDataPostgresqlTables_IsConstructParameters(x interface{}) error { +func validateDataPostgresqlTables_IsConstructParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -135,7 +135,7 @@ func validateDataPostgresqlTables_IsConstructParameters(x interface{}) error { return nil } -func validateDataPostgresqlTables_IsTerraformDataSourceParameters(x interface{}) error { +func validateDataPostgresqlTables_IsTerraformDataSourceParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -143,7 +143,7 @@ func validateDataPostgresqlTables_IsTerraformDataSourceParameters(x interface{}) return nil } -func validateDataPostgresqlTables_IsTerraformElementParameters(x interface{}) error { +func validateDataPostgresqlTables_IsTerraformElementParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -151,7 +151,7 @@ func validateDataPostgresqlTables_IsTerraformElementParameters(x interface{}) er return nil } -func (j *jsiiProxy_DataPostgresqlTables) validateSetCountParameters(val interface{}) error { +func (j *jsiiProxy_DataPostgresqlTables) validateSetCountParameters(val any) error { switch val.(type) { case *float64: // ok @@ -298,4 +298,3 @@ func validateNewDataPostgresqlTablesParameters(scope constructs.Construct, id *s return nil } - diff --git a/gen/postgresql/datapostgresqltables/main.go b/gen/postgresql/datapostgresqltables/main.go index 37a2fa70f8..b8de22d531 100644 --- a/gen/postgresql/datapostgresqltables/main.go +++ b/gen/postgresql/datapostgresqltables/main.go @@ -9,7 +9,7 @@ import ( func init() { _jsii_.RegisterClass( "@cdktf/provider-postgresql.dataPostgresqlTables.DataPostgresqlTables", - reflect.TypeOf((*DataPostgresqlTables)(nil)).Elem(), + reflect.TypeFor[DataPostgresqlTables](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "addOverride", GoMethod: "AddOverride"}, _jsii_.MemberProperty{JsiiProperty: "cdktfStack", GoGetter: "CdktfStack"}, @@ -69,7 +69,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "toString", GoMethod: "ToString"}, _jsii_.MemberMethod{JsiiMethod: "toTerraform", GoMethod: "ToTerraform"}, }, - func() interface{} { + func() any { j := jsiiProxy_DataPostgresqlTables{} _jsii_.InitJsiiProxy(&j.Type__cdktfTerraformDataSource) return &j @@ -77,15 +77,15 @@ func init() { ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.dataPostgresqlTables.DataPostgresqlTablesConfig", - reflect.TypeOf((*DataPostgresqlTablesConfig)(nil)).Elem(), + reflect.TypeFor[DataPostgresqlTablesConfig](), ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.dataPostgresqlTables.DataPostgresqlTablesTables", - reflect.TypeOf((*DataPostgresqlTablesTables)(nil)).Elem(), + reflect.TypeFor[DataPostgresqlTablesTables](), ) _jsii_.RegisterClass( "@cdktf/provider-postgresql.dataPostgresqlTables.DataPostgresqlTablesTablesList", - reflect.TypeOf((*DataPostgresqlTablesTablesList)(nil)).Elem(), + reflect.TypeFor[DataPostgresqlTablesTablesList](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "allWithMapKey", GoMethod: "AllWithMapKey"}, _jsii_.MemberMethod{JsiiMethod: "computeFqn", GoMethod: "ComputeFqn"}, @@ -98,7 +98,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "toString", GoMethod: "ToString"}, _jsii_.MemberProperty{JsiiProperty: "wrapsSet", GoGetter: "WrapsSet"}, }, - func() interface{} { + func() any { j := jsiiProxy_DataPostgresqlTablesTablesList{} _jsii_.InitJsiiProxy(&j.Type__cdktfComplexList) return &j @@ -106,7 +106,7 @@ func init() { ) _jsii_.RegisterClass( "@cdktf/provider-postgresql.dataPostgresqlTables.DataPostgresqlTablesTablesOutputReference", - reflect.TypeOf((*DataPostgresqlTablesTablesOutputReference)(nil)).Elem(), + reflect.TypeFor[DataPostgresqlTablesTablesOutputReference](), []_jsii_.Member{ _jsii_.MemberProperty{JsiiProperty: "complexObjectIndex", GoGetter: "ComplexObjectIndex"}, _jsii_.MemberProperty{JsiiProperty: "complexObjectIsFromSet", GoGetter: "ComplexObjectIsFromSet"}, @@ -133,7 +133,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "terraformResource", GoGetter: "TerraformResource"}, _jsii_.MemberMethod{JsiiMethod: "toString", GoMethod: "ToString"}, }, - func() interface{} { + func() any { j := jsiiProxy_DataPostgresqlTablesTablesOutputReference{} _jsii_.InitJsiiProxy(&j.Type__cdktfComplexObject) return &j diff --git a/gen/postgresql/defaultprivileges/DefaultPrivileges.go b/gen/postgresql/defaultprivileges/DefaultPrivileges.go index fc0b9b7179..036d968c6b 100644 --- a/gen/postgresql/defaultprivileges/DefaultPrivileges.go +++ b/gen/postgresql/defaultprivileges/DefaultPrivileges.go @@ -15,15 +15,15 @@ type DefaultPrivileges interface { // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. - Connection() interface{} + Connection() any // Experimental. - SetConnection(val interface{}) + SetConnection(val any) // Experimental. - ConstructNodeMetadata() *map[string]interface{} + ConstructNodeMetadata() *map[string]any // Experimental. - Count() interface{} + Count() any // Experimental. - SetCount(val interface{}) + SetCount(val any) Database() *string SetDatabase(val *string) DatabaseInput() *string @@ -62,11 +62,11 @@ type DefaultPrivileges interface { // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. - Provisioners() *[]interface{} + Provisioners() *[]any // Experimental. - SetProvisioners(val *[]interface{}) + SetProvisioners(val *[]any) // Experimental. - RawOverrides() interface{} + RawOverrides() any Role() *string SetRole(val *string) RoleInput() *string @@ -76,19 +76,19 @@ type DefaultPrivileges interface { // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. - TerraformMetaArguments() *map[string]interface{} + TerraformMetaArguments() *map[string]any // Experimental. TerraformResourceType() *string - WithGrantOption() interface{} - SetWithGrantOption(val interface{}) - WithGrantOptionInput() interface{} + WithGrantOption() any + SetWithGrantOption(val any) + WithGrantOptionInput() any // Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. // Experimental. AddMoveTarget(moveTarget *string) // Experimental. - AddOverride(path *string, value interface{}) + AddOverride(path *string, value any) // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -106,7 +106,7 @@ type DefaultPrivileges interface { // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. - HasResourceMove() interface{} + HasResourceMove() any // Experimental. ImportFrom(id *string, provider cdktf.TerraformProvider) // Experimental. @@ -118,7 +118,7 @@ type DefaultPrivileges interface { MoveFromId(id *string) // Moves this resource to the target resource given by moveTarget. // Experimental. - MoveTo(moveTarget *string, index interface{}) + MoveTo(moveTarget *string, index any) // Moves this resource to the resource corresponding to "id". // Experimental. MoveToId(id *string) @@ -131,17 +131,17 @@ type DefaultPrivileges interface { ResetOverrideLogicalId() ResetSchema() ResetWithGrantOption() - SynthesizeAttributes() *map[string]interface{} - SynthesizeHclAttributes() *map[string]interface{} + SynthesizeAttributes() *map[string]any + SynthesizeHclAttributes() *map[string]any // Experimental. - ToHclTerraform() interface{} + ToHclTerraform() any // Experimental. - ToMetadata() interface{} + ToMetadata() any // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. - ToTerraform() interface{} + ToTerraform() any } // The jsii proxy struct for DefaultPrivileges @@ -159,8 +159,8 @@ func (j *jsiiProxy_DefaultPrivileges) CdktfStack() cdktf.TerraformStack { return returns } -func (j *jsiiProxy_DefaultPrivileges) Connection() interface{} { - var returns interface{} +func (j *jsiiProxy_DefaultPrivileges) Connection() any { + var returns any _jsii_.Get( j, "connection", @@ -169,8 +169,8 @@ func (j *jsiiProxy_DefaultPrivileges) Connection() interface{} { return returns } -func (j *jsiiProxy_DefaultPrivileges) ConstructNodeMetadata() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_DefaultPrivileges) ConstructNodeMetadata() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "constructNodeMetadata", @@ -179,8 +179,8 @@ func (j *jsiiProxy_DefaultPrivileges) ConstructNodeMetadata() *map[string]interf return returns } -func (j *jsiiProxy_DefaultPrivileges) Count() interface{} { - var returns interface{} +func (j *jsiiProxy_DefaultPrivileges) Count() any { + var returns any _jsii_.Get( j, "count", @@ -359,8 +359,8 @@ func (j *jsiiProxy_DefaultPrivileges) Provider() cdktf.TerraformProvider { return returns } -func (j *jsiiProxy_DefaultPrivileges) Provisioners() *[]interface{} { - var returns *[]interface{} +func (j *jsiiProxy_DefaultPrivileges) Provisioners() *[]any { + var returns *[]any _jsii_.Get( j, "provisioners", @@ -369,8 +369,8 @@ func (j *jsiiProxy_DefaultPrivileges) Provisioners() *[]interface{} { return returns } -func (j *jsiiProxy_DefaultPrivileges) RawOverrides() interface{} { - var returns interface{} +func (j *jsiiProxy_DefaultPrivileges) RawOverrides() any { + var returns any _jsii_.Get( j, "rawOverrides", @@ -429,8 +429,8 @@ func (j *jsiiProxy_DefaultPrivileges) TerraformGeneratorMetadata() *cdktf.Terraf return returns } -func (j *jsiiProxy_DefaultPrivileges) TerraformMetaArguments() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_DefaultPrivileges) TerraformMetaArguments() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "terraformMetaArguments", @@ -449,8 +449,8 @@ func (j *jsiiProxy_DefaultPrivileges) TerraformResourceType() *string { return returns } -func (j *jsiiProxy_DefaultPrivileges) WithGrantOption() interface{} { - var returns interface{} +func (j *jsiiProxy_DefaultPrivileges) WithGrantOption() any { + var returns any _jsii_.Get( j, "withGrantOption", @@ -459,8 +459,8 @@ func (j *jsiiProxy_DefaultPrivileges) WithGrantOption() interface{} { return returns } -func (j *jsiiProxy_DefaultPrivileges) WithGrantOptionInput() interface{} { - var returns interface{} +func (j *jsiiProxy_DefaultPrivileges) WithGrantOptionInput() any { + var returns any _jsii_.Get( j, "withGrantOptionInput", @@ -469,7 +469,6 @@ func (j *jsiiProxy_DefaultPrivileges) WithGrantOptionInput() interface{} { return returns } - // Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/default_privileges postgresql_default_privileges} Resource. func NewDefaultPrivileges(scope constructs.Construct, id *string, config *DefaultPrivilegesConfig) DefaultPrivileges { _init_.Initialize() @@ -481,7 +480,7 @@ func NewDefaultPrivileges(scope constructs.Construct, id *string, config *Defaul _jsii_.Create( "@cdktf/provider-postgresql.defaultPrivileges.DefaultPrivileges", - []interface{}{scope, id, config}, + []any{scope, id, config}, &j, ) @@ -494,12 +493,12 @@ func NewDefaultPrivileges_Override(d DefaultPrivileges, scope constructs.Constru _jsii_.Create( "@cdktf/provider-postgresql.defaultPrivileges.DefaultPrivileges", - []interface{}{scope, id, config}, + []any{scope, id, config}, d, ) } -func (j *jsiiProxy_DefaultPrivileges)SetConnection(val interface{}) { +func (j *jsiiProxy_DefaultPrivileges) SetConnection(val any) { if err := j.validateSetConnectionParameters(val); err != nil { panic(err) } @@ -510,7 +509,7 @@ func (j *jsiiProxy_DefaultPrivileges)SetConnection(val interface{}) { ) } -func (j *jsiiProxy_DefaultPrivileges)SetCount(val interface{}) { +func (j *jsiiProxy_DefaultPrivileges) SetCount(val any) { if err := j.validateSetCountParameters(val); err != nil { panic(err) } @@ -521,7 +520,7 @@ func (j *jsiiProxy_DefaultPrivileges)SetCount(val interface{}) { ) } -func (j *jsiiProxy_DefaultPrivileges)SetDatabase(val *string) { +func (j *jsiiProxy_DefaultPrivileges) SetDatabase(val *string) { if err := j.validateSetDatabaseParameters(val); err != nil { panic(err) } @@ -532,7 +531,7 @@ func (j *jsiiProxy_DefaultPrivileges)SetDatabase(val *string) { ) } -func (j *jsiiProxy_DefaultPrivileges)SetDependsOn(val *[]*string) { +func (j *jsiiProxy_DefaultPrivileges) SetDependsOn(val *[]*string) { _jsii_.Set( j, "dependsOn", @@ -540,7 +539,7 @@ func (j *jsiiProxy_DefaultPrivileges)SetDependsOn(val *[]*string) { ) } -func (j *jsiiProxy_DefaultPrivileges)SetForEach(val cdktf.ITerraformIterator) { +func (j *jsiiProxy_DefaultPrivileges) SetForEach(val cdktf.ITerraformIterator) { _jsii_.Set( j, "forEach", @@ -548,7 +547,7 @@ func (j *jsiiProxy_DefaultPrivileges)SetForEach(val cdktf.ITerraformIterator) { ) } -func (j *jsiiProxy_DefaultPrivileges)SetId(val *string) { +func (j *jsiiProxy_DefaultPrivileges) SetId(val *string) { if err := j.validateSetIdParameters(val); err != nil { panic(err) } @@ -559,7 +558,7 @@ func (j *jsiiProxy_DefaultPrivileges)SetId(val *string) { ) } -func (j *jsiiProxy_DefaultPrivileges)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { +func (j *jsiiProxy_DefaultPrivileges) SetLifecycle(val *cdktf.TerraformResourceLifecycle) { if err := j.validateSetLifecycleParameters(val); err != nil { panic(err) } @@ -570,7 +569,7 @@ func (j *jsiiProxy_DefaultPrivileges)SetLifecycle(val *cdktf.TerraformResourceLi ) } -func (j *jsiiProxy_DefaultPrivileges)SetObjectType(val *string) { +func (j *jsiiProxy_DefaultPrivileges) SetObjectType(val *string) { if err := j.validateSetObjectTypeParameters(val); err != nil { panic(err) } @@ -581,7 +580,7 @@ func (j *jsiiProxy_DefaultPrivileges)SetObjectType(val *string) { ) } -func (j *jsiiProxy_DefaultPrivileges)SetOwner(val *string) { +func (j *jsiiProxy_DefaultPrivileges) SetOwner(val *string) { if err := j.validateSetOwnerParameters(val); err != nil { panic(err) } @@ -592,7 +591,7 @@ func (j *jsiiProxy_DefaultPrivileges)SetOwner(val *string) { ) } -func (j *jsiiProxy_DefaultPrivileges)SetPrivileges(val *[]*string) { +func (j *jsiiProxy_DefaultPrivileges) SetPrivileges(val *[]*string) { if err := j.validateSetPrivilegesParameters(val); err != nil { panic(err) } @@ -603,7 +602,7 @@ func (j *jsiiProxy_DefaultPrivileges)SetPrivileges(val *[]*string) { ) } -func (j *jsiiProxy_DefaultPrivileges)SetProvider(val cdktf.TerraformProvider) { +func (j *jsiiProxy_DefaultPrivileges) SetProvider(val cdktf.TerraformProvider) { _jsii_.Set( j, "provider", @@ -611,7 +610,7 @@ func (j *jsiiProxy_DefaultPrivileges)SetProvider(val cdktf.TerraformProvider) { ) } -func (j *jsiiProxy_DefaultPrivileges)SetProvisioners(val *[]interface{}) { +func (j *jsiiProxy_DefaultPrivileges) SetProvisioners(val *[]any) { if err := j.validateSetProvisionersParameters(val); err != nil { panic(err) } @@ -622,7 +621,7 @@ func (j *jsiiProxy_DefaultPrivileges)SetProvisioners(val *[]interface{}) { ) } -func (j *jsiiProxy_DefaultPrivileges)SetRole(val *string) { +func (j *jsiiProxy_DefaultPrivileges) SetRole(val *string) { if err := j.validateSetRoleParameters(val); err != nil { panic(err) } @@ -633,7 +632,7 @@ func (j *jsiiProxy_DefaultPrivileges)SetRole(val *string) { ) } -func (j *jsiiProxy_DefaultPrivileges)SetSchema(val *string) { +func (j *jsiiProxy_DefaultPrivileges) SetSchema(val *string) { if err := j.validateSetSchemaParameters(val); err != nil { panic(err) } @@ -644,7 +643,7 @@ func (j *jsiiProxy_DefaultPrivileges)SetSchema(val *string) { ) } -func (j *jsiiProxy_DefaultPrivileges)SetWithGrantOption(val interface{}) { +func (j *jsiiProxy_DefaultPrivileges) SetWithGrantOption(val any) { if err := j.validateSetWithGrantOptionParameters(val); err != nil { panic(err) } @@ -667,7 +666,7 @@ func DefaultPrivileges_GenerateConfigForImport(scope constructs.Construct, impor _jsii_.StaticInvoke( "@cdktf/provider-postgresql.defaultPrivileges.DefaultPrivileges", "generateConfigForImport", - []interface{}{scope, importToId, importFromId, provider}, + []any{scope, importToId, importFromId, provider}, &returns, ) @@ -691,7 +690,7 @@ func DefaultPrivileges_GenerateConfigForImport(scope constructs.Construct, impor // this type-testing method instead. // // Returns: true if `x` is an object created from a class which extends `Construct`. -func DefaultPrivileges_IsConstruct(x interface{}) *bool { +func DefaultPrivileges_IsConstruct(x any) *bool { _init_.Initialize() if err := validateDefaultPrivileges_IsConstructParameters(x); err != nil { @@ -702,7 +701,7 @@ func DefaultPrivileges_IsConstruct(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.defaultPrivileges.DefaultPrivileges", "isConstruct", - []interface{}{x}, + []any{x}, &returns, ) @@ -710,7 +709,7 @@ func DefaultPrivileges_IsConstruct(x interface{}) *bool { } // Experimental. -func DefaultPrivileges_IsTerraformElement(x interface{}) *bool { +func DefaultPrivileges_IsTerraformElement(x any) *bool { _init_.Initialize() if err := validateDefaultPrivileges_IsTerraformElementParameters(x); err != nil { @@ -721,7 +720,7 @@ func DefaultPrivileges_IsTerraformElement(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.defaultPrivileges.DefaultPrivileges", "isTerraformElement", - []interface{}{x}, + []any{x}, &returns, ) @@ -729,7 +728,7 @@ func DefaultPrivileges_IsTerraformElement(x interface{}) *bool { } // Experimental. -func DefaultPrivileges_IsTerraformResource(x interface{}) *bool { +func DefaultPrivileges_IsTerraformResource(x any) *bool { _init_.Initialize() if err := validateDefaultPrivileges_IsTerraformResourceParameters(x); err != nil { @@ -740,7 +739,7 @@ func DefaultPrivileges_IsTerraformResource(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.defaultPrivileges.DefaultPrivileges", "isTerraformResource", - []interface{}{x}, + []any{x}, &returns, ) @@ -765,31 +764,31 @@ func (d *jsiiProxy_DefaultPrivileges) AddMoveTarget(moveTarget *string) { _jsii_.InvokeVoid( d, "addMoveTarget", - []interface{}{moveTarget}, + []any{moveTarget}, ) } -func (d *jsiiProxy_DefaultPrivileges) AddOverride(path *string, value interface{}) { +func (d *jsiiProxy_DefaultPrivileges) AddOverride(path *string, value any) { if err := d.validateAddOverrideParameters(path, value); err != nil { panic(err) } _jsii_.InvokeVoid( d, "addOverride", - []interface{}{path, value}, + []any{path, value}, ) } -func (d *jsiiProxy_DefaultPrivileges) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (d *jsiiProxy_DefaultPrivileges) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := d.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( d, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -805,7 +804,7 @@ func (d *jsiiProxy_DefaultPrivileges) GetBooleanAttribute(terraformAttribute *st _jsii_.Invoke( d, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -821,7 +820,7 @@ func (d *jsiiProxy_DefaultPrivileges) GetBooleanMapAttribute(terraformAttribute _jsii_.Invoke( d, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -837,7 +836,7 @@ func (d *jsiiProxy_DefaultPrivileges) GetListAttribute(terraformAttribute *strin _jsii_.Invoke( d, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -853,7 +852,7 @@ func (d *jsiiProxy_DefaultPrivileges) GetNumberAttribute(terraformAttribute *str _jsii_.Invoke( d, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -869,7 +868,7 @@ func (d *jsiiProxy_DefaultPrivileges) GetNumberListAttribute(terraformAttribute _jsii_.Invoke( d, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -885,7 +884,7 @@ func (d *jsiiProxy_DefaultPrivileges) GetNumberMapAttribute(terraformAttribute * _jsii_.Invoke( d, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -901,7 +900,7 @@ func (d *jsiiProxy_DefaultPrivileges) GetStringAttribute(terraformAttribute *str _jsii_.Invoke( d, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -917,15 +916,15 @@ func (d *jsiiProxy_DefaultPrivileges) GetStringMapAttribute(terraformAttribute * _jsii_.Invoke( d, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) return returns } -func (d *jsiiProxy_DefaultPrivileges) HasResourceMove() interface{} { - var returns interface{} +func (d *jsiiProxy_DefaultPrivileges) HasResourceMove() any { + var returns any _jsii_.Invoke( d, @@ -944,7 +943,7 @@ func (d *jsiiProxy_DefaultPrivileges) ImportFrom(id *string, provider cdktf.Terr _jsii_.InvokeVoid( d, "importFrom", - []interface{}{id, provider}, + []any{id, provider}, ) } @@ -957,7 +956,7 @@ func (d *jsiiProxy_DefaultPrivileges) InterpolationForAttribute(terraformAttribu _jsii_.Invoke( d, "interpolationForAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -971,18 +970,18 @@ func (d *jsiiProxy_DefaultPrivileges) MoveFromId(id *string) { _jsii_.InvokeVoid( d, "moveFromId", - []interface{}{id}, + []any{id}, ) } -func (d *jsiiProxy_DefaultPrivileges) MoveTo(moveTarget *string, index interface{}) { +func (d *jsiiProxy_DefaultPrivileges) MoveTo(moveTarget *string, index any) { if err := d.validateMoveToParameters(moveTarget, index); err != nil { panic(err) } _jsii_.InvokeVoid( d, "moveTo", - []interface{}{moveTarget, index}, + []any{moveTarget, index}, ) } @@ -993,7 +992,7 @@ func (d *jsiiProxy_DefaultPrivileges) MoveToId(id *string) { _jsii_.InvokeVoid( d, "moveToId", - []interface{}{id}, + []any{id}, ) } @@ -1004,7 +1003,7 @@ func (d *jsiiProxy_DefaultPrivileges) OverrideLogicalId(newLogicalId *string) { _jsii_.InvokeVoid( d, "overrideLogicalId", - []interface{}{newLogicalId}, + []any{newLogicalId}, ) } @@ -1040,8 +1039,8 @@ func (d *jsiiProxy_DefaultPrivileges) ResetWithGrantOption() { ) } -func (d *jsiiProxy_DefaultPrivileges) SynthesizeAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (d *jsiiProxy_DefaultPrivileges) SynthesizeAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( d, @@ -1053,8 +1052,8 @@ func (d *jsiiProxy_DefaultPrivileges) SynthesizeAttributes() *map[string]interfa return returns } -func (d *jsiiProxy_DefaultPrivileges) SynthesizeHclAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (d *jsiiProxy_DefaultPrivileges) SynthesizeHclAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( d, @@ -1066,8 +1065,8 @@ func (d *jsiiProxy_DefaultPrivileges) SynthesizeHclAttributes() *map[string]inte return returns } -func (d *jsiiProxy_DefaultPrivileges) ToHclTerraform() interface{} { - var returns interface{} +func (d *jsiiProxy_DefaultPrivileges) ToHclTerraform() any { + var returns any _jsii_.Invoke( d, @@ -1079,8 +1078,8 @@ func (d *jsiiProxy_DefaultPrivileges) ToHclTerraform() interface{} { return returns } -func (d *jsiiProxy_DefaultPrivileges) ToMetadata() interface{} { - var returns interface{} +func (d *jsiiProxy_DefaultPrivileges) ToMetadata() any { + var returns any _jsii_.Invoke( d, @@ -1105,8 +1104,8 @@ func (d *jsiiProxy_DefaultPrivileges) ToString() *string { return returns } -func (d *jsiiProxy_DefaultPrivileges) ToTerraform() interface{} { - var returns interface{} +func (d *jsiiProxy_DefaultPrivileges) ToTerraform() any { + var returns any _jsii_.Invoke( d, @@ -1117,4 +1116,3 @@ func (d *jsiiProxy_DefaultPrivileges) ToTerraform() interface{} { return returns } - diff --git a/gen/postgresql/defaultprivileges/DefaultPrivilegesConfig.go b/gen/postgresql/defaultprivileges/DefaultPrivilegesConfig.go index c21ce61c5d..b69929333d 100644 --- a/gen/postgresql/defaultprivileges/DefaultPrivilegesConfig.go +++ b/gen/postgresql/defaultprivileges/DefaultPrivilegesConfig.go @@ -6,9 +6,9 @@ import ( type DefaultPrivilegesConfig struct { // Experimental. - Connection interface{} `field:"optional" json:"connection" yaml:"connection"` + Connection any `field:"optional" json:"connection" yaml:"connection"` // Experimental. - Count interface{} `field:"optional" json:"count" yaml:"count"` + Count any `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. @@ -18,7 +18,7 @@ type DefaultPrivilegesConfig struct { // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. - Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` + Provisioners *[]any `field:"optional" json:"provisioners" yaml:"provisioners"` // The database to grant default privileges for this role. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/default_privileges#database DefaultPrivileges#database} @@ -51,6 +51,5 @@ type DefaultPrivilegesConfig struct { // Permit the grant recipient to grant it to others. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/default_privileges#with_grant_option DefaultPrivileges#with_grant_option} - WithGrantOption interface{} `field:"optional" json:"withGrantOption" yaml:"withGrantOption"` + WithGrantOption any `field:"optional" json:"withGrantOption" yaml:"withGrantOption"` } - diff --git a/gen/postgresql/defaultprivileges/DefaultPrivileges__checks.go b/gen/postgresql/defaultprivileges/DefaultPrivileges__checks.go index c881be40db..784d9d8be7 100644 --- a/gen/postgresql/defaultprivileges/DefaultPrivileges__checks.go +++ b/gen/postgresql/defaultprivileges/DefaultPrivileges__checks.go @@ -19,7 +19,7 @@ func (d *jsiiProxy_DefaultPrivileges) validateAddMoveTargetParameters(moveTarget return nil } -func (d *jsiiProxy_DefaultPrivileges) validateAddOverrideParameters(path *string, value interface{}) error { +func (d *jsiiProxy_DefaultPrivileges) validateAddOverrideParameters(path *string, value any) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } @@ -127,7 +127,7 @@ func (d *jsiiProxy_DefaultPrivileges) validateMoveFromIdParameters(id *string) e return nil } -func (d *jsiiProxy_DefaultPrivileges) validateMoveToParameters(moveTarget *string, index interface{}) error { +func (d *jsiiProxy_DefaultPrivileges) validateMoveToParameters(moveTarget *string, index any) error { if moveTarget == nil { return fmt.Errorf("parameter moveTarget is required, but nil was provided") } @@ -220,7 +220,7 @@ func validateDefaultPrivileges_GenerateConfigForImportParameters(scope construct return nil } -func validateDefaultPrivileges_IsConstructParameters(x interface{}) error { +func validateDefaultPrivileges_IsConstructParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -228,7 +228,7 @@ func validateDefaultPrivileges_IsConstructParameters(x interface{}) error { return nil } -func validateDefaultPrivileges_IsTerraformElementParameters(x interface{}) error { +func validateDefaultPrivileges_IsTerraformElementParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -236,7 +236,7 @@ func validateDefaultPrivileges_IsTerraformElementParameters(x interface{}) error return nil } -func validateDefaultPrivileges_IsTerraformResourceParameters(x interface{}) error { +func validateDefaultPrivileges_IsTerraformResourceParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -244,7 +244,7 @@ func validateDefaultPrivileges_IsTerraformResourceParameters(x interface{}) erro return nil } -func (j *jsiiProxy_DefaultPrivileges) validateSetConnectionParameters(val interface{}) error { +func (j *jsiiProxy_DefaultPrivileges) validateSetConnectionParameters(val any) error { switch val.(type) { case *cdktf.SSHProvisionerConnection: val := val.(*cdktf.SSHProvisionerConnection) @@ -277,7 +277,7 @@ func (j *jsiiProxy_DefaultPrivileges) validateSetConnectionParameters(val interf return nil } -func (j *jsiiProxy_DefaultPrivileges) validateSetCountParameters(val interface{}) error { +func (j *jsiiProxy_DefaultPrivileges) validateSetCountParameters(val any) error { switch val.(type) { case *float64: // ok @@ -382,7 +382,7 @@ func (j *jsiiProxy_DefaultPrivileges) validateSetPrivilegesParameters(val *[]*st return nil } -func (j *jsiiProxy_DefaultPrivileges) validateSetProvisionersParameters(val *[]interface{}) error { +func (j *jsiiProxy_DefaultPrivileges) validateSetProvisionersParameters(val *[]any) error { for idx_97dfc6, v := range *val { switch v.(type) { case *cdktf.FileProvisioner: @@ -444,7 +444,7 @@ func (j *jsiiProxy_DefaultPrivileges) validateSetSchemaParameters(val *string) e return nil } -func (j *jsiiProxy_DefaultPrivileges) validateSetWithGrantOptionParameters(val interface{}) error { +func (j *jsiiProxy_DefaultPrivileges) validateSetWithGrantOptionParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -482,4 +482,3 @@ func validateNewDefaultPrivilegesParameters(scope constructs.Construct, id *stri return nil } - diff --git a/gen/postgresql/defaultprivileges/main.go b/gen/postgresql/defaultprivileges/main.go index 6d12d594c0..1374444f4a 100644 --- a/gen/postgresql/defaultprivileges/main.go +++ b/gen/postgresql/defaultprivileges/main.go @@ -9,7 +9,7 @@ import ( func init() { _jsii_.RegisterClass( "@cdktf/provider-postgresql.defaultPrivileges.DefaultPrivileges", - reflect.TypeOf((*DefaultPrivileges)(nil)).Elem(), + reflect.TypeFor[DefaultPrivileges](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "addMoveTarget", GoMethod: "AddMoveTarget"}, _jsii_.MemberMethod{JsiiMethod: "addOverride", GoMethod: "AddOverride"}, @@ -72,7 +72,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "withGrantOption", GoGetter: "WithGrantOption"}, _jsii_.MemberProperty{JsiiProperty: "withGrantOptionInput", GoGetter: "WithGrantOptionInput"}, }, - func() interface{} { + func() any { j := jsiiProxy_DefaultPrivileges{} _jsii_.InitJsiiProxy(&j.Type__cdktfTerraformResource) return &j @@ -80,6 +80,6 @@ func init() { ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.defaultPrivileges.DefaultPrivilegesConfig", - reflect.TypeOf((*DefaultPrivilegesConfig)(nil)).Elem(), + reflect.TypeFor[DefaultPrivilegesConfig](), ) } diff --git a/gen/postgresql/extension/Extension.go b/gen/postgresql/extension/Extension.go index 473bbe8cd2..9d3211186a 100644 --- a/gen/postgresql/extension/Extension.go +++ b/gen/postgresql/extension/Extension.go @@ -15,18 +15,18 @@ type Extension interface { // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. - Connection() interface{} + Connection() any // Experimental. - SetConnection(val interface{}) + SetConnection(val any) // Experimental. - ConstructNodeMetadata() *map[string]interface{} + ConstructNodeMetadata() *map[string]any // Experimental. - Count() interface{} + Count() any // Experimental. - SetCount(val interface{}) - CreateCascade() interface{} - SetCreateCascade(val interface{}) - CreateCascadeInput() interface{} + SetCount(val any) + CreateCascade() any + SetCreateCascade(val any) + CreateCascadeInput() any Database() *string SetDatabase(val *string) DatabaseInput() *string @@ -34,9 +34,9 @@ type Extension interface { DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) - DropCascade() interface{} - SetDropCascade(val interface{}) - DropCascadeInput() interface{} + DropCascade() any + SetDropCascade(val any) + DropCascadeInput() any // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. @@ -62,18 +62,18 @@ type Extension interface { // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. - Provisioners() *[]interface{} + Provisioners() *[]any // Experimental. - SetProvisioners(val *[]interface{}) + SetProvisioners(val *[]any) // Experimental. - RawOverrides() interface{} + RawOverrides() any Schema() *string SetSchema(val *string) SchemaInput() *string // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. - TerraformMetaArguments() *map[string]interface{} + TerraformMetaArguments() *map[string]any // Experimental. TerraformResourceType() *string Version() *string @@ -83,9 +83,9 @@ type Extension interface { // Experimental. AddMoveTarget(moveTarget *string) // Experimental. - AddOverride(path *string, value interface{}) + AddOverride(path *string, value any) // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -103,7 +103,7 @@ type Extension interface { // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. - HasResourceMove() interface{} + HasResourceMove() any // Experimental. ImportFrom(id *string, provider cdktf.TerraformProvider) // Experimental. @@ -115,7 +115,7 @@ type Extension interface { MoveFromId(id *string) // Moves this resource to the target resource given by moveTarget. // Experimental. - MoveTo(moveTarget *string, index interface{}) + MoveTo(moveTarget *string, index any) // Moves this resource to the resource corresponding to "id". // Experimental. MoveToId(id *string) @@ -131,17 +131,17 @@ type Extension interface { ResetOverrideLogicalId() ResetSchema() ResetVersion() - SynthesizeAttributes() *map[string]interface{} - SynthesizeHclAttributes() *map[string]interface{} + SynthesizeAttributes() *map[string]any + SynthesizeHclAttributes() *map[string]any // Experimental. - ToHclTerraform() interface{} + ToHclTerraform() any // Experimental. - ToMetadata() interface{} + ToMetadata() any // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. - ToTerraform() interface{} + ToTerraform() any } // The jsii proxy struct for Extension @@ -159,8 +159,8 @@ func (j *jsiiProxy_Extension) CdktfStack() cdktf.TerraformStack { return returns } -func (j *jsiiProxy_Extension) Connection() interface{} { - var returns interface{} +func (j *jsiiProxy_Extension) Connection() any { + var returns any _jsii_.Get( j, "connection", @@ -169,8 +169,8 @@ func (j *jsiiProxy_Extension) Connection() interface{} { return returns } -func (j *jsiiProxy_Extension) ConstructNodeMetadata() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_Extension) ConstructNodeMetadata() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "constructNodeMetadata", @@ -179,8 +179,8 @@ func (j *jsiiProxy_Extension) ConstructNodeMetadata() *map[string]interface{} { return returns } -func (j *jsiiProxy_Extension) Count() interface{} { - var returns interface{} +func (j *jsiiProxy_Extension) Count() any { + var returns any _jsii_.Get( j, "count", @@ -189,8 +189,8 @@ func (j *jsiiProxy_Extension) Count() interface{} { return returns } -func (j *jsiiProxy_Extension) CreateCascade() interface{} { - var returns interface{} +func (j *jsiiProxy_Extension) CreateCascade() any { + var returns any _jsii_.Get( j, "createCascade", @@ -199,8 +199,8 @@ func (j *jsiiProxy_Extension) CreateCascade() interface{} { return returns } -func (j *jsiiProxy_Extension) CreateCascadeInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Extension) CreateCascadeInput() any { + var returns any _jsii_.Get( j, "createCascadeInput", @@ -239,8 +239,8 @@ func (j *jsiiProxy_Extension) DependsOn() *[]*string { return returns } -func (j *jsiiProxy_Extension) DropCascade() interface{} { - var returns interface{} +func (j *jsiiProxy_Extension) DropCascade() any { + var returns any _jsii_.Get( j, "dropCascade", @@ -249,8 +249,8 @@ func (j *jsiiProxy_Extension) DropCascade() interface{} { return returns } -func (j *jsiiProxy_Extension) DropCascadeInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Extension) DropCascadeInput() any { + var returns any _jsii_.Get( j, "dropCascadeInput", @@ -359,8 +359,8 @@ func (j *jsiiProxy_Extension) Provider() cdktf.TerraformProvider { return returns } -func (j *jsiiProxy_Extension) Provisioners() *[]interface{} { - var returns *[]interface{} +func (j *jsiiProxy_Extension) Provisioners() *[]any { + var returns *[]any _jsii_.Get( j, "provisioners", @@ -369,8 +369,8 @@ func (j *jsiiProxy_Extension) Provisioners() *[]interface{} { return returns } -func (j *jsiiProxy_Extension) RawOverrides() interface{} { - var returns interface{} +func (j *jsiiProxy_Extension) RawOverrides() any { + var returns any _jsii_.Get( j, "rawOverrides", @@ -409,8 +409,8 @@ func (j *jsiiProxy_Extension) TerraformGeneratorMetadata() *cdktf.TerraformProvi return returns } -func (j *jsiiProxy_Extension) TerraformMetaArguments() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_Extension) TerraformMetaArguments() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "terraformMetaArguments", @@ -449,7 +449,6 @@ func (j *jsiiProxy_Extension) VersionInput() *string { return returns } - // Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/extension postgresql_extension} Resource. func NewExtension(scope constructs.Construct, id *string, config *ExtensionConfig) Extension { _init_.Initialize() @@ -461,7 +460,7 @@ func NewExtension(scope constructs.Construct, id *string, config *ExtensionConfi _jsii_.Create( "@cdktf/provider-postgresql.extension.Extension", - []interface{}{scope, id, config}, + []any{scope, id, config}, &j, ) @@ -474,12 +473,12 @@ func NewExtension_Override(e Extension, scope constructs.Construct, id *string, _jsii_.Create( "@cdktf/provider-postgresql.extension.Extension", - []interface{}{scope, id, config}, + []any{scope, id, config}, e, ) } -func (j *jsiiProxy_Extension)SetConnection(val interface{}) { +func (j *jsiiProxy_Extension) SetConnection(val any) { if err := j.validateSetConnectionParameters(val); err != nil { panic(err) } @@ -490,7 +489,7 @@ func (j *jsiiProxy_Extension)SetConnection(val interface{}) { ) } -func (j *jsiiProxy_Extension)SetCount(val interface{}) { +func (j *jsiiProxy_Extension) SetCount(val any) { if err := j.validateSetCountParameters(val); err != nil { panic(err) } @@ -501,7 +500,7 @@ func (j *jsiiProxy_Extension)SetCount(val interface{}) { ) } -func (j *jsiiProxy_Extension)SetCreateCascade(val interface{}) { +func (j *jsiiProxy_Extension) SetCreateCascade(val any) { if err := j.validateSetCreateCascadeParameters(val); err != nil { panic(err) } @@ -512,7 +511,7 @@ func (j *jsiiProxy_Extension)SetCreateCascade(val interface{}) { ) } -func (j *jsiiProxy_Extension)SetDatabase(val *string) { +func (j *jsiiProxy_Extension) SetDatabase(val *string) { if err := j.validateSetDatabaseParameters(val); err != nil { panic(err) } @@ -523,7 +522,7 @@ func (j *jsiiProxy_Extension)SetDatabase(val *string) { ) } -func (j *jsiiProxy_Extension)SetDependsOn(val *[]*string) { +func (j *jsiiProxy_Extension) SetDependsOn(val *[]*string) { _jsii_.Set( j, "dependsOn", @@ -531,7 +530,7 @@ func (j *jsiiProxy_Extension)SetDependsOn(val *[]*string) { ) } -func (j *jsiiProxy_Extension)SetDropCascade(val interface{}) { +func (j *jsiiProxy_Extension) SetDropCascade(val any) { if err := j.validateSetDropCascadeParameters(val); err != nil { panic(err) } @@ -542,7 +541,7 @@ func (j *jsiiProxy_Extension)SetDropCascade(val interface{}) { ) } -func (j *jsiiProxy_Extension)SetForEach(val cdktf.ITerraformIterator) { +func (j *jsiiProxy_Extension) SetForEach(val cdktf.ITerraformIterator) { _jsii_.Set( j, "forEach", @@ -550,7 +549,7 @@ func (j *jsiiProxy_Extension)SetForEach(val cdktf.ITerraformIterator) { ) } -func (j *jsiiProxy_Extension)SetId(val *string) { +func (j *jsiiProxy_Extension) SetId(val *string) { if err := j.validateSetIdParameters(val); err != nil { panic(err) } @@ -561,7 +560,7 @@ func (j *jsiiProxy_Extension)SetId(val *string) { ) } -func (j *jsiiProxy_Extension)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { +func (j *jsiiProxy_Extension) SetLifecycle(val *cdktf.TerraformResourceLifecycle) { if err := j.validateSetLifecycleParameters(val); err != nil { panic(err) } @@ -572,7 +571,7 @@ func (j *jsiiProxy_Extension)SetLifecycle(val *cdktf.TerraformResourceLifecycle) ) } -func (j *jsiiProxy_Extension)SetName(val *string) { +func (j *jsiiProxy_Extension) SetName(val *string) { if err := j.validateSetNameParameters(val); err != nil { panic(err) } @@ -583,7 +582,7 @@ func (j *jsiiProxy_Extension)SetName(val *string) { ) } -func (j *jsiiProxy_Extension)SetProvider(val cdktf.TerraformProvider) { +func (j *jsiiProxy_Extension) SetProvider(val cdktf.TerraformProvider) { _jsii_.Set( j, "provider", @@ -591,7 +590,7 @@ func (j *jsiiProxy_Extension)SetProvider(val cdktf.TerraformProvider) { ) } -func (j *jsiiProxy_Extension)SetProvisioners(val *[]interface{}) { +func (j *jsiiProxy_Extension) SetProvisioners(val *[]any) { if err := j.validateSetProvisionersParameters(val); err != nil { panic(err) } @@ -602,7 +601,7 @@ func (j *jsiiProxy_Extension)SetProvisioners(val *[]interface{}) { ) } -func (j *jsiiProxy_Extension)SetSchema(val *string) { +func (j *jsiiProxy_Extension) SetSchema(val *string) { if err := j.validateSetSchemaParameters(val); err != nil { panic(err) } @@ -613,7 +612,7 @@ func (j *jsiiProxy_Extension)SetSchema(val *string) { ) } -func (j *jsiiProxy_Extension)SetVersion(val *string) { +func (j *jsiiProxy_Extension) SetVersion(val *string) { if err := j.validateSetVersionParameters(val); err != nil { panic(err) } @@ -636,7 +635,7 @@ func Extension_GenerateConfigForImport(scope constructs.Construct, importToId *s _jsii_.StaticInvoke( "@cdktf/provider-postgresql.extension.Extension", "generateConfigForImport", - []interface{}{scope, importToId, importFromId, provider}, + []any{scope, importToId, importFromId, provider}, &returns, ) @@ -660,7 +659,7 @@ func Extension_GenerateConfigForImport(scope constructs.Construct, importToId *s // this type-testing method instead. // // Returns: true if `x` is an object created from a class which extends `Construct`. -func Extension_IsConstruct(x interface{}) *bool { +func Extension_IsConstruct(x any) *bool { _init_.Initialize() if err := validateExtension_IsConstructParameters(x); err != nil { @@ -671,7 +670,7 @@ func Extension_IsConstruct(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.extension.Extension", "isConstruct", - []interface{}{x}, + []any{x}, &returns, ) @@ -679,7 +678,7 @@ func Extension_IsConstruct(x interface{}) *bool { } // Experimental. -func Extension_IsTerraformElement(x interface{}) *bool { +func Extension_IsTerraformElement(x any) *bool { _init_.Initialize() if err := validateExtension_IsTerraformElementParameters(x); err != nil { @@ -690,7 +689,7 @@ func Extension_IsTerraformElement(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.extension.Extension", "isTerraformElement", - []interface{}{x}, + []any{x}, &returns, ) @@ -698,7 +697,7 @@ func Extension_IsTerraformElement(x interface{}) *bool { } // Experimental. -func Extension_IsTerraformResource(x interface{}) *bool { +func Extension_IsTerraformResource(x any) *bool { _init_.Initialize() if err := validateExtension_IsTerraformResourceParameters(x); err != nil { @@ -709,7 +708,7 @@ func Extension_IsTerraformResource(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.extension.Extension", "isTerraformResource", - []interface{}{x}, + []any{x}, &returns, ) @@ -734,31 +733,31 @@ func (e *jsiiProxy_Extension) AddMoveTarget(moveTarget *string) { _jsii_.InvokeVoid( e, "addMoveTarget", - []interface{}{moveTarget}, + []any{moveTarget}, ) } -func (e *jsiiProxy_Extension) AddOverride(path *string, value interface{}) { +func (e *jsiiProxy_Extension) AddOverride(path *string, value any) { if err := e.validateAddOverrideParameters(path, value); err != nil { panic(err) } _jsii_.InvokeVoid( e, "addOverride", - []interface{}{path, value}, + []any{path, value}, ) } -func (e *jsiiProxy_Extension) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (e *jsiiProxy_Extension) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := e.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( e, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -774,7 +773,7 @@ func (e *jsiiProxy_Extension) GetBooleanAttribute(terraformAttribute *string) cd _jsii_.Invoke( e, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -790,7 +789,7 @@ func (e *jsiiProxy_Extension) GetBooleanMapAttribute(terraformAttribute *string) _jsii_.Invoke( e, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -806,7 +805,7 @@ func (e *jsiiProxy_Extension) GetListAttribute(terraformAttribute *string) *[]*s _jsii_.Invoke( e, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -822,7 +821,7 @@ func (e *jsiiProxy_Extension) GetNumberAttribute(terraformAttribute *string) *fl _jsii_.Invoke( e, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -838,7 +837,7 @@ func (e *jsiiProxy_Extension) GetNumberListAttribute(terraformAttribute *string) _jsii_.Invoke( e, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -854,7 +853,7 @@ func (e *jsiiProxy_Extension) GetNumberMapAttribute(terraformAttribute *string) _jsii_.Invoke( e, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -870,7 +869,7 @@ func (e *jsiiProxy_Extension) GetStringAttribute(terraformAttribute *string) *st _jsii_.Invoke( e, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -886,15 +885,15 @@ func (e *jsiiProxy_Extension) GetStringMapAttribute(terraformAttribute *string) _jsii_.Invoke( e, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) return returns } -func (e *jsiiProxy_Extension) HasResourceMove() interface{} { - var returns interface{} +func (e *jsiiProxy_Extension) HasResourceMove() any { + var returns any _jsii_.Invoke( e, @@ -913,7 +912,7 @@ func (e *jsiiProxy_Extension) ImportFrom(id *string, provider cdktf.TerraformPro _jsii_.InvokeVoid( e, "importFrom", - []interface{}{id, provider}, + []any{id, provider}, ) } @@ -926,7 +925,7 @@ func (e *jsiiProxy_Extension) InterpolationForAttribute(terraformAttribute *stri _jsii_.Invoke( e, "interpolationForAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -940,18 +939,18 @@ func (e *jsiiProxy_Extension) MoveFromId(id *string) { _jsii_.InvokeVoid( e, "moveFromId", - []interface{}{id}, + []any{id}, ) } -func (e *jsiiProxy_Extension) MoveTo(moveTarget *string, index interface{}) { +func (e *jsiiProxy_Extension) MoveTo(moveTarget *string, index any) { if err := e.validateMoveToParameters(moveTarget, index); err != nil { panic(err) } _jsii_.InvokeVoid( e, "moveTo", - []interface{}{moveTarget, index}, + []any{moveTarget, index}, ) } @@ -962,7 +961,7 @@ func (e *jsiiProxy_Extension) MoveToId(id *string) { _jsii_.InvokeVoid( e, "moveToId", - []interface{}{id}, + []any{id}, ) } @@ -973,7 +972,7 @@ func (e *jsiiProxy_Extension) OverrideLogicalId(newLogicalId *string) { _jsii_.InvokeVoid( e, "overrideLogicalId", - []interface{}{newLogicalId}, + []any{newLogicalId}, ) } @@ -1033,8 +1032,8 @@ func (e *jsiiProxy_Extension) ResetVersion() { ) } -func (e *jsiiProxy_Extension) SynthesizeAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (e *jsiiProxy_Extension) SynthesizeAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( e, @@ -1046,8 +1045,8 @@ func (e *jsiiProxy_Extension) SynthesizeAttributes() *map[string]interface{} { return returns } -func (e *jsiiProxy_Extension) SynthesizeHclAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (e *jsiiProxy_Extension) SynthesizeHclAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( e, @@ -1059,8 +1058,8 @@ func (e *jsiiProxy_Extension) SynthesizeHclAttributes() *map[string]interface{} return returns } -func (e *jsiiProxy_Extension) ToHclTerraform() interface{} { - var returns interface{} +func (e *jsiiProxy_Extension) ToHclTerraform() any { + var returns any _jsii_.Invoke( e, @@ -1072,8 +1071,8 @@ func (e *jsiiProxy_Extension) ToHclTerraform() interface{} { return returns } -func (e *jsiiProxy_Extension) ToMetadata() interface{} { - var returns interface{} +func (e *jsiiProxy_Extension) ToMetadata() any { + var returns any _jsii_.Invoke( e, @@ -1098,8 +1097,8 @@ func (e *jsiiProxy_Extension) ToString() *string { return returns } -func (e *jsiiProxy_Extension) ToTerraform() interface{} { - var returns interface{} +func (e *jsiiProxy_Extension) ToTerraform() any { + var returns any _jsii_.Invoke( e, @@ -1110,4 +1109,3 @@ func (e *jsiiProxy_Extension) ToTerraform() interface{} { return returns } - diff --git a/gen/postgresql/extension/ExtensionConfig.go b/gen/postgresql/extension/ExtensionConfig.go index 8461585449..77d75fecf6 100644 --- a/gen/postgresql/extension/ExtensionConfig.go +++ b/gen/postgresql/extension/ExtensionConfig.go @@ -6,9 +6,9 @@ import ( type ExtensionConfig struct { // Experimental. - Connection interface{} `field:"optional" json:"connection" yaml:"connection"` + Connection any `field:"optional" json:"connection" yaml:"connection"` // Experimental. - Count interface{} `field:"optional" json:"count" yaml:"count"` + Count any `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. @@ -18,13 +18,13 @@ type ExtensionConfig struct { // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. - Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` + Provisioners *[]any `field:"optional" json:"provisioners" yaml:"provisioners"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/extension#name Extension#name}. Name *string `field:"required" json:"name" yaml:"name"` // When true, will also create any extensions that this extension depends on that are not already installed. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/extension#create_cascade Extension#create_cascade} - CreateCascade interface{} `field:"optional" json:"createCascade" yaml:"createCascade"` + CreateCascade any `field:"optional" json:"createCascade" yaml:"createCascade"` // Sets the database to add the extension to. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/extension#database Extension#database} @@ -32,7 +32,7 @@ type ExtensionConfig struct { // When true, will also drop all the objects that depend on the extension, and in turn all objects that depend on those objects. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/extension#drop_cascade Extension#drop_cascade} - DropCascade interface{} `field:"optional" json:"dropCascade" yaml:"dropCascade"` + DropCascade any `field:"optional" json:"dropCascade" yaml:"dropCascade"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/extension#id Extension#id}. // // Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. @@ -47,4 +47,3 @@ type ExtensionConfig struct { // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/extension#version Extension#version} Version *string `field:"optional" json:"version" yaml:"version"` } - diff --git a/gen/postgresql/extension/Extension__checks.go b/gen/postgresql/extension/Extension__checks.go index 7b081563d9..cf04625a01 100644 --- a/gen/postgresql/extension/Extension__checks.go +++ b/gen/postgresql/extension/Extension__checks.go @@ -19,7 +19,7 @@ func (e *jsiiProxy_Extension) validateAddMoveTargetParameters(moveTarget *string return nil } -func (e *jsiiProxy_Extension) validateAddOverrideParameters(path *string, value interface{}) error { +func (e *jsiiProxy_Extension) validateAddOverrideParameters(path *string, value any) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } @@ -127,7 +127,7 @@ func (e *jsiiProxy_Extension) validateMoveFromIdParameters(id *string) error { return nil } -func (e *jsiiProxy_Extension) validateMoveToParameters(moveTarget *string, index interface{}) error { +func (e *jsiiProxy_Extension) validateMoveToParameters(moveTarget *string, index any) error { if moveTarget == nil { return fmt.Errorf("parameter moveTarget is required, but nil was provided") } @@ -220,7 +220,7 @@ func validateExtension_GenerateConfigForImportParameters(scope constructs.Constr return nil } -func validateExtension_IsConstructParameters(x interface{}) error { +func validateExtension_IsConstructParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -228,7 +228,7 @@ func validateExtension_IsConstructParameters(x interface{}) error { return nil } -func validateExtension_IsTerraformElementParameters(x interface{}) error { +func validateExtension_IsTerraformElementParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -236,7 +236,7 @@ func validateExtension_IsTerraformElementParameters(x interface{}) error { return nil } -func validateExtension_IsTerraformResourceParameters(x interface{}) error { +func validateExtension_IsTerraformResourceParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -244,7 +244,7 @@ func validateExtension_IsTerraformResourceParameters(x interface{}) error { return nil } -func (j *jsiiProxy_Extension) validateSetConnectionParameters(val interface{}) error { +func (j *jsiiProxy_Extension) validateSetConnectionParameters(val any) error { switch val.(type) { case *cdktf.SSHProvisionerConnection: val := val.(*cdktf.SSHProvisionerConnection) @@ -277,7 +277,7 @@ func (j *jsiiProxy_Extension) validateSetConnectionParameters(val interface{}) e return nil } -func (j *jsiiProxy_Extension) validateSetCountParameters(val interface{}) error { +func (j *jsiiProxy_Extension) validateSetCountParameters(val any) error { switch val.(type) { case *float64: // ok @@ -334,7 +334,7 @@ func (j *jsiiProxy_Extension) validateSetCountParameters(val interface{}) error return nil } -func (j *jsiiProxy_Extension) validateSetCreateCascadeParameters(val interface{}) error { +func (j *jsiiProxy_Extension) validateSetCreateCascadeParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -362,7 +362,7 @@ func (j *jsiiProxy_Extension) validateSetDatabaseParameters(val *string) error { return nil } -func (j *jsiiProxy_Extension) validateSetDropCascadeParameters(val interface{}) error { +func (j *jsiiProxy_Extension) validateSetDropCascadeParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -406,7 +406,7 @@ func (j *jsiiProxy_Extension) validateSetNameParameters(val *string) error { return nil } -func (j *jsiiProxy_Extension) validateSetProvisionersParameters(val *[]interface{}) error { +func (j *jsiiProxy_Extension) validateSetProvisionersParameters(val *[]any) error { for idx_97dfc6, v := range *val { switch v.(type) { case *cdktf.FileProvisioner: @@ -486,4 +486,3 @@ func validateNewExtensionParameters(scope constructs.Construct, id *string, conf return nil } - diff --git a/gen/postgresql/extension/main.go b/gen/postgresql/extension/main.go index 8af815739b..54a4ef9f5e 100644 --- a/gen/postgresql/extension/main.go +++ b/gen/postgresql/extension/main.go @@ -9,7 +9,7 @@ import ( func init() { _jsii_.RegisterClass( "@cdktf/provider-postgresql.extension.Extension", - reflect.TypeOf((*Extension)(nil)).Elem(), + reflect.TypeFor[Extension](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "addMoveTarget", GoMethod: "AddMoveTarget"}, _jsii_.MemberMethod{JsiiMethod: "addOverride", GoMethod: "AddOverride"}, @@ -73,7 +73,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "version", GoGetter: "Version"}, _jsii_.MemberProperty{JsiiProperty: "versionInput", GoGetter: "VersionInput"}, }, - func() interface{} { + func() any { j := jsiiProxy_Extension{} _jsii_.InitJsiiProxy(&j.Type__cdktfTerraformResource) return &j @@ -81,6 +81,6 @@ func init() { ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.extension.ExtensionConfig", - reflect.TypeOf((*ExtensionConfig)(nil)).Elem(), + reflect.TypeFor[ExtensionConfig](), ) } diff --git a/gen/postgresql/functionresource/FunctionResource.go b/gen/postgresql/functionresource/FunctionResource.go index 8b185def45..ca8f32435d 100644 --- a/gen/postgresql/functionresource/FunctionResource.go +++ b/gen/postgresql/functionresource/FunctionResource.go @@ -13,22 +13,22 @@ import ( type FunctionResource interface { cdktf.TerraformResource Arg() FunctionResourceArgList - ArgInput() interface{} + ArgInput() any Body() *string SetBody(val *string) BodyInput() *string // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. - Connection() interface{} + Connection() any // Experimental. - SetConnection(val interface{}) + SetConnection(val any) // Experimental. - ConstructNodeMetadata() *map[string]interface{} + ConstructNodeMetadata() *map[string]any // Experimental. - Count() interface{} + Count() any // Experimental. - SetCount(val interface{}) + SetCount(val any) Database() *string SetDatabase(val *string) DatabaseInput() *string @@ -36,9 +36,9 @@ type FunctionResource interface { DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) - DropCascade() interface{} - SetDropCascade(val interface{}) - DropCascadeInput() interface{} + DropCascade() any + SetDropCascade(val any) + DropCascadeInput() any // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. @@ -70,27 +70,27 @@ type FunctionResource interface { // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. - Provisioners() *[]interface{} + Provisioners() *[]any // Experimental. - SetProvisioners(val *[]interface{}) + SetProvisioners(val *[]any) // Experimental. - RawOverrides() interface{} + RawOverrides() any Returns() *string SetReturns(val *string) ReturnsInput() *string Schema() *string SetSchema(val *string) SchemaInput() *string - SecurityDefiner() interface{} - SetSecurityDefiner(val interface{}) - SecurityDefinerInput() interface{} - Strict() interface{} - SetStrict(val interface{}) - StrictInput() interface{} + SecurityDefiner() any + SetSecurityDefiner(val any) + SecurityDefinerInput() any + Strict() any + SetStrict(val any) + StrictInput() any // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. - TerraformMetaArguments() *map[string]interface{} + TerraformMetaArguments() *map[string]any // Experimental. TerraformResourceType() *string Volatility() *string @@ -100,9 +100,9 @@ type FunctionResource interface { // Experimental. AddMoveTarget(moveTarget *string) // Experimental. - AddOverride(path *string, value interface{}) + AddOverride(path *string, value any) // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -120,7 +120,7 @@ type FunctionResource interface { // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. - HasResourceMove() interface{} + HasResourceMove() any // Experimental. ImportFrom(id *string, provider cdktf.TerraformProvider) // Experimental. @@ -132,14 +132,14 @@ type FunctionResource interface { MoveFromId(id *string) // Moves this resource to the target resource given by moveTarget. // Experimental. - MoveTo(moveTarget *string, index interface{}) + MoveTo(moveTarget *string, index any) // Moves this resource to the resource corresponding to "id". // Experimental. MoveToId(id *string) // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) - PutArg(value interface{}) + PutArg(value any) ResetArg() ResetDatabase() ResetDropCascade() @@ -154,17 +154,17 @@ type FunctionResource interface { ResetSecurityDefiner() ResetStrict() ResetVolatility() - SynthesizeAttributes() *map[string]interface{} - SynthesizeHclAttributes() *map[string]interface{} + SynthesizeAttributes() *map[string]any + SynthesizeHclAttributes() *map[string]any // Experimental. - ToHclTerraform() interface{} + ToHclTerraform() any // Experimental. - ToMetadata() interface{} + ToMetadata() any // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. - ToTerraform() interface{} + ToTerraform() any } // The jsii proxy struct for FunctionResource @@ -182,8 +182,8 @@ func (j *jsiiProxy_FunctionResource) Arg() FunctionResourceArgList { return returns } -func (j *jsiiProxy_FunctionResource) ArgInput() interface{} { - var returns interface{} +func (j *jsiiProxy_FunctionResource) ArgInput() any { + var returns any _jsii_.Get( j, "argInput", @@ -222,8 +222,8 @@ func (j *jsiiProxy_FunctionResource) CdktfStack() cdktf.TerraformStack { return returns } -func (j *jsiiProxy_FunctionResource) Connection() interface{} { - var returns interface{} +func (j *jsiiProxy_FunctionResource) Connection() any { + var returns any _jsii_.Get( j, "connection", @@ -232,8 +232,8 @@ func (j *jsiiProxy_FunctionResource) Connection() interface{} { return returns } -func (j *jsiiProxy_FunctionResource) ConstructNodeMetadata() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_FunctionResource) ConstructNodeMetadata() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "constructNodeMetadata", @@ -242,8 +242,8 @@ func (j *jsiiProxy_FunctionResource) ConstructNodeMetadata() *map[string]interfa return returns } -func (j *jsiiProxy_FunctionResource) Count() interface{} { - var returns interface{} +func (j *jsiiProxy_FunctionResource) Count() any { + var returns any _jsii_.Get( j, "count", @@ -282,8 +282,8 @@ func (j *jsiiProxy_FunctionResource) DependsOn() *[]*string { return returns } -func (j *jsiiProxy_FunctionResource) DropCascade() interface{} { - var returns interface{} +func (j *jsiiProxy_FunctionResource) DropCascade() any { + var returns any _jsii_.Get( j, "dropCascade", @@ -292,8 +292,8 @@ func (j *jsiiProxy_FunctionResource) DropCascade() interface{} { return returns } -func (j *jsiiProxy_FunctionResource) DropCascadeInput() interface{} { - var returns interface{} +func (j *jsiiProxy_FunctionResource) DropCascadeInput() any { + var returns any _jsii_.Get( j, "dropCascadeInput", @@ -442,8 +442,8 @@ func (j *jsiiProxy_FunctionResource) Provider() cdktf.TerraformProvider { return returns } -func (j *jsiiProxy_FunctionResource) Provisioners() *[]interface{} { - var returns *[]interface{} +func (j *jsiiProxy_FunctionResource) Provisioners() *[]any { + var returns *[]any _jsii_.Get( j, "provisioners", @@ -452,8 +452,8 @@ func (j *jsiiProxy_FunctionResource) Provisioners() *[]interface{} { return returns } -func (j *jsiiProxy_FunctionResource) RawOverrides() interface{} { - var returns interface{} +func (j *jsiiProxy_FunctionResource) RawOverrides() any { + var returns any _jsii_.Get( j, "rawOverrides", @@ -502,8 +502,8 @@ func (j *jsiiProxy_FunctionResource) SchemaInput() *string { return returns } -func (j *jsiiProxy_FunctionResource) SecurityDefiner() interface{} { - var returns interface{} +func (j *jsiiProxy_FunctionResource) SecurityDefiner() any { + var returns any _jsii_.Get( j, "securityDefiner", @@ -512,8 +512,8 @@ func (j *jsiiProxy_FunctionResource) SecurityDefiner() interface{} { return returns } -func (j *jsiiProxy_FunctionResource) SecurityDefinerInput() interface{} { - var returns interface{} +func (j *jsiiProxy_FunctionResource) SecurityDefinerInput() any { + var returns any _jsii_.Get( j, "securityDefinerInput", @@ -522,8 +522,8 @@ func (j *jsiiProxy_FunctionResource) SecurityDefinerInput() interface{} { return returns } -func (j *jsiiProxy_FunctionResource) Strict() interface{} { - var returns interface{} +func (j *jsiiProxy_FunctionResource) Strict() any { + var returns any _jsii_.Get( j, "strict", @@ -532,8 +532,8 @@ func (j *jsiiProxy_FunctionResource) Strict() interface{} { return returns } -func (j *jsiiProxy_FunctionResource) StrictInput() interface{} { - var returns interface{} +func (j *jsiiProxy_FunctionResource) StrictInput() any { + var returns any _jsii_.Get( j, "strictInput", @@ -552,8 +552,8 @@ func (j *jsiiProxy_FunctionResource) TerraformGeneratorMetadata() *cdktf.Terrafo return returns } -func (j *jsiiProxy_FunctionResource) TerraformMetaArguments() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_FunctionResource) TerraformMetaArguments() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "terraformMetaArguments", @@ -592,7 +592,6 @@ func (j *jsiiProxy_FunctionResource) VolatilityInput() *string { return returns } - // Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/function postgresql_function} Resource. func NewFunctionResource(scope constructs.Construct, id *string, config *FunctionResourceConfig) FunctionResource { _init_.Initialize() @@ -604,7 +603,7 @@ func NewFunctionResource(scope constructs.Construct, id *string, config *Functio _jsii_.Create( "@cdktf/provider-postgresql.functionResource.FunctionResource", - []interface{}{scope, id, config}, + []any{scope, id, config}, &j, ) @@ -617,12 +616,12 @@ func NewFunctionResource_Override(f FunctionResource, scope constructs.Construct _jsii_.Create( "@cdktf/provider-postgresql.functionResource.FunctionResource", - []interface{}{scope, id, config}, + []any{scope, id, config}, f, ) } -func (j *jsiiProxy_FunctionResource)SetBody(val *string) { +func (j *jsiiProxy_FunctionResource) SetBody(val *string) { if err := j.validateSetBodyParameters(val); err != nil { panic(err) } @@ -633,7 +632,7 @@ func (j *jsiiProxy_FunctionResource)SetBody(val *string) { ) } -func (j *jsiiProxy_FunctionResource)SetConnection(val interface{}) { +func (j *jsiiProxy_FunctionResource) SetConnection(val any) { if err := j.validateSetConnectionParameters(val); err != nil { panic(err) } @@ -644,7 +643,7 @@ func (j *jsiiProxy_FunctionResource)SetConnection(val interface{}) { ) } -func (j *jsiiProxy_FunctionResource)SetCount(val interface{}) { +func (j *jsiiProxy_FunctionResource) SetCount(val any) { if err := j.validateSetCountParameters(val); err != nil { panic(err) } @@ -655,7 +654,7 @@ func (j *jsiiProxy_FunctionResource)SetCount(val interface{}) { ) } -func (j *jsiiProxy_FunctionResource)SetDatabase(val *string) { +func (j *jsiiProxy_FunctionResource) SetDatabase(val *string) { if err := j.validateSetDatabaseParameters(val); err != nil { panic(err) } @@ -666,7 +665,7 @@ func (j *jsiiProxy_FunctionResource)SetDatabase(val *string) { ) } -func (j *jsiiProxy_FunctionResource)SetDependsOn(val *[]*string) { +func (j *jsiiProxy_FunctionResource) SetDependsOn(val *[]*string) { _jsii_.Set( j, "dependsOn", @@ -674,7 +673,7 @@ func (j *jsiiProxy_FunctionResource)SetDependsOn(val *[]*string) { ) } -func (j *jsiiProxy_FunctionResource)SetDropCascade(val interface{}) { +func (j *jsiiProxy_FunctionResource) SetDropCascade(val any) { if err := j.validateSetDropCascadeParameters(val); err != nil { panic(err) } @@ -685,7 +684,7 @@ func (j *jsiiProxy_FunctionResource)SetDropCascade(val interface{}) { ) } -func (j *jsiiProxy_FunctionResource)SetForEach(val cdktf.ITerraformIterator) { +func (j *jsiiProxy_FunctionResource) SetForEach(val cdktf.ITerraformIterator) { _jsii_.Set( j, "forEach", @@ -693,7 +692,7 @@ func (j *jsiiProxy_FunctionResource)SetForEach(val cdktf.ITerraformIterator) { ) } -func (j *jsiiProxy_FunctionResource)SetId(val *string) { +func (j *jsiiProxy_FunctionResource) SetId(val *string) { if err := j.validateSetIdParameters(val); err != nil { panic(err) } @@ -704,7 +703,7 @@ func (j *jsiiProxy_FunctionResource)SetId(val *string) { ) } -func (j *jsiiProxy_FunctionResource)SetLanguage(val *string) { +func (j *jsiiProxy_FunctionResource) SetLanguage(val *string) { if err := j.validateSetLanguageParameters(val); err != nil { panic(err) } @@ -715,7 +714,7 @@ func (j *jsiiProxy_FunctionResource)SetLanguage(val *string) { ) } -func (j *jsiiProxy_FunctionResource)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { +func (j *jsiiProxy_FunctionResource) SetLifecycle(val *cdktf.TerraformResourceLifecycle) { if err := j.validateSetLifecycleParameters(val); err != nil { panic(err) } @@ -726,7 +725,7 @@ func (j *jsiiProxy_FunctionResource)SetLifecycle(val *cdktf.TerraformResourceLif ) } -func (j *jsiiProxy_FunctionResource)SetName(val *string) { +func (j *jsiiProxy_FunctionResource) SetName(val *string) { if err := j.validateSetNameParameters(val); err != nil { panic(err) } @@ -737,7 +736,7 @@ func (j *jsiiProxy_FunctionResource)SetName(val *string) { ) } -func (j *jsiiProxy_FunctionResource)SetParallel(val *string) { +func (j *jsiiProxy_FunctionResource) SetParallel(val *string) { if err := j.validateSetParallelParameters(val); err != nil { panic(err) } @@ -748,7 +747,7 @@ func (j *jsiiProxy_FunctionResource)SetParallel(val *string) { ) } -func (j *jsiiProxy_FunctionResource)SetProvider(val cdktf.TerraformProvider) { +func (j *jsiiProxy_FunctionResource) SetProvider(val cdktf.TerraformProvider) { _jsii_.Set( j, "provider", @@ -756,7 +755,7 @@ func (j *jsiiProxy_FunctionResource)SetProvider(val cdktf.TerraformProvider) { ) } -func (j *jsiiProxy_FunctionResource)SetProvisioners(val *[]interface{}) { +func (j *jsiiProxy_FunctionResource) SetProvisioners(val *[]any) { if err := j.validateSetProvisionersParameters(val); err != nil { panic(err) } @@ -767,7 +766,7 @@ func (j *jsiiProxy_FunctionResource)SetProvisioners(val *[]interface{}) { ) } -func (j *jsiiProxy_FunctionResource)SetReturns(val *string) { +func (j *jsiiProxy_FunctionResource) SetReturns(val *string) { if err := j.validateSetReturnsParameters(val); err != nil { panic(err) } @@ -778,7 +777,7 @@ func (j *jsiiProxy_FunctionResource)SetReturns(val *string) { ) } -func (j *jsiiProxy_FunctionResource)SetSchema(val *string) { +func (j *jsiiProxy_FunctionResource) SetSchema(val *string) { if err := j.validateSetSchemaParameters(val); err != nil { panic(err) } @@ -789,7 +788,7 @@ func (j *jsiiProxy_FunctionResource)SetSchema(val *string) { ) } -func (j *jsiiProxy_FunctionResource)SetSecurityDefiner(val interface{}) { +func (j *jsiiProxy_FunctionResource) SetSecurityDefiner(val any) { if err := j.validateSetSecurityDefinerParameters(val); err != nil { panic(err) } @@ -800,7 +799,7 @@ func (j *jsiiProxy_FunctionResource)SetSecurityDefiner(val interface{}) { ) } -func (j *jsiiProxy_FunctionResource)SetStrict(val interface{}) { +func (j *jsiiProxy_FunctionResource) SetStrict(val any) { if err := j.validateSetStrictParameters(val); err != nil { panic(err) } @@ -811,7 +810,7 @@ func (j *jsiiProxy_FunctionResource)SetStrict(val interface{}) { ) } -func (j *jsiiProxy_FunctionResource)SetVolatility(val *string) { +func (j *jsiiProxy_FunctionResource) SetVolatility(val *string) { if err := j.validateSetVolatilityParameters(val); err != nil { panic(err) } @@ -834,7 +833,7 @@ func FunctionResource_GenerateConfigForImport(scope constructs.Construct, import _jsii_.StaticInvoke( "@cdktf/provider-postgresql.functionResource.FunctionResource", "generateConfigForImport", - []interface{}{scope, importToId, importFromId, provider}, + []any{scope, importToId, importFromId, provider}, &returns, ) @@ -858,7 +857,7 @@ func FunctionResource_GenerateConfigForImport(scope constructs.Construct, import // this type-testing method instead. // // Returns: true if `x` is an object created from a class which extends `Construct`. -func FunctionResource_IsConstruct(x interface{}) *bool { +func FunctionResource_IsConstruct(x any) *bool { _init_.Initialize() if err := validateFunctionResource_IsConstructParameters(x); err != nil { @@ -869,7 +868,7 @@ func FunctionResource_IsConstruct(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.functionResource.FunctionResource", "isConstruct", - []interface{}{x}, + []any{x}, &returns, ) @@ -877,7 +876,7 @@ func FunctionResource_IsConstruct(x interface{}) *bool { } // Experimental. -func FunctionResource_IsTerraformElement(x interface{}) *bool { +func FunctionResource_IsTerraformElement(x any) *bool { _init_.Initialize() if err := validateFunctionResource_IsTerraformElementParameters(x); err != nil { @@ -888,7 +887,7 @@ func FunctionResource_IsTerraformElement(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.functionResource.FunctionResource", "isTerraformElement", - []interface{}{x}, + []any{x}, &returns, ) @@ -896,7 +895,7 @@ func FunctionResource_IsTerraformElement(x interface{}) *bool { } // Experimental. -func FunctionResource_IsTerraformResource(x interface{}) *bool { +func FunctionResource_IsTerraformResource(x any) *bool { _init_.Initialize() if err := validateFunctionResource_IsTerraformResourceParameters(x); err != nil { @@ -907,7 +906,7 @@ func FunctionResource_IsTerraformResource(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.functionResource.FunctionResource", "isTerraformResource", - []interface{}{x}, + []any{x}, &returns, ) @@ -932,31 +931,31 @@ func (f *jsiiProxy_FunctionResource) AddMoveTarget(moveTarget *string) { _jsii_.InvokeVoid( f, "addMoveTarget", - []interface{}{moveTarget}, + []any{moveTarget}, ) } -func (f *jsiiProxy_FunctionResource) AddOverride(path *string, value interface{}) { +func (f *jsiiProxy_FunctionResource) AddOverride(path *string, value any) { if err := f.validateAddOverrideParameters(path, value); err != nil { panic(err) } _jsii_.InvokeVoid( f, "addOverride", - []interface{}{path, value}, + []any{path, value}, ) } -func (f *jsiiProxy_FunctionResource) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (f *jsiiProxy_FunctionResource) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := f.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( f, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -972,7 +971,7 @@ func (f *jsiiProxy_FunctionResource) GetBooleanAttribute(terraformAttribute *str _jsii_.Invoke( f, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -988,7 +987,7 @@ func (f *jsiiProxy_FunctionResource) GetBooleanMapAttribute(terraformAttribute * _jsii_.Invoke( f, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1004,7 +1003,7 @@ func (f *jsiiProxy_FunctionResource) GetListAttribute(terraformAttribute *string _jsii_.Invoke( f, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1020,7 +1019,7 @@ func (f *jsiiProxy_FunctionResource) GetNumberAttribute(terraformAttribute *stri _jsii_.Invoke( f, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1036,7 +1035,7 @@ func (f *jsiiProxy_FunctionResource) GetNumberListAttribute(terraformAttribute * _jsii_.Invoke( f, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1052,7 +1051,7 @@ func (f *jsiiProxy_FunctionResource) GetNumberMapAttribute(terraformAttribute *s _jsii_.Invoke( f, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1068,7 +1067,7 @@ func (f *jsiiProxy_FunctionResource) GetStringAttribute(terraformAttribute *stri _jsii_.Invoke( f, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1084,15 +1083,15 @@ func (f *jsiiProxy_FunctionResource) GetStringMapAttribute(terraformAttribute *s _jsii_.Invoke( f, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) return returns } -func (f *jsiiProxy_FunctionResource) HasResourceMove() interface{} { - var returns interface{} +func (f *jsiiProxy_FunctionResource) HasResourceMove() any { + var returns any _jsii_.Invoke( f, @@ -1111,7 +1110,7 @@ func (f *jsiiProxy_FunctionResource) ImportFrom(id *string, provider cdktf.Terra _jsii_.InvokeVoid( f, "importFrom", - []interface{}{id, provider}, + []any{id, provider}, ) } @@ -1124,7 +1123,7 @@ func (f *jsiiProxy_FunctionResource) InterpolationForAttribute(terraformAttribut _jsii_.Invoke( f, "interpolationForAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1138,18 +1137,18 @@ func (f *jsiiProxy_FunctionResource) MoveFromId(id *string) { _jsii_.InvokeVoid( f, "moveFromId", - []interface{}{id}, + []any{id}, ) } -func (f *jsiiProxy_FunctionResource) MoveTo(moveTarget *string, index interface{}) { +func (f *jsiiProxy_FunctionResource) MoveTo(moveTarget *string, index any) { if err := f.validateMoveToParameters(moveTarget, index); err != nil { panic(err) } _jsii_.InvokeVoid( f, "moveTo", - []interface{}{moveTarget, index}, + []any{moveTarget, index}, ) } @@ -1160,7 +1159,7 @@ func (f *jsiiProxy_FunctionResource) MoveToId(id *string) { _jsii_.InvokeVoid( f, "moveToId", - []interface{}{id}, + []any{id}, ) } @@ -1171,18 +1170,18 @@ func (f *jsiiProxy_FunctionResource) OverrideLogicalId(newLogicalId *string) { _jsii_.InvokeVoid( f, "overrideLogicalId", - []interface{}{newLogicalId}, + []any{newLogicalId}, ) } -func (f *jsiiProxy_FunctionResource) PutArg(value interface{}) { +func (f *jsiiProxy_FunctionResource) PutArg(value any) { if err := f.validatePutArgParameters(value); err != nil { panic(err) } _jsii_.InvokeVoid( f, "putArg", - []interface{}{value}, + []any{value}, ) } @@ -1282,8 +1281,8 @@ func (f *jsiiProxy_FunctionResource) ResetVolatility() { ) } -func (f *jsiiProxy_FunctionResource) SynthesizeAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (f *jsiiProxy_FunctionResource) SynthesizeAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( f, @@ -1295,8 +1294,8 @@ func (f *jsiiProxy_FunctionResource) SynthesizeAttributes() *map[string]interfac return returns } -func (f *jsiiProxy_FunctionResource) SynthesizeHclAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (f *jsiiProxy_FunctionResource) SynthesizeHclAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( f, @@ -1308,8 +1307,8 @@ func (f *jsiiProxy_FunctionResource) SynthesizeHclAttributes() *map[string]inter return returns } -func (f *jsiiProxy_FunctionResource) ToHclTerraform() interface{} { - var returns interface{} +func (f *jsiiProxy_FunctionResource) ToHclTerraform() any { + var returns any _jsii_.Invoke( f, @@ -1321,8 +1320,8 @@ func (f *jsiiProxy_FunctionResource) ToHclTerraform() interface{} { return returns } -func (f *jsiiProxy_FunctionResource) ToMetadata() interface{} { - var returns interface{} +func (f *jsiiProxy_FunctionResource) ToMetadata() any { + var returns any _jsii_.Invoke( f, @@ -1347,8 +1346,8 @@ func (f *jsiiProxy_FunctionResource) ToString() *string { return returns } -func (f *jsiiProxy_FunctionResource) ToTerraform() interface{} { - var returns interface{} +func (f *jsiiProxy_FunctionResource) ToTerraform() any { + var returns any _jsii_.Invoke( f, @@ -1359,4 +1358,3 @@ func (f *jsiiProxy_FunctionResource) ToTerraform() interface{} { return returns } - diff --git a/gen/postgresql/functionresource/FunctionResourceArgList.go b/gen/postgresql/functionresource/FunctionResourceArgList.go index 14db57a842..c7e76c1e51 100644 --- a/gen/postgresql/functionresource/FunctionResourceArgList.go +++ b/gen/postgresql/functionresource/FunctionResourceArgList.go @@ -17,8 +17,8 @@ type FunctionResourceArgList interface { CreationStack() *[]*string // Experimental. Fqn() *string - InternalValue() interface{} - SetInternalValue(val interface{}) + InternalValue() any + SetInternalValue(val any) // The attribute on the parent resource this class is referencing. TerraformAttribute() *string SetTerraformAttribute(val *string) @@ -38,7 +38,7 @@ type FunctionResourceArgList interface { Get(index *float64) FunctionResourceArgOutputReference // Produce the Token's value at resolution time. // Experimental. - Resolve(_context cdktf.IResolveContext) interface{} + Resolve(_context cdktf.IResolveContext) any // Return a string representation of this resolvable object. // // Returns a reversible string representation. @@ -71,8 +71,8 @@ func (j *jsiiProxy_FunctionResourceArgList) Fqn() *string { return returns } -func (j *jsiiProxy_FunctionResourceArgList) InternalValue() interface{} { - var returns interface{} +func (j *jsiiProxy_FunctionResourceArgList) InternalValue() any { + var returns any _jsii_.Get( j, "internalValue", @@ -111,7 +111,6 @@ func (j *jsiiProxy_FunctionResourceArgList) WrapsSet() *bool { return returns } - func NewFunctionResourceArgList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) FunctionResourceArgList { _init_.Initialize() @@ -122,7 +121,7 @@ func NewFunctionResourceArgList(terraformResource cdktf.IInterpolatingParent, te _jsii_.Create( "@cdktf/provider-postgresql.functionResource.FunctionResourceArgList", - []interface{}{terraformResource, terraformAttribute, wrapsSet}, + []any{terraformResource, terraformAttribute, wrapsSet}, &j, ) @@ -134,12 +133,12 @@ func NewFunctionResourceArgList_Override(f FunctionResourceArgList, terraformRes _jsii_.Create( "@cdktf/provider-postgresql.functionResource.FunctionResourceArgList", - []interface{}{terraformResource, terraformAttribute, wrapsSet}, + []any{terraformResource, terraformAttribute, wrapsSet}, f, ) } -func (j *jsiiProxy_FunctionResourceArgList)SetInternalValue(val interface{}) { +func (j *jsiiProxy_FunctionResourceArgList) SetInternalValue(val any) { if err := j.validateSetInternalValueParameters(val); err != nil { panic(err) } @@ -150,7 +149,7 @@ func (j *jsiiProxy_FunctionResourceArgList)SetInternalValue(val interface{}) { ) } -func (j *jsiiProxy_FunctionResourceArgList)SetTerraformAttribute(val *string) { +func (j *jsiiProxy_FunctionResourceArgList) SetTerraformAttribute(val *string) { if err := j.validateSetTerraformAttributeParameters(val); err != nil { panic(err) } @@ -161,7 +160,7 @@ func (j *jsiiProxy_FunctionResourceArgList)SetTerraformAttribute(val *string) { ) } -func (j *jsiiProxy_FunctionResourceArgList)SetTerraformResource(val cdktf.IInterpolatingParent) { +func (j *jsiiProxy_FunctionResourceArgList) SetTerraformResource(val cdktf.IInterpolatingParent) { if err := j.validateSetTerraformResourceParameters(val); err != nil { panic(err) } @@ -172,7 +171,7 @@ func (j *jsiiProxy_FunctionResourceArgList)SetTerraformResource(val cdktf.IInter ) } -func (j *jsiiProxy_FunctionResourceArgList)SetWrapsSet(val *bool) { +func (j *jsiiProxy_FunctionResourceArgList) SetWrapsSet(val *bool) { if err := j.validateSetWrapsSetParameters(val); err != nil { panic(err) } @@ -192,7 +191,7 @@ func (f *jsiiProxy_FunctionResourceArgList) AllWithMapKey(mapKeyAttributeName *s _jsii_.Invoke( f, "allWithMapKey", - []interface{}{mapKeyAttributeName}, + []any{mapKeyAttributeName}, &returns, ) @@ -221,23 +220,23 @@ func (f *jsiiProxy_FunctionResourceArgList) Get(index *float64) FunctionResource _jsii_.Invoke( f, "get", - []interface{}{index}, + []any{index}, &returns, ) return returns } -func (f *jsiiProxy_FunctionResourceArgList) Resolve(_context cdktf.IResolveContext) interface{} { +func (f *jsiiProxy_FunctionResourceArgList) Resolve(_context cdktf.IResolveContext) any { if err := f.validateResolveParameters(_context); err != nil { panic(err) } - var returns interface{} + var returns any _jsii_.Invoke( f, "resolve", - []interface{}{_context}, + []any{_context}, &returns, ) @@ -256,4 +255,3 @@ func (f *jsiiProxy_FunctionResourceArgList) ToString() *string { return returns } - diff --git a/gen/postgresql/functionresource/FunctionResourceArgList__checks.go b/gen/postgresql/functionresource/FunctionResourceArgList__checks.go index d554878427..d626e603a4 100644 --- a/gen/postgresql/functionresource/FunctionResourceArgList__checks.go +++ b/gen/postgresql/functionresource/FunctionResourceArgList__checks.go @@ -34,7 +34,7 @@ func (f *jsiiProxy_FunctionResourceArgList) validateResolveParameters(_context c return nil } -func (j *jsiiProxy_FunctionResourceArgList) validateSetInternalValueParameters(val interface{}) error { +func (j *jsiiProxy_FunctionResourceArgList) validateSetInternalValueParameters(val any) error { switch val.(type) { case cdktf.IResolvable: // ok @@ -101,4 +101,3 @@ func validateNewFunctionResourceArgListParameters(terraformResource cdktf.IInter return nil } - diff --git a/gen/postgresql/functionresource/FunctionResourceArgOutputReference.go b/gen/postgresql/functionresource/FunctionResourceArgOutputReference.go index 80d2d4fc66..5f2fe74458 100644 --- a/gen/postgresql/functionresource/FunctionResourceArgOutputReference.go +++ b/gen/postgresql/functionresource/FunctionResourceArgOutputReference.go @@ -12,9 +12,9 @@ type FunctionResourceArgOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. - ComplexObjectIndex() interface{} + ComplexObjectIndex() any // Experimental. - SetComplexObjectIndex(val interface{}) + SetComplexObjectIndex(val any) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool @@ -30,8 +30,8 @@ type FunctionResourceArgOutputReference interface { DefaultInput() *string // Experimental. Fqn() *string - InternalValue() interface{} - SetInternalValue(val interface{}) + InternalValue() any + SetInternalValue(val any) Mode() *string SetMode(val *string) ModeInput() *string @@ -52,7 +52,7 @@ type FunctionResourceArgOutputReference interface { // Experimental. ComputeFqn() *string // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -78,7 +78,7 @@ type FunctionResourceArgOutputReference interface { ResetName() // Produce the Token's value at resolution time. // Experimental. - Resolve(_context cdktf.IResolveContext) interface{} + Resolve(_context cdktf.IResolveContext) any // Return a string representation of this resolvable object. // // Returns a reversible string representation. @@ -91,8 +91,8 @@ type jsiiProxy_FunctionResourceArgOutputReference struct { internal.Type__cdktfComplexObject } -func (j *jsiiProxy_FunctionResourceArgOutputReference) ComplexObjectIndex() interface{} { - var returns interface{} +func (j *jsiiProxy_FunctionResourceArgOutputReference) ComplexObjectIndex() any { + var returns any _jsii_.Get( j, "complexObjectIndex", @@ -151,8 +151,8 @@ func (j *jsiiProxy_FunctionResourceArgOutputReference) Fqn() *string { return returns } -func (j *jsiiProxy_FunctionResourceArgOutputReference) InternalValue() interface{} { - var returns interface{} +func (j *jsiiProxy_FunctionResourceArgOutputReference) InternalValue() any { + var returns any _jsii_.Get( j, "internalValue", @@ -241,7 +241,6 @@ func (j *jsiiProxy_FunctionResourceArgOutputReference) TypeInput() *string { return returns } - func NewFunctionResourceArgOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) FunctionResourceArgOutputReference { _init_.Initialize() @@ -252,7 +251,7 @@ func NewFunctionResourceArgOutputReference(terraformResource cdktf.IInterpolatin _jsii_.Create( "@cdktf/provider-postgresql.functionResource.FunctionResourceArgOutputReference", - []interface{}{terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet}, + []any{terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet}, &j, ) @@ -264,12 +263,12 @@ func NewFunctionResourceArgOutputReference_Override(f FunctionResourceArgOutputR _jsii_.Create( "@cdktf/provider-postgresql.functionResource.FunctionResourceArgOutputReference", - []interface{}{terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet}, + []any{terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet}, f, ) } -func (j *jsiiProxy_FunctionResourceArgOutputReference)SetComplexObjectIndex(val interface{}) { +func (j *jsiiProxy_FunctionResourceArgOutputReference) SetComplexObjectIndex(val any) { if err := j.validateSetComplexObjectIndexParameters(val); err != nil { panic(err) } @@ -280,7 +279,7 @@ func (j *jsiiProxy_FunctionResourceArgOutputReference)SetComplexObjectIndex(val ) } -func (j *jsiiProxy_FunctionResourceArgOutputReference)SetComplexObjectIsFromSet(val *bool) { +func (j *jsiiProxy_FunctionResourceArgOutputReference) SetComplexObjectIsFromSet(val *bool) { if err := j.validateSetComplexObjectIsFromSetParameters(val); err != nil { panic(err) } @@ -291,7 +290,7 @@ func (j *jsiiProxy_FunctionResourceArgOutputReference)SetComplexObjectIsFromSet( ) } -func (j *jsiiProxy_FunctionResourceArgOutputReference)SetDefault(val *string) { +func (j *jsiiProxy_FunctionResourceArgOutputReference) SetDefault(val *string) { if err := j.validateSetDefaultParameters(val); err != nil { panic(err) } @@ -302,7 +301,7 @@ func (j *jsiiProxy_FunctionResourceArgOutputReference)SetDefault(val *string) { ) } -func (j *jsiiProxy_FunctionResourceArgOutputReference)SetInternalValue(val interface{}) { +func (j *jsiiProxy_FunctionResourceArgOutputReference) SetInternalValue(val any) { if err := j.validateSetInternalValueParameters(val); err != nil { panic(err) } @@ -313,7 +312,7 @@ func (j *jsiiProxy_FunctionResourceArgOutputReference)SetInternalValue(val inter ) } -func (j *jsiiProxy_FunctionResourceArgOutputReference)SetMode(val *string) { +func (j *jsiiProxy_FunctionResourceArgOutputReference) SetMode(val *string) { if err := j.validateSetModeParameters(val); err != nil { panic(err) } @@ -324,7 +323,7 @@ func (j *jsiiProxy_FunctionResourceArgOutputReference)SetMode(val *string) { ) } -func (j *jsiiProxy_FunctionResourceArgOutputReference)SetName(val *string) { +func (j *jsiiProxy_FunctionResourceArgOutputReference) SetName(val *string) { if err := j.validateSetNameParameters(val); err != nil { panic(err) } @@ -335,7 +334,7 @@ func (j *jsiiProxy_FunctionResourceArgOutputReference)SetName(val *string) { ) } -func (j *jsiiProxy_FunctionResourceArgOutputReference)SetTerraformAttribute(val *string) { +func (j *jsiiProxy_FunctionResourceArgOutputReference) SetTerraformAttribute(val *string) { if err := j.validateSetTerraformAttributeParameters(val); err != nil { panic(err) } @@ -346,7 +345,7 @@ func (j *jsiiProxy_FunctionResourceArgOutputReference)SetTerraformAttribute(val ) } -func (j *jsiiProxy_FunctionResourceArgOutputReference)SetTerraformResource(val cdktf.IInterpolatingParent) { +func (j *jsiiProxy_FunctionResourceArgOutputReference) SetTerraformResource(val cdktf.IInterpolatingParent) { if err := j.validateSetTerraformResourceParameters(val); err != nil { panic(err) } @@ -357,7 +356,7 @@ func (j *jsiiProxy_FunctionResourceArgOutputReference)SetTerraformResource(val c ) } -func (j *jsiiProxy_FunctionResourceArgOutputReference)SetType(val *string) { +func (j *jsiiProxy_FunctionResourceArgOutputReference) SetType(val *string) { if err := j.validateSetTypeParameters(val); err != nil { panic(err) } @@ -381,16 +380,16 @@ func (f *jsiiProxy_FunctionResourceArgOutputReference) ComputeFqn() *string { return returns } -func (f *jsiiProxy_FunctionResourceArgOutputReference) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (f *jsiiProxy_FunctionResourceArgOutputReference) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := f.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( f, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -406,7 +405,7 @@ func (f *jsiiProxy_FunctionResourceArgOutputReference) GetBooleanAttribute(terra _jsii_.Invoke( f, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -422,7 +421,7 @@ func (f *jsiiProxy_FunctionResourceArgOutputReference) GetBooleanMapAttribute(te _jsii_.Invoke( f, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -438,7 +437,7 @@ func (f *jsiiProxy_FunctionResourceArgOutputReference) GetListAttribute(terrafor _jsii_.Invoke( f, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -454,7 +453,7 @@ func (f *jsiiProxy_FunctionResourceArgOutputReference) GetNumberAttribute(terraf _jsii_.Invoke( f, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -470,7 +469,7 @@ func (f *jsiiProxy_FunctionResourceArgOutputReference) GetNumberListAttribute(te _jsii_.Invoke( f, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -486,7 +485,7 @@ func (f *jsiiProxy_FunctionResourceArgOutputReference) GetNumberMapAttribute(ter _jsii_.Invoke( f, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -502,7 +501,7 @@ func (f *jsiiProxy_FunctionResourceArgOutputReference) GetStringAttribute(terraf _jsii_.Invoke( f, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -518,7 +517,7 @@ func (f *jsiiProxy_FunctionResourceArgOutputReference) GetStringMapAttribute(ter _jsii_.Invoke( f, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -547,7 +546,7 @@ func (f *jsiiProxy_FunctionResourceArgOutputReference) InterpolationForAttribute _jsii_.Invoke( f, "interpolationForAttribute", - []interface{}{property}, + []any{property}, &returns, ) @@ -578,16 +577,16 @@ func (f *jsiiProxy_FunctionResourceArgOutputReference) ResetName() { ) } -func (f *jsiiProxy_FunctionResourceArgOutputReference) Resolve(_context cdktf.IResolveContext) interface{} { +func (f *jsiiProxy_FunctionResourceArgOutputReference) Resolve(_context cdktf.IResolveContext) any { if err := f.validateResolveParameters(_context); err != nil { panic(err) } - var returns interface{} + var returns any _jsii_.Invoke( f, "resolve", - []interface{}{_context}, + []any{_context}, &returns, ) @@ -606,4 +605,3 @@ func (f *jsiiProxy_FunctionResourceArgOutputReference) ToString() *string { return returns } - diff --git a/gen/postgresql/functionresource/FunctionResourceArgOutputReference__checks.go b/gen/postgresql/functionresource/FunctionResourceArgOutputReference__checks.go index 4bac051a8b..6a1266f7ea 100644 --- a/gen/postgresql/functionresource/FunctionResourceArgOutputReference__checks.go +++ b/gen/postgresql/functionresource/FunctionResourceArgOutputReference__checks.go @@ -98,7 +98,7 @@ func (f *jsiiProxy_FunctionResourceArgOutputReference) validateResolveParameters return nil } -func (j *jsiiProxy_FunctionResourceArgOutputReference) validateSetComplexObjectIndexParameters(val interface{}) error { +func (j *jsiiProxy_FunctionResourceArgOutputReference) validateSetComplexObjectIndexParameters(val any) error { switch val.(type) { case *string: // ok @@ -171,7 +171,7 @@ func (j *jsiiProxy_FunctionResourceArgOutputReference) validateSetDefaultParamet return nil } -func (j *jsiiProxy_FunctionResourceArgOutputReference) validateSetInternalValueParameters(val interface{}) error { +func (j *jsiiProxy_FunctionResourceArgOutputReference) validateSetInternalValueParameters(val any) error { switch val.(type) { case cdktf.IResolvable: // ok @@ -254,4 +254,3 @@ func validateNewFunctionResourceArgOutputReferenceParameters(terraformResource c return nil } - diff --git a/gen/postgresql/functionresource/FunctionResourceConfig.go b/gen/postgresql/functionresource/FunctionResourceConfig.go index 29e29a8bdd..c0a5bdabb0 100644 --- a/gen/postgresql/functionresource/FunctionResourceConfig.go +++ b/gen/postgresql/functionresource/FunctionResourceConfig.go @@ -6,9 +6,9 @@ import ( type FunctionResourceConfig struct { // Experimental. - Connection interface{} `field:"optional" json:"connection" yaml:"connection"` + Connection any `field:"optional" json:"connection" yaml:"connection"` // Experimental. - Count interface{} `field:"optional" json:"count" yaml:"count"` + Count any `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. @@ -18,7 +18,7 @@ type FunctionResourceConfig struct { // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. - Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` + Provisioners *[]any `field:"optional" json:"provisioners" yaml:"provisioners"` // Body of the function. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/function#body FunctionResource#body} @@ -30,7 +30,7 @@ type FunctionResourceConfig struct { // arg block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/function#arg FunctionResource#arg} - Arg interface{} `field:"optional" json:"arg" yaml:"arg"` + Arg any `field:"optional" json:"arg" yaml:"arg"` // The database where the function is located. If not specified, the provider default database is used. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/function#database FunctionResource#database} @@ -38,7 +38,7 @@ type FunctionResourceConfig struct { // Automatically drop objects that depend on the function (such as operators or triggers), and in turn all objects that depend on those objects. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/function#drop_cascade FunctionResource#drop_cascade} - DropCascade interface{} `field:"optional" json:"dropCascade" yaml:"dropCascade"` + DropCascade any `field:"optional" json:"dropCascade" yaml:"dropCascade"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/function#id FunctionResource#id}. // // Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. @@ -63,14 +63,13 @@ type FunctionResourceConfig struct { // If the function should execute with the permissions of the function owner instead of the permissions of the caller. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/function#security_definer FunctionResource#security_definer} - SecurityDefiner interface{} `field:"optional" json:"securityDefiner" yaml:"securityDefiner"` + SecurityDefiner any `field:"optional" json:"securityDefiner" yaml:"securityDefiner"` // If the function should always return NULL if any of it's inputs is NULL. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/function#strict FunctionResource#strict} - Strict interface{} `field:"optional" json:"strict" yaml:"strict"` + Strict any `field:"optional" json:"strict" yaml:"strict"` // Volatility of the function. One of: VOLATILE, STABLE, IMMUTABLE. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/function#volatility FunctionResource#volatility} Volatility *string `field:"optional" json:"volatility" yaml:"volatility"` } - diff --git a/gen/postgresql/functionresource/FunctionResource__checks.go b/gen/postgresql/functionresource/FunctionResource__checks.go index f15bcded2e..bc6509141e 100644 --- a/gen/postgresql/functionresource/FunctionResource__checks.go +++ b/gen/postgresql/functionresource/FunctionResource__checks.go @@ -19,7 +19,7 @@ func (f *jsiiProxy_FunctionResource) validateAddMoveTargetParameters(moveTarget return nil } -func (f *jsiiProxy_FunctionResource) validateAddOverrideParameters(path *string, value interface{}) error { +func (f *jsiiProxy_FunctionResource) validateAddOverrideParameters(path *string, value any) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } @@ -127,7 +127,7 @@ func (f *jsiiProxy_FunctionResource) validateMoveFromIdParameters(id *string) er return nil } -func (f *jsiiProxy_FunctionResource) validateMoveToParameters(moveTarget *string, index interface{}) error { +func (f *jsiiProxy_FunctionResource) validateMoveToParameters(moveTarget *string, index any) error { if moveTarget == nil { return fmt.Errorf("parameter moveTarget is required, but nil was provided") } @@ -204,7 +204,7 @@ func (f *jsiiProxy_FunctionResource) validateOverrideLogicalIdParameters(newLogi return nil } -func (f *jsiiProxy_FunctionResource) validatePutArgParameters(value interface{}) error { +func (f *jsiiProxy_FunctionResource) validatePutArgParameters(value any) error { if value == nil { return fmt.Errorf("parameter value is required, but nil was provided") } @@ -251,7 +251,7 @@ func validateFunctionResource_GenerateConfigForImportParameters(scope constructs return nil } -func validateFunctionResource_IsConstructParameters(x interface{}) error { +func validateFunctionResource_IsConstructParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -259,7 +259,7 @@ func validateFunctionResource_IsConstructParameters(x interface{}) error { return nil } -func validateFunctionResource_IsTerraformElementParameters(x interface{}) error { +func validateFunctionResource_IsTerraformElementParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -267,7 +267,7 @@ func validateFunctionResource_IsTerraformElementParameters(x interface{}) error return nil } -func validateFunctionResource_IsTerraformResourceParameters(x interface{}) error { +func validateFunctionResource_IsTerraformResourceParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -283,7 +283,7 @@ func (j *jsiiProxy_FunctionResource) validateSetBodyParameters(val *string) erro return nil } -func (j *jsiiProxy_FunctionResource) validateSetConnectionParameters(val interface{}) error { +func (j *jsiiProxy_FunctionResource) validateSetConnectionParameters(val any) error { switch val.(type) { case *cdktf.SSHProvisionerConnection: val := val.(*cdktf.SSHProvisionerConnection) @@ -316,7 +316,7 @@ func (j *jsiiProxy_FunctionResource) validateSetConnectionParameters(val interfa return nil } -func (j *jsiiProxy_FunctionResource) validateSetCountParameters(val interface{}) error { +func (j *jsiiProxy_FunctionResource) validateSetCountParameters(val any) error { switch val.(type) { case *float64: // ok @@ -381,7 +381,7 @@ func (j *jsiiProxy_FunctionResource) validateSetDatabaseParameters(val *string) return nil } -func (j *jsiiProxy_FunctionResource) validateSetDropCascadeParameters(val interface{}) error { +func (j *jsiiProxy_FunctionResource) validateSetDropCascadeParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -441,7 +441,7 @@ func (j *jsiiProxy_FunctionResource) validateSetParallelParameters(val *string) return nil } -func (j *jsiiProxy_FunctionResource) validateSetProvisionersParameters(val *[]interface{}) error { +func (j *jsiiProxy_FunctionResource) validateSetProvisionersParameters(val *[]any) error { for idx_97dfc6, v := range *val { switch v.(type) { case *cdktf.FileProvisioner: @@ -503,7 +503,7 @@ func (j *jsiiProxy_FunctionResource) validateSetSchemaParameters(val *string) er return nil } -func (j *jsiiProxy_FunctionResource) validateSetSecurityDefinerParameters(val interface{}) error { +func (j *jsiiProxy_FunctionResource) validateSetSecurityDefinerParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -523,7 +523,7 @@ func (j *jsiiProxy_FunctionResource) validateSetSecurityDefinerParameters(val in return nil } -func (j *jsiiProxy_FunctionResource) validateSetStrictParameters(val interface{}) error { +func (j *jsiiProxy_FunctionResource) validateSetStrictParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -569,4 +569,3 @@ func validateNewFunctionResourceParameters(scope constructs.Construct, id *strin return nil } - diff --git a/gen/postgresql/functionresource/main.go b/gen/postgresql/functionresource/main.go index c6027a87d7..c9e2372339 100644 --- a/gen/postgresql/functionresource/main.go +++ b/gen/postgresql/functionresource/main.go @@ -9,7 +9,7 @@ import ( func init() { _jsii_.RegisterClass( "@cdktf/provider-postgresql.functionResource.FunctionResource", - reflect.TypeOf((*FunctionResource)(nil)).Elem(), + reflect.TypeFor[FunctionResource](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "addMoveTarget", GoMethod: "AddMoveTarget"}, _jsii_.MemberMethod{JsiiMethod: "addOverride", GoMethod: "AddOverride"}, @@ -91,7 +91,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "volatility", GoGetter: "Volatility"}, _jsii_.MemberProperty{JsiiProperty: "volatilityInput", GoGetter: "VolatilityInput"}, }, - func() interface{} { + func() any { j := jsiiProxy_FunctionResource{} _jsii_.InitJsiiProxy(&j.Type__cdktfTerraformResource) return &j @@ -99,11 +99,11 @@ func init() { ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.functionResource.FunctionResourceArg", - reflect.TypeOf((*FunctionResourceArg)(nil)).Elem(), + reflect.TypeFor[FunctionResourceArg](), ) _jsii_.RegisterClass( "@cdktf/provider-postgresql.functionResource.FunctionResourceArgList", - reflect.TypeOf((*FunctionResourceArgList)(nil)).Elem(), + reflect.TypeFor[FunctionResourceArgList](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "allWithMapKey", GoMethod: "AllWithMapKey"}, _jsii_.MemberMethod{JsiiMethod: "computeFqn", GoMethod: "ComputeFqn"}, @@ -117,7 +117,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "toString", GoMethod: "ToString"}, _jsii_.MemberProperty{JsiiProperty: "wrapsSet", GoGetter: "WrapsSet"}, }, - func() interface{} { + func() any { j := jsiiProxy_FunctionResourceArgList{} _jsii_.InitJsiiProxy(&j.Type__cdktfComplexList) return &j @@ -125,7 +125,7 @@ func init() { ) _jsii_.RegisterClass( "@cdktf/provider-postgresql.functionResource.FunctionResourceArgOutputReference", - reflect.TypeOf((*FunctionResourceArgOutputReference)(nil)).Elem(), + reflect.TypeFor[FunctionResourceArgOutputReference](), []_jsii_.Member{ _jsii_.MemberProperty{JsiiProperty: "complexObjectIndex", GoGetter: "ComplexObjectIndex"}, _jsii_.MemberProperty{JsiiProperty: "complexObjectIsFromSet", GoGetter: "ComplexObjectIsFromSet"}, @@ -160,7 +160,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "type", GoGetter: "Type"}, _jsii_.MemberProperty{JsiiProperty: "typeInput", GoGetter: "TypeInput"}, }, - func() interface{} { + func() any { j := jsiiProxy_FunctionResourceArgOutputReference{} _jsii_.InitJsiiProxy(&j.Type__cdktfComplexObject) return &j @@ -168,6 +168,6 @@ func init() { ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.functionResource.FunctionResourceConfig", - reflect.TypeOf((*FunctionResourceConfig)(nil)).Elem(), + reflect.TypeFor[FunctionResourceConfig](), ) } diff --git a/gen/postgresql/go.mod b/gen/postgresql/go.mod index 3f0082445d..da7879dfee 100644 --- a/gen/postgresql/go.mod +++ b/gen/postgresql/go.mod @@ -1,9 +1,11 @@ module github.com/sourcegraph/managed-services-platform-cdktf/gen/postgresql -go 1.18 +go 1.26.4 require ( github.com/aws/constructs-go/constructs/v10 v10.1.167 github.com/aws/jsii-runtime-go v1.95.0 github.com/hashicorp/terraform-cdk-go/cdktf v0.20.7 ) + +require github.com/Masterminds/semver/v3 v3.2.1 // indirect diff --git a/gen/postgresql/go.sum b/gen/postgresql/go.sum new file mode 100644 index 0000000000..c33b5c02be --- /dev/null +++ b/gen/postgresql/go.sum @@ -0,0 +1,8 @@ +github.com/Masterminds/semver/v3 v3.2.1 h1:RN9w6+7QoMeJVGyfmbcgs28Br8cvmnucEXnY0rYXWg0= +github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= +github.com/aws/constructs-go/constructs/v10 v10.1.167 h1:9qy6KEHleT8/4UDSTspRRd82h+MKDxcCqwEG3R23Tyo= +github.com/aws/constructs-go/constructs/v10 v10.1.167/go.mod h1:UXHdJzEYgQPF75bdwT+sWUqMKhXQgW/65MIxFI/ulmE= +github.com/aws/jsii-runtime-go v1.95.0 h1:I43Ye2AI8YNul6aWgtsvE76Vq6K6OzDEnZa/3g+sNtM= +github.com/aws/jsii-runtime-go v1.95.0/go.mod h1:ltYD/GbXiTKFeEUn03Ypwhl75N1Rwj4G2094XHjc+LM= +github.com/hashicorp/terraform-cdk-go/cdktf v0.20.7 h1:2qYAJMPlFg4zU8TfZWDa3nyaMIHX6GHQuZnliCosXCs= +github.com/hashicorp/terraform-cdk-go/cdktf v0.20.7/go.mod h1:wAVKV4pDFnayGSCerTah8NQTIcNvi6HGI5fhRoCX3Zw= diff --git a/gen/postgresql/grant/Grant.go b/gen/postgresql/grant/Grant.go index c4f7d8c295..1ca1c7a585 100644 --- a/gen/postgresql/grant/Grant.go +++ b/gen/postgresql/grant/Grant.go @@ -18,15 +18,15 @@ type Grant interface { SetColumns(val *[]*string) ColumnsInput() *[]*string // Experimental. - Connection() interface{} + Connection() any // Experimental. - SetConnection(val interface{}) + SetConnection(val any) // Experimental. - ConstructNodeMetadata() *map[string]interface{} + ConstructNodeMetadata() *map[string]any // Experimental. - Count() interface{} + Count() any // Experimental. - SetCount(val interface{}) + SetCount(val any) Database() *string SetDatabase(val *string) DatabaseInput() *string @@ -65,11 +65,11 @@ type Grant interface { // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. - Provisioners() *[]interface{} + Provisioners() *[]any // Experimental. - SetProvisioners(val *[]interface{}) + SetProvisioners(val *[]any) // Experimental. - RawOverrides() interface{} + RawOverrides() any Role() *string SetRole(val *string) RoleInput() *string @@ -79,19 +79,19 @@ type Grant interface { // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. - TerraformMetaArguments() *map[string]interface{} + TerraformMetaArguments() *map[string]any // Experimental. TerraformResourceType() *string - WithGrantOption() interface{} - SetWithGrantOption(val interface{}) - WithGrantOptionInput() interface{} + WithGrantOption() any + SetWithGrantOption(val any) + WithGrantOptionInput() any // Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. // Experimental. AddMoveTarget(moveTarget *string) // Experimental. - AddOverride(path *string, value interface{}) + AddOverride(path *string, value any) // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -109,7 +109,7 @@ type Grant interface { // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. - HasResourceMove() interface{} + HasResourceMove() any // Experimental. ImportFrom(id *string, provider cdktf.TerraformProvider) // Experimental. @@ -121,7 +121,7 @@ type Grant interface { MoveFromId(id *string) // Moves this resource to the target resource given by moveTarget. // Experimental. - MoveTo(moveTarget *string, index interface{}) + MoveTo(moveTarget *string, index any) // Moves this resource to the resource corresponding to "id". // Experimental. MoveToId(id *string) @@ -136,17 +136,17 @@ type Grant interface { ResetOverrideLogicalId() ResetSchema() ResetWithGrantOption() - SynthesizeAttributes() *map[string]interface{} - SynthesizeHclAttributes() *map[string]interface{} + SynthesizeAttributes() *map[string]any + SynthesizeHclAttributes() *map[string]any // Experimental. - ToHclTerraform() interface{} + ToHclTerraform() any // Experimental. - ToMetadata() interface{} + ToMetadata() any // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. - ToTerraform() interface{} + ToTerraform() any } // The jsii proxy struct for Grant @@ -184,8 +184,8 @@ func (j *jsiiProxy_Grant) ColumnsInput() *[]*string { return returns } -func (j *jsiiProxy_Grant) Connection() interface{} { - var returns interface{} +func (j *jsiiProxy_Grant) Connection() any { + var returns any _jsii_.Get( j, "connection", @@ -194,8 +194,8 @@ func (j *jsiiProxy_Grant) Connection() interface{} { return returns } -func (j *jsiiProxy_Grant) ConstructNodeMetadata() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_Grant) ConstructNodeMetadata() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "constructNodeMetadata", @@ -204,8 +204,8 @@ func (j *jsiiProxy_Grant) ConstructNodeMetadata() *map[string]interface{} { return returns } -func (j *jsiiProxy_Grant) Count() interface{} { - var returns interface{} +func (j *jsiiProxy_Grant) Count() any { + var returns any _jsii_.Get( j, "count", @@ -384,8 +384,8 @@ func (j *jsiiProxy_Grant) Provider() cdktf.TerraformProvider { return returns } -func (j *jsiiProxy_Grant) Provisioners() *[]interface{} { - var returns *[]interface{} +func (j *jsiiProxy_Grant) Provisioners() *[]any { + var returns *[]any _jsii_.Get( j, "provisioners", @@ -394,8 +394,8 @@ func (j *jsiiProxy_Grant) Provisioners() *[]interface{} { return returns } -func (j *jsiiProxy_Grant) RawOverrides() interface{} { - var returns interface{} +func (j *jsiiProxy_Grant) RawOverrides() any { + var returns any _jsii_.Get( j, "rawOverrides", @@ -454,8 +454,8 @@ func (j *jsiiProxy_Grant) TerraformGeneratorMetadata() *cdktf.TerraformProviderG return returns } -func (j *jsiiProxy_Grant) TerraformMetaArguments() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_Grant) TerraformMetaArguments() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "terraformMetaArguments", @@ -474,8 +474,8 @@ func (j *jsiiProxy_Grant) TerraformResourceType() *string { return returns } -func (j *jsiiProxy_Grant) WithGrantOption() interface{} { - var returns interface{} +func (j *jsiiProxy_Grant) WithGrantOption() any { + var returns any _jsii_.Get( j, "withGrantOption", @@ -484,8 +484,8 @@ func (j *jsiiProxy_Grant) WithGrantOption() interface{} { return returns } -func (j *jsiiProxy_Grant) WithGrantOptionInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Grant) WithGrantOptionInput() any { + var returns any _jsii_.Get( j, "withGrantOptionInput", @@ -494,7 +494,6 @@ func (j *jsiiProxy_Grant) WithGrantOptionInput() interface{} { return returns } - // Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/grant postgresql_grant} Resource. func NewGrant(scope constructs.Construct, id *string, config *GrantConfig) Grant { _init_.Initialize() @@ -506,7 +505,7 @@ func NewGrant(scope constructs.Construct, id *string, config *GrantConfig) Grant _jsii_.Create( "@cdktf/provider-postgresql.grant.Grant", - []interface{}{scope, id, config}, + []any{scope, id, config}, &j, ) @@ -519,12 +518,12 @@ func NewGrant_Override(g Grant, scope constructs.Construct, id *string, config * _jsii_.Create( "@cdktf/provider-postgresql.grant.Grant", - []interface{}{scope, id, config}, + []any{scope, id, config}, g, ) } -func (j *jsiiProxy_Grant)SetColumns(val *[]*string) { +func (j *jsiiProxy_Grant) SetColumns(val *[]*string) { if err := j.validateSetColumnsParameters(val); err != nil { panic(err) } @@ -535,7 +534,7 @@ func (j *jsiiProxy_Grant)SetColumns(val *[]*string) { ) } -func (j *jsiiProxy_Grant)SetConnection(val interface{}) { +func (j *jsiiProxy_Grant) SetConnection(val any) { if err := j.validateSetConnectionParameters(val); err != nil { panic(err) } @@ -546,7 +545,7 @@ func (j *jsiiProxy_Grant)SetConnection(val interface{}) { ) } -func (j *jsiiProxy_Grant)SetCount(val interface{}) { +func (j *jsiiProxy_Grant) SetCount(val any) { if err := j.validateSetCountParameters(val); err != nil { panic(err) } @@ -557,7 +556,7 @@ func (j *jsiiProxy_Grant)SetCount(val interface{}) { ) } -func (j *jsiiProxy_Grant)SetDatabase(val *string) { +func (j *jsiiProxy_Grant) SetDatabase(val *string) { if err := j.validateSetDatabaseParameters(val); err != nil { panic(err) } @@ -568,7 +567,7 @@ func (j *jsiiProxy_Grant)SetDatabase(val *string) { ) } -func (j *jsiiProxy_Grant)SetDependsOn(val *[]*string) { +func (j *jsiiProxy_Grant) SetDependsOn(val *[]*string) { _jsii_.Set( j, "dependsOn", @@ -576,7 +575,7 @@ func (j *jsiiProxy_Grant)SetDependsOn(val *[]*string) { ) } -func (j *jsiiProxy_Grant)SetForEach(val cdktf.ITerraformIterator) { +func (j *jsiiProxy_Grant) SetForEach(val cdktf.ITerraformIterator) { _jsii_.Set( j, "forEach", @@ -584,7 +583,7 @@ func (j *jsiiProxy_Grant)SetForEach(val cdktf.ITerraformIterator) { ) } -func (j *jsiiProxy_Grant)SetId(val *string) { +func (j *jsiiProxy_Grant) SetId(val *string) { if err := j.validateSetIdParameters(val); err != nil { panic(err) } @@ -595,7 +594,7 @@ func (j *jsiiProxy_Grant)SetId(val *string) { ) } -func (j *jsiiProxy_Grant)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { +func (j *jsiiProxy_Grant) SetLifecycle(val *cdktf.TerraformResourceLifecycle) { if err := j.validateSetLifecycleParameters(val); err != nil { panic(err) } @@ -606,7 +605,7 @@ func (j *jsiiProxy_Grant)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { ) } -func (j *jsiiProxy_Grant)SetObjects(val *[]*string) { +func (j *jsiiProxy_Grant) SetObjects(val *[]*string) { if err := j.validateSetObjectsParameters(val); err != nil { panic(err) } @@ -617,7 +616,7 @@ func (j *jsiiProxy_Grant)SetObjects(val *[]*string) { ) } -func (j *jsiiProxy_Grant)SetObjectType(val *string) { +func (j *jsiiProxy_Grant) SetObjectType(val *string) { if err := j.validateSetObjectTypeParameters(val); err != nil { panic(err) } @@ -628,7 +627,7 @@ func (j *jsiiProxy_Grant)SetObjectType(val *string) { ) } -func (j *jsiiProxy_Grant)SetPrivileges(val *[]*string) { +func (j *jsiiProxy_Grant) SetPrivileges(val *[]*string) { if err := j.validateSetPrivilegesParameters(val); err != nil { panic(err) } @@ -639,7 +638,7 @@ func (j *jsiiProxy_Grant)SetPrivileges(val *[]*string) { ) } -func (j *jsiiProxy_Grant)SetProvider(val cdktf.TerraformProvider) { +func (j *jsiiProxy_Grant) SetProvider(val cdktf.TerraformProvider) { _jsii_.Set( j, "provider", @@ -647,7 +646,7 @@ func (j *jsiiProxy_Grant)SetProvider(val cdktf.TerraformProvider) { ) } -func (j *jsiiProxy_Grant)SetProvisioners(val *[]interface{}) { +func (j *jsiiProxy_Grant) SetProvisioners(val *[]any) { if err := j.validateSetProvisionersParameters(val); err != nil { panic(err) } @@ -658,7 +657,7 @@ func (j *jsiiProxy_Grant)SetProvisioners(val *[]interface{}) { ) } -func (j *jsiiProxy_Grant)SetRole(val *string) { +func (j *jsiiProxy_Grant) SetRole(val *string) { if err := j.validateSetRoleParameters(val); err != nil { panic(err) } @@ -669,7 +668,7 @@ func (j *jsiiProxy_Grant)SetRole(val *string) { ) } -func (j *jsiiProxy_Grant)SetSchema(val *string) { +func (j *jsiiProxy_Grant) SetSchema(val *string) { if err := j.validateSetSchemaParameters(val); err != nil { panic(err) } @@ -680,7 +679,7 @@ func (j *jsiiProxy_Grant)SetSchema(val *string) { ) } -func (j *jsiiProxy_Grant)SetWithGrantOption(val interface{}) { +func (j *jsiiProxy_Grant) SetWithGrantOption(val any) { if err := j.validateSetWithGrantOptionParameters(val); err != nil { panic(err) } @@ -703,7 +702,7 @@ func Grant_GenerateConfigForImport(scope constructs.Construct, importToId *strin _jsii_.StaticInvoke( "@cdktf/provider-postgresql.grant.Grant", "generateConfigForImport", - []interface{}{scope, importToId, importFromId, provider}, + []any{scope, importToId, importFromId, provider}, &returns, ) @@ -727,7 +726,7 @@ func Grant_GenerateConfigForImport(scope constructs.Construct, importToId *strin // this type-testing method instead. // // Returns: true if `x` is an object created from a class which extends `Construct`. -func Grant_IsConstruct(x interface{}) *bool { +func Grant_IsConstruct(x any) *bool { _init_.Initialize() if err := validateGrant_IsConstructParameters(x); err != nil { @@ -738,7 +737,7 @@ func Grant_IsConstruct(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.grant.Grant", "isConstruct", - []interface{}{x}, + []any{x}, &returns, ) @@ -746,7 +745,7 @@ func Grant_IsConstruct(x interface{}) *bool { } // Experimental. -func Grant_IsTerraformElement(x interface{}) *bool { +func Grant_IsTerraformElement(x any) *bool { _init_.Initialize() if err := validateGrant_IsTerraformElementParameters(x); err != nil { @@ -757,7 +756,7 @@ func Grant_IsTerraformElement(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.grant.Grant", "isTerraformElement", - []interface{}{x}, + []any{x}, &returns, ) @@ -765,7 +764,7 @@ func Grant_IsTerraformElement(x interface{}) *bool { } // Experimental. -func Grant_IsTerraformResource(x interface{}) *bool { +func Grant_IsTerraformResource(x any) *bool { _init_.Initialize() if err := validateGrant_IsTerraformResourceParameters(x); err != nil { @@ -776,7 +775,7 @@ func Grant_IsTerraformResource(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.grant.Grant", "isTerraformResource", - []interface{}{x}, + []any{x}, &returns, ) @@ -801,31 +800,31 @@ func (g *jsiiProxy_Grant) AddMoveTarget(moveTarget *string) { _jsii_.InvokeVoid( g, "addMoveTarget", - []interface{}{moveTarget}, + []any{moveTarget}, ) } -func (g *jsiiProxy_Grant) AddOverride(path *string, value interface{}) { +func (g *jsiiProxy_Grant) AddOverride(path *string, value any) { if err := g.validateAddOverrideParameters(path, value); err != nil { panic(err) } _jsii_.InvokeVoid( g, "addOverride", - []interface{}{path, value}, + []any{path, value}, ) } -func (g *jsiiProxy_Grant) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (g *jsiiProxy_Grant) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := g.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( g, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -841,7 +840,7 @@ func (g *jsiiProxy_Grant) GetBooleanAttribute(terraformAttribute *string) cdktf. _jsii_.Invoke( g, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -857,7 +856,7 @@ func (g *jsiiProxy_Grant) GetBooleanMapAttribute(terraformAttribute *string) *ma _jsii_.Invoke( g, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -873,7 +872,7 @@ func (g *jsiiProxy_Grant) GetListAttribute(terraformAttribute *string) *[]*strin _jsii_.Invoke( g, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -889,7 +888,7 @@ func (g *jsiiProxy_Grant) GetNumberAttribute(terraformAttribute *string) *float6 _jsii_.Invoke( g, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -905,7 +904,7 @@ func (g *jsiiProxy_Grant) GetNumberListAttribute(terraformAttribute *string) *[] _jsii_.Invoke( g, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -921,7 +920,7 @@ func (g *jsiiProxy_Grant) GetNumberMapAttribute(terraformAttribute *string) *map _jsii_.Invoke( g, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -937,7 +936,7 @@ func (g *jsiiProxy_Grant) GetStringAttribute(terraformAttribute *string) *string _jsii_.Invoke( g, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -953,15 +952,15 @@ func (g *jsiiProxy_Grant) GetStringMapAttribute(terraformAttribute *string) *map _jsii_.Invoke( g, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) return returns } -func (g *jsiiProxy_Grant) HasResourceMove() interface{} { - var returns interface{} +func (g *jsiiProxy_Grant) HasResourceMove() any { + var returns any _jsii_.Invoke( g, @@ -980,7 +979,7 @@ func (g *jsiiProxy_Grant) ImportFrom(id *string, provider cdktf.TerraformProvide _jsii_.InvokeVoid( g, "importFrom", - []interface{}{id, provider}, + []any{id, provider}, ) } @@ -993,7 +992,7 @@ func (g *jsiiProxy_Grant) InterpolationForAttribute(terraformAttribute *string) _jsii_.Invoke( g, "interpolationForAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1007,18 +1006,18 @@ func (g *jsiiProxy_Grant) MoveFromId(id *string) { _jsii_.InvokeVoid( g, "moveFromId", - []interface{}{id}, + []any{id}, ) } -func (g *jsiiProxy_Grant) MoveTo(moveTarget *string, index interface{}) { +func (g *jsiiProxy_Grant) MoveTo(moveTarget *string, index any) { if err := g.validateMoveToParameters(moveTarget, index); err != nil { panic(err) } _jsii_.InvokeVoid( g, "moveTo", - []interface{}{moveTarget, index}, + []any{moveTarget, index}, ) } @@ -1029,7 +1028,7 @@ func (g *jsiiProxy_Grant) MoveToId(id *string) { _jsii_.InvokeVoid( g, "moveToId", - []interface{}{id}, + []any{id}, ) } @@ -1040,7 +1039,7 @@ func (g *jsiiProxy_Grant) OverrideLogicalId(newLogicalId *string) { _jsii_.InvokeVoid( g, "overrideLogicalId", - []interface{}{newLogicalId}, + []any{newLogicalId}, ) } @@ -1092,8 +1091,8 @@ func (g *jsiiProxy_Grant) ResetWithGrantOption() { ) } -func (g *jsiiProxy_Grant) SynthesizeAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (g *jsiiProxy_Grant) SynthesizeAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( g, @@ -1105,8 +1104,8 @@ func (g *jsiiProxy_Grant) SynthesizeAttributes() *map[string]interface{} { return returns } -func (g *jsiiProxy_Grant) SynthesizeHclAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (g *jsiiProxy_Grant) SynthesizeHclAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( g, @@ -1118,8 +1117,8 @@ func (g *jsiiProxy_Grant) SynthesizeHclAttributes() *map[string]interface{} { return returns } -func (g *jsiiProxy_Grant) ToHclTerraform() interface{} { - var returns interface{} +func (g *jsiiProxy_Grant) ToHclTerraform() any { + var returns any _jsii_.Invoke( g, @@ -1131,8 +1130,8 @@ func (g *jsiiProxy_Grant) ToHclTerraform() interface{} { return returns } -func (g *jsiiProxy_Grant) ToMetadata() interface{} { - var returns interface{} +func (g *jsiiProxy_Grant) ToMetadata() any { + var returns any _jsii_.Invoke( g, @@ -1157,8 +1156,8 @@ func (g *jsiiProxy_Grant) ToString() *string { return returns } -func (g *jsiiProxy_Grant) ToTerraform() interface{} { - var returns interface{} +func (g *jsiiProxy_Grant) ToTerraform() any { + var returns any _jsii_.Invoke( g, @@ -1169,4 +1168,3 @@ func (g *jsiiProxy_Grant) ToTerraform() interface{} { return returns } - diff --git a/gen/postgresql/grant/GrantConfig.go b/gen/postgresql/grant/GrantConfig.go index 8e86154ca2..e463fc542e 100644 --- a/gen/postgresql/grant/GrantConfig.go +++ b/gen/postgresql/grant/GrantConfig.go @@ -6,9 +6,9 @@ import ( type GrantConfig struct { // Experimental. - Connection interface{} `field:"optional" json:"connection" yaml:"connection"` + Connection any `field:"optional" json:"connection" yaml:"connection"` // Experimental. - Count interface{} `field:"optional" json:"count" yaml:"count"` + Count any `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. @@ -18,7 +18,7 @@ type GrantConfig struct { // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. - Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` + Provisioners *[]any `field:"optional" json:"provisioners" yaml:"provisioners"` // The database to grant privileges on for this role. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/grant#database Grant#database} @@ -55,6 +55,5 @@ type GrantConfig struct { // Permit the grant recipient to grant it to others. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/grant#with_grant_option Grant#with_grant_option} - WithGrantOption interface{} `field:"optional" json:"withGrantOption" yaml:"withGrantOption"` + WithGrantOption any `field:"optional" json:"withGrantOption" yaml:"withGrantOption"` } - diff --git a/gen/postgresql/grant/Grant__checks.go b/gen/postgresql/grant/Grant__checks.go index ec5be1b3ac..d129edfe36 100644 --- a/gen/postgresql/grant/Grant__checks.go +++ b/gen/postgresql/grant/Grant__checks.go @@ -19,7 +19,7 @@ func (g *jsiiProxy_Grant) validateAddMoveTargetParameters(moveTarget *string) er return nil } -func (g *jsiiProxy_Grant) validateAddOverrideParameters(path *string, value interface{}) error { +func (g *jsiiProxy_Grant) validateAddOverrideParameters(path *string, value any) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } @@ -127,7 +127,7 @@ func (g *jsiiProxy_Grant) validateMoveFromIdParameters(id *string) error { return nil } -func (g *jsiiProxy_Grant) validateMoveToParameters(moveTarget *string, index interface{}) error { +func (g *jsiiProxy_Grant) validateMoveToParameters(moveTarget *string, index any) error { if moveTarget == nil { return fmt.Errorf("parameter moveTarget is required, but nil was provided") } @@ -220,7 +220,7 @@ func validateGrant_GenerateConfigForImportParameters(scope constructs.Construct, return nil } -func validateGrant_IsConstructParameters(x interface{}) error { +func validateGrant_IsConstructParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -228,7 +228,7 @@ func validateGrant_IsConstructParameters(x interface{}) error { return nil } -func validateGrant_IsTerraformElementParameters(x interface{}) error { +func validateGrant_IsTerraformElementParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -236,7 +236,7 @@ func validateGrant_IsTerraformElementParameters(x interface{}) error { return nil } -func validateGrant_IsTerraformResourceParameters(x interface{}) error { +func validateGrant_IsTerraformResourceParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -252,7 +252,7 @@ func (j *jsiiProxy_Grant) validateSetColumnsParameters(val *[]*string) error { return nil } -func (j *jsiiProxy_Grant) validateSetConnectionParameters(val interface{}) error { +func (j *jsiiProxy_Grant) validateSetConnectionParameters(val any) error { switch val.(type) { case *cdktf.SSHProvisionerConnection: val := val.(*cdktf.SSHProvisionerConnection) @@ -285,7 +285,7 @@ func (j *jsiiProxy_Grant) validateSetConnectionParameters(val interface{}) error return nil } -func (j *jsiiProxy_Grant) validateSetCountParameters(val interface{}) error { +func (j *jsiiProxy_Grant) validateSetCountParameters(val any) error { switch val.(type) { case *float64: // ok @@ -390,7 +390,7 @@ func (j *jsiiProxy_Grant) validateSetPrivilegesParameters(val *[]*string) error return nil } -func (j *jsiiProxy_Grant) validateSetProvisionersParameters(val *[]interface{}) error { +func (j *jsiiProxy_Grant) validateSetProvisionersParameters(val *[]any) error { for idx_97dfc6, v := range *val { switch v.(type) { case *cdktf.FileProvisioner: @@ -452,7 +452,7 @@ func (j *jsiiProxy_Grant) validateSetSchemaParameters(val *string) error { return nil } -func (j *jsiiProxy_Grant) validateSetWithGrantOptionParameters(val interface{}) error { +func (j *jsiiProxy_Grant) validateSetWithGrantOptionParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -490,4 +490,3 @@ func validateNewGrantParameters(scope constructs.Construct, id *string, config * return nil } - diff --git a/gen/postgresql/grant/main.go b/gen/postgresql/grant/main.go index 7fea130c51..9501ea68b3 100644 --- a/gen/postgresql/grant/main.go +++ b/gen/postgresql/grant/main.go @@ -9,7 +9,7 @@ import ( func init() { _jsii_.RegisterClass( "@cdktf/provider-postgresql.grant.Grant", - reflect.TypeOf((*Grant)(nil)).Elem(), + reflect.TypeFor[Grant](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "addMoveTarget", GoMethod: "AddMoveTarget"}, _jsii_.MemberMethod{JsiiMethod: "addOverride", GoMethod: "AddOverride"}, @@ -76,7 +76,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "withGrantOption", GoGetter: "WithGrantOption"}, _jsii_.MemberProperty{JsiiProperty: "withGrantOptionInput", GoGetter: "WithGrantOptionInput"}, }, - func() interface{} { + func() any { j := jsiiProxy_Grant{} _jsii_.InitJsiiProxy(&j.Type__cdktfTerraformResource) return &j @@ -84,6 +84,6 @@ func init() { ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.grant.GrantConfig", - reflect.TypeOf((*GrantConfig)(nil)).Elem(), + reflect.TypeFor[GrantConfig](), ) } diff --git a/gen/postgresql/grantrole/GrantRole.go b/gen/postgresql/grantrole/GrantRole.go index 74921af0fd..6d7bc2fa72 100644 --- a/gen/postgresql/grantrole/GrantRole.go +++ b/gen/postgresql/grantrole/GrantRole.go @@ -15,15 +15,15 @@ type GrantRole interface { // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. - Connection() interface{} + Connection() any // Experimental. - SetConnection(val interface{}) + SetConnection(val any) // Experimental. - ConstructNodeMetadata() *map[string]interface{} + ConstructNodeMetadata() *map[string]any // Experimental. - Count() interface{} + Count() any // Experimental. - SetCount(val interface{}) + SetCount(val any) // Experimental. DependsOn() *[]*string // Experimental. @@ -53,30 +53,30 @@ type GrantRole interface { // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. - Provisioners() *[]interface{} + Provisioners() *[]any // Experimental. - SetProvisioners(val *[]interface{}) + SetProvisioners(val *[]any) // Experimental. - RawOverrides() interface{} + RawOverrides() any Role() *string SetRole(val *string) RoleInput() *string // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. - TerraformMetaArguments() *map[string]interface{} + TerraformMetaArguments() *map[string]any // Experimental. TerraformResourceType() *string - WithAdminOption() interface{} - SetWithAdminOption(val interface{}) - WithAdminOptionInput() interface{} + WithAdminOption() any + SetWithAdminOption(val any) + WithAdminOptionInput() any // Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. // Experimental. AddMoveTarget(moveTarget *string) // Experimental. - AddOverride(path *string, value interface{}) + AddOverride(path *string, value any) // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -94,7 +94,7 @@ type GrantRole interface { // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. - HasResourceMove() interface{} + HasResourceMove() any // Experimental. ImportFrom(id *string, provider cdktf.TerraformProvider) // Experimental. @@ -106,7 +106,7 @@ type GrantRole interface { MoveFromId(id *string) // Moves this resource to the target resource given by moveTarget. // Experimental. - MoveTo(moveTarget *string, index interface{}) + MoveTo(moveTarget *string, index any) // Moves this resource to the resource corresponding to "id". // Experimental. MoveToId(id *string) @@ -118,17 +118,17 @@ type GrantRole interface { // Experimental. ResetOverrideLogicalId() ResetWithAdminOption() - SynthesizeAttributes() *map[string]interface{} - SynthesizeHclAttributes() *map[string]interface{} + SynthesizeAttributes() *map[string]any + SynthesizeHclAttributes() *map[string]any // Experimental. - ToHclTerraform() interface{} + ToHclTerraform() any // Experimental. - ToMetadata() interface{} + ToMetadata() any // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. - ToTerraform() interface{} + ToTerraform() any } // The jsii proxy struct for GrantRole @@ -146,8 +146,8 @@ func (j *jsiiProxy_GrantRole) CdktfStack() cdktf.TerraformStack { return returns } -func (j *jsiiProxy_GrantRole) Connection() interface{} { - var returns interface{} +func (j *jsiiProxy_GrantRole) Connection() any { + var returns any _jsii_.Get( j, "connection", @@ -156,8 +156,8 @@ func (j *jsiiProxy_GrantRole) Connection() interface{} { return returns } -func (j *jsiiProxy_GrantRole) ConstructNodeMetadata() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_GrantRole) ConstructNodeMetadata() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "constructNodeMetadata", @@ -166,8 +166,8 @@ func (j *jsiiProxy_GrantRole) ConstructNodeMetadata() *map[string]interface{} { return returns } -func (j *jsiiProxy_GrantRole) Count() interface{} { - var returns interface{} +func (j *jsiiProxy_GrantRole) Count() any { + var returns any _jsii_.Get( j, "count", @@ -286,8 +286,8 @@ func (j *jsiiProxy_GrantRole) Provider() cdktf.TerraformProvider { return returns } -func (j *jsiiProxy_GrantRole) Provisioners() *[]interface{} { - var returns *[]interface{} +func (j *jsiiProxy_GrantRole) Provisioners() *[]any { + var returns *[]any _jsii_.Get( j, "provisioners", @@ -296,8 +296,8 @@ func (j *jsiiProxy_GrantRole) Provisioners() *[]interface{} { return returns } -func (j *jsiiProxy_GrantRole) RawOverrides() interface{} { - var returns interface{} +func (j *jsiiProxy_GrantRole) RawOverrides() any { + var returns any _jsii_.Get( j, "rawOverrides", @@ -336,8 +336,8 @@ func (j *jsiiProxy_GrantRole) TerraformGeneratorMetadata() *cdktf.TerraformProvi return returns } -func (j *jsiiProxy_GrantRole) TerraformMetaArguments() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_GrantRole) TerraformMetaArguments() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "terraformMetaArguments", @@ -356,8 +356,8 @@ func (j *jsiiProxy_GrantRole) TerraformResourceType() *string { return returns } -func (j *jsiiProxy_GrantRole) WithAdminOption() interface{} { - var returns interface{} +func (j *jsiiProxy_GrantRole) WithAdminOption() any { + var returns any _jsii_.Get( j, "withAdminOption", @@ -366,8 +366,8 @@ func (j *jsiiProxy_GrantRole) WithAdminOption() interface{} { return returns } -func (j *jsiiProxy_GrantRole) WithAdminOptionInput() interface{} { - var returns interface{} +func (j *jsiiProxy_GrantRole) WithAdminOptionInput() any { + var returns any _jsii_.Get( j, "withAdminOptionInput", @@ -376,7 +376,6 @@ func (j *jsiiProxy_GrantRole) WithAdminOptionInput() interface{} { return returns } - // Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/grant_role postgresql_grant_role} Resource. func NewGrantRole(scope constructs.Construct, id *string, config *GrantRoleConfig) GrantRole { _init_.Initialize() @@ -388,7 +387,7 @@ func NewGrantRole(scope constructs.Construct, id *string, config *GrantRoleConfi _jsii_.Create( "@cdktf/provider-postgresql.grantRole.GrantRole", - []interface{}{scope, id, config}, + []any{scope, id, config}, &j, ) @@ -401,12 +400,12 @@ func NewGrantRole_Override(g GrantRole, scope constructs.Construct, id *string, _jsii_.Create( "@cdktf/provider-postgresql.grantRole.GrantRole", - []interface{}{scope, id, config}, + []any{scope, id, config}, g, ) } -func (j *jsiiProxy_GrantRole)SetConnection(val interface{}) { +func (j *jsiiProxy_GrantRole) SetConnection(val any) { if err := j.validateSetConnectionParameters(val); err != nil { panic(err) } @@ -417,7 +416,7 @@ func (j *jsiiProxy_GrantRole)SetConnection(val interface{}) { ) } -func (j *jsiiProxy_GrantRole)SetCount(val interface{}) { +func (j *jsiiProxy_GrantRole) SetCount(val any) { if err := j.validateSetCountParameters(val); err != nil { panic(err) } @@ -428,7 +427,7 @@ func (j *jsiiProxy_GrantRole)SetCount(val interface{}) { ) } -func (j *jsiiProxy_GrantRole)SetDependsOn(val *[]*string) { +func (j *jsiiProxy_GrantRole) SetDependsOn(val *[]*string) { _jsii_.Set( j, "dependsOn", @@ -436,7 +435,7 @@ func (j *jsiiProxy_GrantRole)SetDependsOn(val *[]*string) { ) } -func (j *jsiiProxy_GrantRole)SetForEach(val cdktf.ITerraformIterator) { +func (j *jsiiProxy_GrantRole) SetForEach(val cdktf.ITerraformIterator) { _jsii_.Set( j, "forEach", @@ -444,7 +443,7 @@ func (j *jsiiProxy_GrantRole)SetForEach(val cdktf.ITerraformIterator) { ) } -func (j *jsiiProxy_GrantRole)SetGrantRole(val *string) { +func (j *jsiiProxy_GrantRole) SetGrantRole(val *string) { if err := j.validateSetGrantRoleParameters(val); err != nil { panic(err) } @@ -455,7 +454,7 @@ func (j *jsiiProxy_GrantRole)SetGrantRole(val *string) { ) } -func (j *jsiiProxy_GrantRole)SetId(val *string) { +func (j *jsiiProxy_GrantRole) SetId(val *string) { if err := j.validateSetIdParameters(val); err != nil { panic(err) } @@ -466,7 +465,7 @@ func (j *jsiiProxy_GrantRole)SetId(val *string) { ) } -func (j *jsiiProxy_GrantRole)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { +func (j *jsiiProxy_GrantRole) SetLifecycle(val *cdktf.TerraformResourceLifecycle) { if err := j.validateSetLifecycleParameters(val); err != nil { panic(err) } @@ -477,7 +476,7 @@ func (j *jsiiProxy_GrantRole)SetLifecycle(val *cdktf.TerraformResourceLifecycle) ) } -func (j *jsiiProxy_GrantRole)SetProvider(val cdktf.TerraformProvider) { +func (j *jsiiProxy_GrantRole) SetProvider(val cdktf.TerraformProvider) { _jsii_.Set( j, "provider", @@ -485,7 +484,7 @@ func (j *jsiiProxy_GrantRole)SetProvider(val cdktf.TerraformProvider) { ) } -func (j *jsiiProxy_GrantRole)SetProvisioners(val *[]interface{}) { +func (j *jsiiProxy_GrantRole) SetProvisioners(val *[]any) { if err := j.validateSetProvisionersParameters(val); err != nil { panic(err) } @@ -496,7 +495,7 @@ func (j *jsiiProxy_GrantRole)SetProvisioners(val *[]interface{}) { ) } -func (j *jsiiProxy_GrantRole)SetRole(val *string) { +func (j *jsiiProxy_GrantRole) SetRole(val *string) { if err := j.validateSetRoleParameters(val); err != nil { panic(err) } @@ -507,7 +506,7 @@ func (j *jsiiProxy_GrantRole)SetRole(val *string) { ) } -func (j *jsiiProxy_GrantRole)SetWithAdminOption(val interface{}) { +func (j *jsiiProxy_GrantRole) SetWithAdminOption(val any) { if err := j.validateSetWithAdminOptionParameters(val); err != nil { panic(err) } @@ -530,7 +529,7 @@ func GrantRole_GenerateConfigForImport(scope constructs.Construct, importToId *s _jsii_.StaticInvoke( "@cdktf/provider-postgresql.grantRole.GrantRole", "generateConfigForImport", - []interface{}{scope, importToId, importFromId, provider}, + []any{scope, importToId, importFromId, provider}, &returns, ) @@ -554,7 +553,7 @@ func GrantRole_GenerateConfigForImport(scope constructs.Construct, importToId *s // this type-testing method instead. // // Returns: true if `x` is an object created from a class which extends `Construct`. -func GrantRole_IsConstruct(x interface{}) *bool { +func GrantRole_IsConstruct(x any) *bool { _init_.Initialize() if err := validateGrantRole_IsConstructParameters(x); err != nil { @@ -565,7 +564,7 @@ func GrantRole_IsConstruct(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.grantRole.GrantRole", "isConstruct", - []interface{}{x}, + []any{x}, &returns, ) @@ -573,7 +572,7 @@ func GrantRole_IsConstruct(x interface{}) *bool { } // Experimental. -func GrantRole_IsTerraformElement(x interface{}) *bool { +func GrantRole_IsTerraformElement(x any) *bool { _init_.Initialize() if err := validateGrantRole_IsTerraformElementParameters(x); err != nil { @@ -584,7 +583,7 @@ func GrantRole_IsTerraformElement(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.grantRole.GrantRole", "isTerraformElement", - []interface{}{x}, + []any{x}, &returns, ) @@ -592,7 +591,7 @@ func GrantRole_IsTerraformElement(x interface{}) *bool { } // Experimental. -func GrantRole_IsTerraformResource(x interface{}) *bool { +func GrantRole_IsTerraformResource(x any) *bool { _init_.Initialize() if err := validateGrantRole_IsTerraformResourceParameters(x); err != nil { @@ -603,7 +602,7 @@ func GrantRole_IsTerraformResource(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.grantRole.GrantRole", "isTerraformResource", - []interface{}{x}, + []any{x}, &returns, ) @@ -628,31 +627,31 @@ func (g *jsiiProxy_GrantRole) AddMoveTarget(moveTarget *string) { _jsii_.InvokeVoid( g, "addMoveTarget", - []interface{}{moveTarget}, + []any{moveTarget}, ) } -func (g *jsiiProxy_GrantRole) AddOverride(path *string, value interface{}) { +func (g *jsiiProxy_GrantRole) AddOverride(path *string, value any) { if err := g.validateAddOverrideParameters(path, value); err != nil { panic(err) } _jsii_.InvokeVoid( g, "addOverride", - []interface{}{path, value}, + []any{path, value}, ) } -func (g *jsiiProxy_GrantRole) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (g *jsiiProxy_GrantRole) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := g.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( g, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -668,7 +667,7 @@ func (g *jsiiProxy_GrantRole) GetBooleanAttribute(terraformAttribute *string) cd _jsii_.Invoke( g, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -684,7 +683,7 @@ func (g *jsiiProxy_GrantRole) GetBooleanMapAttribute(terraformAttribute *string) _jsii_.Invoke( g, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -700,7 +699,7 @@ func (g *jsiiProxy_GrantRole) GetListAttribute(terraformAttribute *string) *[]*s _jsii_.Invoke( g, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -716,7 +715,7 @@ func (g *jsiiProxy_GrantRole) GetNumberAttribute(terraformAttribute *string) *fl _jsii_.Invoke( g, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -732,7 +731,7 @@ func (g *jsiiProxy_GrantRole) GetNumberListAttribute(terraformAttribute *string) _jsii_.Invoke( g, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -748,7 +747,7 @@ func (g *jsiiProxy_GrantRole) GetNumberMapAttribute(terraformAttribute *string) _jsii_.Invoke( g, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -764,7 +763,7 @@ func (g *jsiiProxy_GrantRole) GetStringAttribute(terraformAttribute *string) *st _jsii_.Invoke( g, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -780,15 +779,15 @@ func (g *jsiiProxy_GrantRole) GetStringMapAttribute(terraformAttribute *string) _jsii_.Invoke( g, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) return returns } -func (g *jsiiProxy_GrantRole) HasResourceMove() interface{} { - var returns interface{} +func (g *jsiiProxy_GrantRole) HasResourceMove() any { + var returns any _jsii_.Invoke( g, @@ -807,7 +806,7 @@ func (g *jsiiProxy_GrantRole) ImportFrom(id *string, provider cdktf.TerraformPro _jsii_.InvokeVoid( g, "importFrom", - []interface{}{id, provider}, + []any{id, provider}, ) } @@ -820,7 +819,7 @@ func (g *jsiiProxy_GrantRole) InterpolationForAttribute(terraformAttribute *stri _jsii_.Invoke( g, "interpolationForAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -834,18 +833,18 @@ func (g *jsiiProxy_GrantRole) MoveFromId(id *string) { _jsii_.InvokeVoid( g, "moveFromId", - []interface{}{id}, + []any{id}, ) } -func (g *jsiiProxy_GrantRole) MoveTo(moveTarget *string, index interface{}) { +func (g *jsiiProxy_GrantRole) MoveTo(moveTarget *string, index any) { if err := g.validateMoveToParameters(moveTarget, index); err != nil { panic(err) } _jsii_.InvokeVoid( g, "moveTo", - []interface{}{moveTarget, index}, + []any{moveTarget, index}, ) } @@ -856,7 +855,7 @@ func (g *jsiiProxy_GrantRole) MoveToId(id *string) { _jsii_.InvokeVoid( g, "moveToId", - []interface{}{id}, + []any{id}, ) } @@ -867,7 +866,7 @@ func (g *jsiiProxy_GrantRole) OverrideLogicalId(newLogicalId *string) { _jsii_.InvokeVoid( g, "overrideLogicalId", - []interface{}{newLogicalId}, + []any{newLogicalId}, ) } @@ -895,8 +894,8 @@ func (g *jsiiProxy_GrantRole) ResetWithAdminOption() { ) } -func (g *jsiiProxy_GrantRole) SynthesizeAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (g *jsiiProxy_GrantRole) SynthesizeAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( g, @@ -908,8 +907,8 @@ func (g *jsiiProxy_GrantRole) SynthesizeAttributes() *map[string]interface{} { return returns } -func (g *jsiiProxy_GrantRole) SynthesizeHclAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (g *jsiiProxy_GrantRole) SynthesizeHclAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( g, @@ -921,8 +920,8 @@ func (g *jsiiProxy_GrantRole) SynthesizeHclAttributes() *map[string]interface{} return returns } -func (g *jsiiProxy_GrantRole) ToHclTerraform() interface{} { - var returns interface{} +func (g *jsiiProxy_GrantRole) ToHclTerraform() any { + var returns any _jsii_.Invoke( g, @@ -934,8 +933,8 @@ func (g *jsiiProxy_GrantRole) ToHclTerraform() interface{} { return returns } -func (g *jsiiProxy_GrantRole) ToMetadata() interface{} { - var returns interface{} +func (g *jsiiProxy_GrantRole) ToMetadata() any { + var returns any _jsii_.Invoke( g, @@ -960,8 +959,8 @@ func (g *jsiiProxy_GrantRole) ToString() *string { return returns } -func (g *jsiiProxy_GrantRole) ToTerraform() interface{} { - var returns interface{} +func (g *jsiiProxy_GrantRole) ToTerraform() any { + var returns any _jsii_.Invoke( g, @@ -972,4 +971,3 @@ func (g *jsiiProxy_GrantRole) ToTerraform() interface{} { return returns } - diff --git a/gen/postgresql/grantrole/GrantRoleConfig.go b/gen/postgresql/grantrole/GrantRoleConfig.go index bb3b06d957..772584aebf 100644 --- a/gen/postgresql/grantrole/GrantRoleConfig.go +++ b/gen/postgresql/grantrole/GrantRoleConfig.go @@ -6,9 +6,9 @@ import ( type GrantRoleConfig struct { // Experimental. - Connection interface{} `field:"optional" json:"connection" yaml:"connection"` + Connection any `field:"optional" json:"connection" yaml:"connection"` // Experimental. - Count interface{} `field:"optional" json:"count" yaml:"count"` + Count any `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. @@ -18,7 +18,7 @@ type GrantRoleConfig struct { // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. - Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` + Provisioners *[]any `field:"optional" json:"provisioners" yaml:"provisioners"` // The name of the role that is granted to role. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/grant_role#grant_role GrantRole#grant_role} @@ -35,6 +35,5 @@ type GrantRoleConfig struct { // Permit the grant recipient to grant it to others. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/grant_role#with_admin_option GrantRole#with_admin_option} - WithAdminOption interface{} `field:"optional" json:"withAdminOption" yaml:"withAdminOption"` + WithAdminOption any `field:"optional" json:"withAdminOption" yaml:"withAdminOption"` } - diff --git a/gen/postgresql/grantrole/GrantRole__checks.go b/gen/postgresql/grantrole/GrantRole__checks.go index da5d4c245d..88e729b867 100644 --- a/gen/postgresql/grantrole/GrantRole__checks.go +++ b/gen/postgresql/grantrole/GrantRole__checks.go @@ -19,7 +19,7 @@ func (g *jsiiProxy_GrantRole) validateAddMoveTargetParameters(moveTarget *string return nil } -func (g *jsiiProxy_GrantRole) validateAddOverrideParameters(path *string, value interface{}) error { +func (g *jsiiProxy_GrantRole) validateAddOverrideParameters(path *string, value any) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } @@ -127,7 +127,7 @@ func (g *jsiiProxy_GrantRole) validateMoveFromIdParameters(id *string) error { return nil } -func (g *jsiiProxy_GrantRole) validateMoveToParameters(moveTarget *string, index interface{}) error { +func (g *jsiiProxy_GrantRole) validateMoveToParameters(moveTarget *string, index any) error { if moveTarget == nil { return fmt.Errorf("parameter moveTarget is required, but nil was provided") } @@ -220,7 +220,7 @@ func validateGrantRole_GenerateConfigForImportParameters(scope constructs.Constr return nil } -func validateGrantRole_IsConstructParameters(x interface{}) error { +func validateGrantRole_IsConstructParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -228,7 +228,7 @@ func validateGrantRole_IsConstructParameters(x interface{}) error { return nil } -func validateGrantRole_IsTerraformElementParameters(x interface{}) error { +func validateGrantRole_IsTerraformElementParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -236,7 +236,7 @@ func validateGrantRole_IsTerraformElementParameters(x interface{}) error { return nil } -func validateGrantRole_IsTerraformResourceParameters(x interface{}) error { +func validateGrantRole_IsTerraformResourceParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -244,7 +244,7 @@ func validateGrantRole_IsTerraformResourceParameters(x interface{}) error { return nil } -func (j *jsiiProxy_GrantRole) validateSetConnectionParameters(val interface{}) error { +func (j *jsiiProxy_GrantRole) validateSetConnectionParameters(val any) error { switch val.(type) { case *cdktf.SSHProvisionerConnection: val := val.(*cdktf.SSHProvisionerConnection) @@ -277,7 +277,7 @@ func (j *jsiiProxy_GrantRole) validateSetConnectionParameters(val interface{}) e return nil } -func (j *jsiiProxy_GrantRole) validateSetCountParameters(val interface{}) error { +func (j *jsiiProxy_GrantRole) validateSetCountParameters(val any) error { switch val.(type) { case *float64: // ok @@ -358,7 +358,7 @@ func (j *jsiiProxy_GrantRole) validateSetLifecycleParameters(val *cdktf.Terrafor return nil } -func (j *jsiiProxy_GrantRole) validateSetProvisionersParameters(val *[]interface{}) error { +func (j *jsiiProxy_GrantRole) validateSetProvisionersParameters(val *[]any) error { for idx_97dfc6, v := range *val { switch v.(type) { case *cdktf.FileProvisioner: @@ -412,7 +412,7 @@ func (j *jsiiProxy_GrantRole) validateSetRoleParameters(val *string) error { return nil } -func (j *jsiiProxy_GrantRole) validateSetWithAdminOptionParameters(val interface{}) error { +func (j *jsiiProxy_GrantRole) validateSetWithAdminOptionParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -450,4 +450,3 @@ func validateNewGrantRoleParameters(scope constructs.Construct, id *string, conf return nil } - diff --git a/gen/postgresql/grantrole/main.go b/gen/postgresql/grantrole/main.go index 906be6c474..bcd01df1ac 100644 --- a/gen/postgresql/grantrole/main.go +++ b/gen/postgresql/grantrole/main.go @@ -9,7 +9,7 @@ import ( func init() { _jsii_.RegisterClass( "@cdktf/provider-postgresql.grantRole.GrantRole", - reflect.TypeOf((*GrantRole)(nil)).Elem(), + reflect.TypeFor[GrantRole](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "addMoveTarget", GoMethod: "AddMoveTarget"}, _jsii_.MemberMethod{JsiiMethod: "addOverride", GoMethod: "AddOverride"}, @@ -63,7 +63,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "withAdminOption", GoGetter: "WithAdminOption"}, _jsii_.MemberProperty{JsiiProperty: "withAdminOptionInput", GoGetter: "WithAdminOptionInput"}, }, - func() interface{} { + func() any { j := jsiiProxy_GrantRole{} _jsii_.InitJsiiProxy(&j.Type__cdktfTerraformResource) return &j @@ -71,6 +71,6 @@ func init() { ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.grantRole.GrantRoleConfig", - reflect.TypeOf((*GrantRoleConfig)(nil)).Elem(), + reflect.TypeFor[GrantRoleConfig](), ) } diff --git a/gen/postgresql/physicalreplicationslot/PhysicalReplicationSlot.go b/gen/postgresql/physicalreplicationslot/PhysicalReplicationSlot.go index 170ef553dc..245fbbf27c 100644 --- a/gen/postgresql/physicalreplicationslot/PhysicalReplicationSlot.go +++ b/gen/postgresql/physicalreplicationslot/PhysicalReplicationSlot.go @@ -15,15 +15,15 @@ type PhysicalReplicationSlot interface { // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. - Connection() interface{} + Connection() any // Experimental. - SetConnection(val interface{}) + SetConnection(val any) // Experimental. - ConstructNodeMetadata() *map[string]interface{} + ConstructNodeMetadata() *map[string]any // Experimental. - Count() interface{} + Count() any // Experimental. - SetCount(val interface{}) + SetCount(val any) // Experimental. DependsOn() *[]*string // Experimental. @@ -53,24 +53,24 @@ type PhysicalReplicationSlot interface { // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. - Provisioners() *[]interface{} + Provisioners() *[]any // Experimental. - SetProvisioners(val *[]interface{}) + SetProvisioners(val *[]any) // Experimental. - RawOverrides() interface{} + RawOverrides() any // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. - TerraformMetaArguments() *map[string]interface{} + TerraformMetaArguments() *map[string]any // Experimental. TerraformResourceType() *string // Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. // Experimental. AddMoveTarget(moveTarget *string) // Experimental. - AddOverride(path *string, value interface{}) + AddOverride(path *string, value any) // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -88,7 +88,7 @@ type PhysicalReplicationSlot interface { // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. - HasResourceMove() interface{} + HasResourceMove() any // Experimental. ImportFrom(id *string, provider cdktf.TerraformProvider) // Experimental. @@ -100,7 +100,7 @@ type PhysicalReplicationSlot interface { MoveFromId(id *string) // Moves this resource to the target resource given by moveTarget. // Experimental. - MoveTo(moveTarget *string, index interface{}) + MoveTo(moveTarget *string, index any) // Moves this resource to the resource corresponding to "id". // Experimental. MoveToId(id *string) @@ -111,17 +111,17 @@ type PhysicalReplicationSlot interface { // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() - SynthesizeAttributes() *map[string]interface{} - SynthesizeHclAttributes() *map[string]interface{} + SynthesizeAttributes() *map[string]any + SynthesizeHclAttributes() *map[string]any // Experimental. - ToHclTerraform() interface{} + ToHclTerraform() any // Experimental. - ToMetadata() interface{} + ToMetadata() any // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. - ToTerraform() interface{} + ToTerraform() any } // The jsii proxy struct for PhysicalReplicationSlot @@ -139,8 +139,8 @@ func (j *jsiiProxy_PhysicalReplicationSlot) CdktfStack() cdktf.TerraformStack { return returns } -func (j *jsiiProxy_PhysicalReplicationSlot) Connection() interface{} { - var returns interface{} +func (j *jsiiProxy_PhysicalReplicationSlot) Connection() any { + var returns any _jsii_.Get( j, "connection", @@ -149,8 +149,8 @@ func (j *jsiiProxy_PhysicalReplicationSlot) Connection() interface{} { return returns } -func (j *jsiiProxy_PhysicalReplicationSlot) ConstructNodeMetadata() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_PhysicalReplicationSlot) ConstructNodeMetadata() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "constructNodeMetadata", @@ -159,8 +159,8 @@ func (j *jsiiProxy_PhysicalReplicationSlot) ConstructNodeMetadata() *map[string] return returns } -func (j *jsiiProxy_PhysicalReplicationSlot) Count() interface{} { - var returns interface{} +func (j *jsiiProxy_PhysicalReplicationSlot) Count() any { + var returns any _jsii_.Get( j, "count", @@ -279,8 +279,8 @@ func (j *jsiiProxy_PhysicalReplicationSlot) Provider() cdktf.TerraformProvider { return returns } -func (j *jsiiProxy_PhysicalReplicationSlot) Provisioners() *[]interface{} { - var returns *[]interface{} +func (j *jsiiProxy_PhysicalReplicationSlot) Provisioners() *[]any { + var returns *[]any _jsii_.Get( j, "provisioners", @@ -289,8 +289,8 @@ func (j *jsiiProxy_PhysicalReplicationSlot) Provisioners() *[]interface{} { return returns } -func (j *jsiiProxy_PhysicalReplicationSlot) RawOverrides() interface{} { - var returns interface{} +func (j *jsiiProxy_PhysicalReplicationSlot) RawOverrides() any { + var returns any _jsii_.Get( j, "rawOverrides", @@ -309,8 +309,8 @@ func (j *jsiiProxy_PhysicalReplicationSlot) TerraformGeneratorMetadata() *cdktf. return returns } -func (j *jsiiProxy_PhysicalReplicationSlot) TerraformMetaArguments() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_PhysicalReplicationSlot) TerraformMetaArguments() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "terraformMetaArguments", @@ -329,7 +329,6 @@ func (j *jsiiProxy_PhysicalReplicationSlot) TerraformResourceType() *string { return returns } - // Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/physical_replication_slot postgresql_physical_replication_slot} Resource. func NewPhysicalReplicationSlot(scope constructs.Construct, id *string, config *PhysicalReplicationSlotConfig) PhysicalReplicationSlot { _init_.Initialize() @@ -341,7 +340,7 @@ func NewPhysicalReplicationSlot(scope constructs.Construct, id *string, config * _jsii_.Create( "@cdktf/provider-postgresql.physicalReplicationSlot.PhysicalReplicationSlot", - []interface{}{scope, id, config}, + []any{scope, id, config}, &j, ) @@ -354,12 +353,12 @@ func NewPhysicalReplicationSlot_Override(p PhysicalReplicationSlot, scope constr _jsii_.Create( "@cdktf/provider-postgresql.physicalReplicationSlot.PhysicalReplicationSlot", - []interface{}{scope, id, config}, + []any{scope, id, config}, p, ) } -func (j *jsiiProxy_PhysicalReplicationSlot)SetConnection(val interface{}) { +func (j *jsiiProxy_PhysicalReplicationSlot) SetConnection(val any) { if err := j.validateSetConnectionParameters(val); err != nil { panic(err) } @@ -370,7 +369,7 @@ func (j *jsiiProxy_PhysicalReplicationSlot)SetConnection(val interface{}) { ) } -func (j *jsiiProxy_PhysicalReplicationSlot)SetCount(val interface{}) { +func (j *jsiiProxy_PhysicalReplicationSlot) SetCount(val any) { if err := j.validateSetCountParameters(val); err != nil { panic(err) } @@ -381,7 +380,7 @@ func (j *jsiiProxy_PhysicalReplicationSlot)SetCount(val interface{}) { ) } -func (j *jsiiProxy_PhysicalReplicationSlot)SetDependsOn(val *[]*string) { +func (j *jsiiProxy_PhysicalReplicationSlot) SetDependsOn(val *[]*string) { _jsii_.Set( j, "dependsOn", @@ -389,7 +388,7 @@ func (j *jsiiProxy_PhysicalReplicationSlot)SetDependsOn(val *[]*string) { ) } -func (j *jsiiProxy_PhysicalReplicationSlot)SetForEach(val cdktf.ITerraformIterator) { +func (j *jsiiProxy_PhysicalReplicationSlot) SetForEach(val cdktf.ITerraformIterator) { _jsii_.Set( j, "forEach", @@ -397,7 +396,7 @@ func (j *jsiiProxy_PhysicalReplicationSlot)SetForEach(val cdktf.ITerraformIterat ) } -func (j *jsiiProxy_PhysicalReplicationSlot)SetId(val *string) { +func (j *jsiiProxy_PhysicalReplicationSlot) SetId(val *string) { if err := j.validateSetIdParameters(val); err != nil { panic(err) } @@ -408,7 +407,7 @@ func (j *jsiiProxy_PhysicalReplicationSlot)SetId(val *string) { ) } -func (j *jsiiProxy_PhysicalReplicationSlot)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { +func (j *jsiiProxy_PhysicalReplicationSlot) SetLifecycle(val *cdktf.TerraformResourceLifecycle) { if err := j.validateSetLifecycleParameters(val); err != nil { panic(err) } @@ -419,7 +418,7 @@ func (j *jsiiProxy_PhysicalReplicationSlot)SetLifecycle(val *cdktf.TerraformReso ) } -func (j *jsiiProxy_PhysicalReplicationSlot)SetName(val *string) { +func (j *jsiiProxy_PhysicalReplicationSlot) SetName(val *string) { if err := j.validateSetNameParameters(val); err != nil { panic(err) } @@ -430,7 +429,7 @@ func (j *jsiiProxy_PhysicalReplicationSlot)SetName(val *string) { ) } -func (j *jsiiProxy_PhysicalReplicationSlot)SetProvider(val cdktf.TerraformProvider) { +func (j *jsiiProxy_PhysicalReplicationSlot) SetProvider(val cdktf.TerraformProvider) { _jsii_.Set( j, "provider", @@ -438,7 +437,7 @@ func (j *jsiiProxy_PhysicalReplicationSlot)SetProvider(val cdktf.TerraformProvid ) } -func (j *jsiiProxy_PhysicalReplicationSlot)SetProvisioners(val *[]interface{}) { +func (j *jsiiProxy_PhysicalReplicationSlot) SetProvisioners(val *[]any) { if err := j.validateSetProvisionersParameters(val); err != nil { panic(err) } @@ -461,7 +460,7 @@ func PhysicalReplicationSlot_GenerateConfigForImport(scope constructs.Construct, _jsii_.StaticInvoke( "@cdktf/provider-postgresql.physicalReplicationSlot.PhysicalReplicationSlot", "generateConfigForImport", - []interface{}{scope, importToId, importFromId, provider}, + []any{scope, importToId, importFromId, provider}, &returns, ) @@ -485,7 +484,7 @@ func PhysicalReplicationSlot_GenerateConfigForImport(scope constructs.Construct, // this type-testing method instead. // // Returns: true if `x` is an object created from a class which extends `Construct`. -func PhysicalReplicationSlot_IsConstruct(x interface{}) *bool { +func PhysicalReplicationSlot_IsConstruct(x any) *bool { _init_.Initialize() if err := validatePhysicalReplicationSlot_IsConstructParameters(x); err != nil { @@ -496,7 +495,7 @@ func PhysicalReplicationSlot_IsConstruct(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.physicalReplicationSlot.PhysicalReplicationSlot", "isConstruct", - []interface{}{x}, + []any{x}, &returns, ) @@ -504,7 +503,7 @@ func PhysicalReplicationSlot_IsConstruct(x interface{}) *bool { } // Experimental. -func PhysicalReplicationSlot_IsTerraformElement(x interface{}) *bool { +func PhysicalReplicationSlot_IsTerraformElement(x any) *bool { _init_.Initialize() if err := validatePhysicalReplicationSlot_IsTerraformElementParameters(x); err != nil { @@ -515,7 +514,7 @@ func PhysicalReplicationSlot_IsTerraformElement(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.physicalReplicationSlot.PhysicalReplicationSlot", "isTerraformElement", - []interface{}{x}, + []any{x}, &returns, ) @@ -523,7 +522,7 @@ func PhysicalReplicationSlot_IsTerraformElement(x interface{}) *bool { } // Experimental. -func PhysicalReplicationSlot_IsTerraformResource(x interface{}) *bool { +func PhysicalReplicationSlot_IsTerraformResource(x any) *bool { _init_.Initialize() if err := validatePhysicalReplicationSlot_IsTerraformResourceParameters(x); err != nil { @@ -534,7 +533,7 @@ func PhysicalReplicationSlot_IsTerraformResource(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.physicalReplicationSlot.PhysicalReplicationSlot", "isTerraformResource", - []interface{}{x}, + []any{x}, &returns, ) @@ -559,31 +558,31 @@ func (p *jsiiProxy_PhysicalReplicationSlot) AddMoveTarget(moveTarget *string) { _jsii_.InvokeVoid( p, "addMoveTarget", - []interface{}{moveTarget}, + []any{moveTarget}, ) } -func (p *jsiiProxy_PhysicalReplicationSlot) AddOverride(path *string, value interface{}) { +func (p *jsiiProxy_PhysicalReplicationSlot) AddOverride(path *string, value any) { if err := p.validateAddOverrideParameters(path, value); err != nil { panic(err) } _jsii_.InvokeVoid( p, "addOverride", - []interface{}{path, value}, + []any{path, value}, ) } -func (p *jsiiProxy_PhysicalReplicationSlot) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (p *jsiiProxy_PhysicalReplicationSlot) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := p.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( p, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -599,7 +598,7 @@ func (p *jsiiProxy_PhysicalReplicationSlot) GetBooleanAttribute(terraformAttribu _jsii_.Invoke( p, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -615,7 +614,7 @@ func (p *jsiiProxy_PhysicalReplicationSlot) GetBooleanMapAttribute(terraformAttr _jsii_.Invoke( p, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -631,7 +630,7 @@ func (p *jsiiProxy_PhysicalReplicationSlot) GetListAttribute(terraformAttribute _jsii_.Invoke( p, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -647,7 +646,7 @@ func (p *jsiiProxy_PhysicalReplicationSlot) GetNumberAttribute(terraformAttribut _jsii_.Invoke( p, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -663,7 +662,7 @@ func (p *jsiiProxy_PhysicalReplicationSlot) GetNumberListAttribute(terraformAttr _jsii_.Invoke( p, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -679,7 +678,7 @@ func (p *jsiiProxy_PhysicalReplicationSlot) GetNumberMapAttribute(terraformAttri _jsii_.Invoke( p, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -695,7 +694,7 @@ func (p *jsiiProxy_PhysicalReplicationSlot) GetStringAttribute(terraformAttribut _jsii_.Invoke( p, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -711,15 +710,15 @@ func (p *jsiiProxy_PhysicalReplicationSlot) GetStringMapAttribute(terraformAttri _jsii_.Invoke( p, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) return returns } -func (p *jsiiProxy_PhysicalReplicationSlot) HasResourceMove() interface{} { - var returns interface{} +func (p *jsiiProxy_PhysicalReplicationSlot) HasResourceMove() any { + var returns any _jsii_.Invoke( p, @@ -738,7 +737,7 @@ func (p *jsiiProxy_PhysicalReplicationSlot) ImportFrom(id *string, provider cdkt _jsii_.InvokeVoid( p, "importFrom", - []interface{}{id, provider}, + []any{id, provider}, ) } @@ -751,7 +750,7 @@ func (p *jsiiProxy_PhysicalReplicationSlot) InterpolationForAttribute(terraformA _jsii_.Invoke( p, "interpolationForAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -765,18 +764,18 @@ func (p *jsiiProxy_PhysicalReplicationSlot) MoveFromId(id *string) { _jsii_.InvokeVoid( p, "moveFromId", - []interface{}{id}, + []any{id}, ) } -func (p *jsiiProxy_PhysicalReplicationSlot) MoveTo(moveTarget *string, index interface{}) { +func (p *jsiiProxy_PhysicalReplicationSlot) MoveTo(moveTarget *string, index any) { if err := p.validateMoveToParameters(moveTarget, index); err != nil { panic(err) } _jsii_.InvokeVoid( p, "moveTo", - []interface{}{moveTarget, index}, + []any{moveTarget, index}, ) } @@ -787,7 +786,7 @@ func (p *jsiiProxy_PhysicalReplicationSlot) MoveToId(id *string) { _jsii_.InvokeVoid( p, "moveToId", - []interface{}{id}, + []any{id}, ) } @@ -798,7 +797,7 @@ func (p *jsiiProxy_PhysicalReplicationSlot) OverrideLogicalId(newLogicalId *stri _jsii_.InvokeVoid( p, "overrideLogicalId", - []interface{}{newLogicalId}, + []any{newLogicalId}, ) } @@ -818,8 +817,8 @@ func (p *jsiiProxy_PhysicalReplicationSlot) ResetOverrideLogicalId() { ) } -func (p *jsiiProxy_PhysicalReplicationSlot) SynthesizeAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (p *jsiiProxy_PhysicalReplicationSlot) SynthesizeAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( p, @@ -831,8 +830,8 @@ func (p *jsiiProxy_PhysicalReplicationSlot) SynthesizeAttributes() *map[string]i return returns } -func (p *jsiiProxy_PhysicalReplicationSlot) SynthesizeHclAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (p *jsiiProxy_PhysicalReplicationSlot) SynthesizeHclAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( p, @@ -844,8 +843,8 @@ func (p *jsiiProxy_PhysicalReplicationSlot) SynthesizeHclAttributes() *map[strin return returns } -func (p *jsiiProxy_PhysicalReplicationSlot) ToHclTerraform() interface{} { - var returns interface{} +func (p *jsiiProxy_PhysicalReplicationSlot) ToHclTerraform() any { + var returns any _jsii_.Invoke( p, @@ -857,8 +856,8 @@ func (p *jsiiProxy_PhysicalReplicationSlot) ToHclTerraform() interface{} { return returns } -func (p *jsiiProxy_PhysicalReplicationSlot) ToMetadata() interface{} { - var returns interface{} +func (p *jsiiProxy_PhysicalReplicationSlot) ToMetadata() any { + var returns any _jsii_.Invoke( p, @@ -883,8 +882,8 @@ func (p *jsiiProxy_PhysicalReplicationSlot) ToString() *string { return returns } -func (p *jsiiProxy_PhysicalReplicationSlot) ToTerraform() interface{} { - var returns interface{} +func (p *jsiiProxy_PhysicalReplicationSlot) ToTerraform() any { + var returns any _jsii_.Invoke( p, @@ -895,4 +894,3 @@ func (p *jsiiProxy_PhysicalReplicationSlot) ToTerraform() interface{} { return returns } - diff --git a/gen/postgresql/physicalreplicationslot/PhysicalReplicationSlotConfig.go b/gen/postgresql/physicalreplicationslot/PhysicalReplicationSlotConfig.go index ea9d65a189..1fa469f6be 100644 --- a/gen/postgresql/physicalreplicationslot/PhysicalReplicationSlotConfig.go +++ b/gen/postgresql/physicalreplicationslot/PhysicalReplicationSlotConfig.go @@ -6,9 +6,9 @@ import ( type PhysicalReplicationSlotConfig struct { // Experimental. - Connection interface{} `field:"optional" json:"connection" yaml:"connection"` + Connection any `field:"optional" json:"connection" yaml:"connection"` // Experimental. - Count interface{} `field:"optional" json:"count" yaml:"count"` + Count any `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. @@ -18,7 +18,7 @@ type PhysicalReplicationSlotConfig struct { // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. - Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` + Provisioners *[]any `field:"optional" json:"provisioners" yaml:"provisioners"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/physical_replication_slot#name PhysicalReplicationSlot#name}. Name *string `field:"required" json:"name" yaml:"name"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/physical_replication_slot#id PhysicalReplicationSlot#id}. @@ -27,4 +27,3 @@ type PhysicalReplicationSlotConfig struct { // If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. Id *string `field:"optional" json:"id" yaml:"id"` } - diff --git a/gen/postgresql/physicalreplicationslot/PhysicalReplicationSlot__checks.go b/gen/postgresql/physicalreplicationslot/PhysicalReplicationSlot__checks.go index 73581ae9b1..ae2729475b 100644 --- a/gen/postgresql/physicalreplicationslot/PhysicalReplicationSlot__checks.go +++ b/gen/postgresql/physicalreplicationslot/PhysicalReplicationSlot__checks.go @@ -19,7 +19,7 @@ func (p *jsiiProxy_PhysicalReplicationSlot) validateAddMoveTargetParameters(move return nil } -func (p *jsiiProxy_PhysicalReplicationSlot) validateAddOverrideParameters(path *string, value interface{}) error { +func (p *jsiiProxy_PhysicalReplicationSlot) validateAddOverrideParameters(path *string, value any) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } @@ -127,7 +127,7 @@ func (p *jsiiProxy_PhysicalReplicationSlot) validateMoveFromIdParameters(id *str return nil } -func (p *jsiiProxy_PhysicalReplicationSlot) validateMoveToParameters(moveTarget *string, index interface{}) error { +func (p *jsiiProxy_PhysicalReplicationSlot) validateMoveToParameters(moveTarget *string, index any) error { if moveTarget == nil { return fmt.Errorf("parameter moveTarget is required, but nil was provided") } @@ -220,7 +220,7 @@ func validatePhysicalReplicationSlot_GenerateConfigForImportParameters(scope con return nil } -func validatePhysicalReplicationSlot_IsConstructParameters(x interface{}) error { +func validatePhysicalReplicationSlot_IsConstructParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -228,7 +228,7 @@ func validatePhysicalReplicationSlot_IsConstructParameters(x interface{}) error return nil } -func validatePhysicalReplicationSlot_IsTerraformElementParameters(x interface{}) error { +func validatePhysicalReplicationSlot_IsTerraformElementParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -236,7 +236,7 @@ func validatePhysicalReplicationSlot_IsTerraformElementParameters(x interface{}) return nil } -func validatePhysicalReplicationSlot_IsTerraformResourceParameters(x interface{}) error { +func validatePhysicalReplicationSlot_IsTerraformResourceParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -244,7 +244,7 @@ func validatePhysicalReplicationSlot_IsTerraformResourceParameters(x interface{} return nil } -func (j *jsiiProxy_PhysicalReplicationSlot) validateSetConnectionParameters(val interface{}) error { +func (j *jsiiProxy_PhysicalReplicationSlot) validateSetConnectionParameters(val any) error { switch val.(type) { case *cdktf.SSHProvisionerConnection: val := val.(*cdktf.SSHProvisionerConnection) @@ -277,7 +277,7 @@ func (j *jsiiProxy_PhysicalReplicationSlot) validateSetConnectionParameters(val return nil } -func (j *jsiiProxy_PhysicalReplicationSlot) validateSetCountParameters(val interface{}) error { +func (j *jsiiProxy_PhysicalReplicationSlot) validateSetCountParameters(val any) error { switch val.(type) { case *float64: // ok @@ -358,7 +358,7 @@ func (j *jsiiProxy_PhysicalReplicationSlot) validateSetNameParameters(val *strin return nil } -func (j *jsiiProxy_PhysicalReplicationSlot) validateSetProvisionersParameters(val *[]interface{}) error { +func (j *jsiiProxy_PhysicalReplicationSlot) validateSetProvisionersParameters(val *[]any) error { for idx_97dfc6, v := range *val { switch v.(type) { case *cdktf.FileProvisioner: @@ -422,4 +422,3 @@ func validateNewPhysicalReplicationSlotParameters(scope constructs.Construct, id return nil } - diff --git a/gen/postgresql/physicalreplicationslot/main.go b/gen/postgresql/physicalreplicationslot/main.go index c75992352f..73915c132a 100644 --- a/gen/postgresql/physicalreplicationslot/main.go +++ b/gen/postgresql/physicalreplicationslot/main.go @@ -9,7 +9,7 @@ import ( func init() { _jsii_.RegisterClass( "@cdktf/provider-postgresql.physicalReplicationSlot.PhysicalReplicationSlot", - reflect.TypeOf((*PhysicalReplicationSlot)(nil)).Elem(), + reflect.TypeFor[PhysicalReplicationSlot](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "addMoveTarget", GoMethod: "AddMoveTarget"}, _jsii_.MemberMethod{JsiiMethod: "addOverride", GoMethod: "AddOverride"}, @@ -58,7 +58,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "toString", GoMethod: "ToString"}, _jsii_.MemberMethod{JsiiMethod: "toTerraform", GoMethod: "ToTerraform"}, }, - func() interface{} { + func() any { j := jsiiProxy_PhysicalReplicationSlot{} _jsii_.InitJsiiProxy(&j.Type__cdktfTerraformResource) return &j @@ -66,6 +66,6 @@ func init() { ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.physicalReplicationSlot.PhysicalReplicationSlotConfig", - reflect.TypeOf((*PhysicalReplicationSlotConfig)(nil)).Elem(), + reflect.TypeFor[PhysicalReplicationSlotConfig](), ) } diff --git a/gen/postgresql/provider/PostgresqlProvider.go b/gen/postgresql/provider/PostgresqlProvider.go index 97b61bbda1..964f41d86c 100644 --- a/gen/postgresql/provider/PostgresqlProvider.go +++ b/gen/postgresql/provider/PostgresqlProvider.go @@ -15,9 +15,9 @@ type PostgresqlProvider interface { Alias() *string SetAlias(val *string) AliasInput() *string - AwsRdsIamAuth() interface{} - SetAwsRdsIamAuth(val interface{}) - AwsRdsIamAuthInput() interface{} + AwsRdsIamAuth() any + SetAwsRdsIamAuth(val any) + AwsRdsIamAuthInput() any AwsRdsIamProfile() *string SetAwsRdsIamProfile(val *string) AwsRdsIamProfileInput() *string @@ -27,9 +27,9 @@ type PostgresqlProvider interface { AwsRdsIamRegion() *string SetAwsRdsIamRegion(val *string) AwsRdsIamRegionInput() *string - AzureIdentityAuth() interface{} - SetAzureIdentityAuth(val interface{}) - AzureIdentityAuthInput() interface{} + AzureIdentityAuth() any + SetAzureIdentityAuth(val any) + AzureIdentityAuthInput() any AzureTenantId() *string SetAzureTenantId(val *string) AzureTenantIdInput() *string @@ -42,7 +42,7 @@ type PostgresqlProvider interface { SetConnectTimeout(val *float64) ConnectTimeoutInput() *float64 // Experimental. - ConstructNodeMetadata() *map[string]interface{} + ConstructNodeMetadata() *map[string]any Database() *string SetDatabase(val *string) DatabaseInput() *string @@ -66,7 +66,7 @@ type PostgresqlProvider interface { SetMaxConnections(val *float64) MaxConnectionsInput() *float64 // Experimental. - MetaAttributes() *map[string]interface{} + MetaAttributes() *map[string]any // The tree node. Node() constructs.Node Password() *string @@ -76,7 +76,7 @@ type PostgresqlProvider interface { SetPort(val *float64) PortInput() *float64 // Experimental. - RawOverrides() interface{} + RawOverrides() any Scheme() *string SetScheme(val *string) SchemeInput() *string @@ -89,9 +89,9 @@ type PostgresqlProvider interface { Sslrootcert() *string SetSslrootcert(val *string) SslrootcertInput() *string - Superuser() interface{} - SetSuperuser(val interface{}) - SuperuserInput() interface{} + Superuser() any + SetSuperuser(val any) + SuperuserInput() any // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. @@ -102,7 +102,7 @@ type PostgresqlProvider interface { SetUsername(val *string) UsernameInput() *string // Experimental. - AddOverride(path *string, value interface{}) + AddOverride(path *string, value any) // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) @@ -132,17 +132,17 @@ type PostgresqlProvider interface { ResetSslrootcert() ResetSuperuser() ResetUsername() - SynthesizeAttributes() *map[string]interface{} - SynthesizeHclAttributes() *map[string]interface{} + SynthesizeAttributes() *map[string]any + SynthesizeHclAttributes() *map[string]any // Experimental. - ToHclTerraform() interface{} + ToHclTerraform() any // Experimental. - ToMetadata() interface{} + ToMetadata() any // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. - ToTerraform() interface{} + ToTerraform() any } // The jsii proxy struct for PostgresqlProvider @@ -170,8 +170,8 @@ func (j *jsiiProxy_PostgresqlProvider) AliasInput() *string { return returns } -func (j *jsiiProxy_PostgresqlProvider) AwsRdsIamAuth() interface{} { - var returns interface{} +func (j *jsiiProxy_PostgresqlProvider) AwsRdsIamAuth() any { + var returns any _jsii_.Get( j, "awsRdsIamAuth", @@ -180,8 +180,8 @@ func (j *jsiiProxy_PostgresqlProvider) AwsRdsIamAuth() interface{} { return returns } -func (j *jsiiProxy_PostgresqlProvider) AwsRdsIamAuthInput() interface{} { - var returns interface{} +func (j *jsiiProxy_PostgresqlProvider) AwsRdsIamAuthInput() any { + var returns any _jsii_.Get( j, "awsRdsIamAuthInput", @@ -250,8 +250,8 @@ func (j *jsiiProxy_PostgresqlProvider) AwsRdsIamRegionInput() *string { return returns } -func (j *jsiiProxy_PostgresqlProvider) AzureIdentityAuth() interface{} { - var returns interface{} +func (j *jsiiProxy_PostgresqlProvider) AzureIdentityAuth() any { + var returns any _jsii_.Get( j, "azureIdentityAuth", @@ -260,8 +260,8 @@ func (j *jsiiProxy_PostgresqlProvider) AzureIdentityAuth() interface{} { return returns } -func (j *jsiiProxy_PostgresqlProvider) AzureIdentityAuthInput() interface{} { - var returns interface{} +func (j *jsiiProxy_PostgresqlProvider) AzureIdentityAuthInput() any { + var returns any _jsii_.Get( j, "azureIdentityAuthInput", @@ -340,8 +340,8 @@ func (j *jsiiProxy_PostgresqlProvider) ConnectTimeoutInput() *float64 { return returns } -func (j *jsiiProxy_PostgresqlProvider) ConstructNodeMetadata() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_PostgresqlProvider) ConstructNodeMetadata() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "constructNodeMetadata", @@ -490,8 +490,8 @@ func (j *jsiiProxy_PostgresqlProvider) MaxConnectionsInput() *float64 { return returns } -func (j *jsiiProxy_PostgresqlProvider) MetaAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_PostgresqlProvider) MetaAttributes() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "metaAttributes", @@ -550,8 +550,8 @@ func (j *jsiiProxy_PostgresqlProvider) PortInput() *float64 { return returns } -func (j *jsiiProxy_PostgresqlProvider) RawOverrides() interface{} { - var returns interface{} +func (j *jsiiProxy_PostgresqlProvider) RawOverrides() any { + var returns any _jsii_.Get( j, "rawOverrides", @@ -640,8 +640,8 @@ func (j *jsiiProxy_PostgresqlProvider) SslrootcertInput() *string { return returns } -func (j *jsiiProxy_PostgresqlProvider) Superuser() interface{} { - var returns interface{} +func (j *jsiiProxy_PostgresqlProvider) Superuser() any { + var returns any _jsii_.Get( j, "superuser", @@ -650,8 +650,8 @@ func (j *jsiiProxy_PostgresqlProvider) Superuser() interface{} { return returns } -func (j *jsiiProxy_PostgresqlProvider) SuperuserInput() interface{} { - var returns interface{} +func (j *jsiiProxy_PostgresqlProvider) SuperuserInput() any { + var returns any _jsii_.Get( j, "superuserInput", @@ -710,7 +710,6 @@ func (j *jsiiProxy_PostgresqlProvider) UsernameInput() *string { return returns } - // Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs postgresql} Resource. func NewPostgresqlProvider(scope constructs.Construct, id *string, config *PostgresqlProviderConfig) PostgresqlProvider { _init_.Initialize() @@ -722,7 +721,7 @@ func NewPostgresqlProvider(scope constructs.Construct, id *string, config *Postg _jsii_.Create( "@cdktf/provider-postgresql.provider.PostgresqlProvider", - []interface{}{scope, id, config}, + []any{scope, id, config}, &j, ) @@ -735,12 +734,12 @@ func NewPostgresqlProvider_Override(p PostgresqlProvider, scope constructs.Const _jsii_.Create( "@cdktf/provider-postgresql.provider.PostgresqlProvider", - []interface{}{scope, id, config}, + []any{scope, id, config}, p, ) } -func (j *jsiiProxy_PostgresqlProvider)SetAlias(val *string) { +func (j *jsiiProxy_PostgresqlProvider) SetAlias(val *string) { _jsii_.Set( j, "alias", @@ -748,7 +747,7 @@ func (j *jsiiProxy_PostgresqlProvider)SetAlias(val *string) { ) } -func (j *jsiiProxy_PostgresqlProvider)SetAwsRdsIamAuth(val interface{}) { +func (j *jsiiProxy_PostgresqlProvider) SetAwsRdsIamAuth(val any) { if err := j.validateSetAwsRdsIamAuthParameters(val); err != nil { panic(err) } @@ -759,7 +758,7 @@ func (j *jsiiProxy_PostgresqlProvider)SetAwsRdsIamAuth(val interface{}) { ) } -func (j *jsiiProxy_PostgresqlProvider)SetAwsRdsIamProfile(val *string) { +func (j *jsiiProxy_PostgresqlProvider) SetAwsRdsIamProfile(val *string) { _jsii_.Set( j, "awsRdsIamProfile", @@ -767,7 +766,7 @@ func (j *jsiiProxy_PostgresqlProvider)SetAwsRdsIamProfile(val *string) { ) } -func (j *jsiiProxy_PostgresqlProvider)SetAwsRdsIamProviderRoleArn(val *string) { +func (j *jsiiProxy_PostgresqlProvider) SetAwsRdsIamProviderRoleArn(val *string) { _jsii_.Set( j, "awsRdsIamProviderRoleArn", @@ -775,7 +774,7 @@ func (j *jsiiProxy_PostgresqlProvider)SetAwsRdsIamProviderRoleArn(val *string) { ) } -func (j *jsiiProxy_PostgresqlProvider)SetAwsRdsIamRegion(val *string) { +func (j *jsiiProxy_PostgresqlProvider) SetAwsRdsIamRegion(val *string) { _jsii_.Set( j, "awsRdsIamRegion", @@ -783,7 +782,7 @@ func (j *jsiiProxy_PostgresqlProvider)SetAwsRdsIamRegion(val *string) { ) } -func (j *jsiiProxy_PostgresqlProvider)SetAzureIdentityAuth(val interface{}) { +func (j *jsiiProxy_PostgresqlProvider) SetAzureIdentityAuth(val any) { if err := j.validateSetAzureIdentityAuthParameters(val); err != nil { panic(err) } @@ -794,7 +793,7 @@ func (j *jsiiProxy_PostgresqlProvider)SetAzureIdentityAuth(val interface{}) { ) } -func (j *jsiiProxy_PostgresqlProvider)SetAzureTenantId(val *string) { +func (j *jsiiProxy_PostgresqlProvider) SetAzureTenantId(val *string) { _jsii_.Set( j, "azureTenantId", @@ -802,7 +801,7 @@ func (j *jsiiProxy_PostgresqlProvider)SetAzureTenantId(val *string) { ) } -func (j *jsiiProxy_PostgresqlProvider)SetClientcert(val *PostgresqlProviderClientcert) { +func (j *jsiiProxy_PostgresqlProvider) SetClientcert(val *PostgresqlProviderClientcert) { if err := j.validateSetClientcertParameters(val); err != nil { panic(err) } @@ -813,7 +812,7 @@ func (j *jsiiProxy_PostgresqlProvider)SetClientcert(val *PostgresqlProviderClien ) } -func (j *jsiiProxy_PostgresqlProvider)SetConnectTimeout(val *float64) { +func (j *jsiiProxy_PostgresqlProvider) SetConnectTimeout(val *float64) { _jsii_.Set( j, "connectTimeout", @@ -821,7 +820,7 @@ func (j *jsiiProxy_PostgresqlProvider)SetConnectTimeout(val *float64) { ) } -func (j *jsiiProxy_PostgresqlProvider)SetDatabase(val *string) { +func (j *jsiiProxy_PostgresqlProvider) SetDatabase(val *string) { _jsii_.Set( j, "database", @@ -829,7 +828,7 @@ func (j *jsiiProxy_PostgresqlProvider)SetDatabase(val *string) { ) } -func (j *jsiiProxy_PostgresqlProvider)SetDatabaseUsername(val *string) { +func (j *jsiiProxy_PostgresqlProvider) SetDatabaseUsername(val *string) { _jsii_.Set( j, "databaseUsername", @@ -837,7 +836,7 @@ func (j *jsiiProxy_PostgresqlProvider)SetDatabaseUsername(val *string) { ) } -func (j *jsiiProxy_PostgresqlProvider)SetExpectedVersion(val *string) { +func (j *jsiiProxy_PostgresqlProvider) SetExpectedVersion(val *string) { _jsii_.Set( j, "expectedVersion", @@ -845,7 +844,7 @@ func (j *jsiiProxy_PostgresqlProvider)SetExpectedVersion(val *string) { ) } -func (j *jsiiProxy_PostgresqlProvider)SetGcpIamImpersonateServiceAccount(val *string) { +func (j *jsiiProxy_PostgresqlProvider) SetGcpIamImpersonateServiceAccount(val *string) { _jsii_.Set( j, "gcpIamImpersonateServiceAccount", @@ -853,7 +852,7 @@ func (j *jsiiProxy_PostgresqlProvider)SetGcpIamImpersonateServiceAccount(val *st ) } -func (j *jsiiProxy_PostgresqlProvider)SetHost(val *string) { +func (j *jsiiProxy_PostgresqlProvider) SetHost(val *string) { _jsii_.Set( j, "host", @@ -861,7 +860,7 @@ func (j *jsiiProxy_PostgresqlProvider)SetHost(val *string) { ) } -func (j *jsiiProxy_PostgresqlProvider)SetMaxConnections(val *float64) { +func (j *jsiiProxy_PostgresqlProvider) SetMaxConnections(val *float64) { _jsii_.Set( j, "maxConnections", @@ -869,7 +868,7 @@ func (j *jsiiProxy_PostgresqlProvider)SetMaxConnections(val *float64) { ) } -func (j *jsiiProxy_PostgresqlProvider)SetPassword(val *string) { +func (j *jsiiProxy_PostgresqlProvider) SetPassword(val *string) { _jsii_.Set( j, "password", @@ -877,7 +876,7 @@ func (j *jsiiProxy_PostgresqlProvider)SetPassword(val *string) { ) } -func (j *jsiiProxy_PostgresqlProvider)SetPort(val *float64) { +func (j *jsiiProxy_PostgresqlProvider) SetPort(val *float64) { _jsii_.Set( j, "port", @@ -885,7 +884,7 @@ func (j *jsiiProxy_PostgresqlProvider)SetPort(val *float64) { ) } -func (j *jsiiProxy_PostgresqlProvider)SetScheme(val *string) { +func (j *jsiiProxy_PostgresqlProvider) SetScheme(val *string) { _jsii_.Set( j, "scheme", @@ -893,7 +892,7 @@ func (j *jsiiProxy_PostgresqlProvider)SetScheme(val *string) { ) } -func (j *jsiiProxy_PostgresqlProvider)SetSslmode(val *string) { +func (j *jsiiProxy_PostgresqlProvider) SetSslmode(val *string) { _jsii_.Set( j, "sslmode", @@ -901,7 +900,7 @@ func (j *jsiiProxy_PostgresqlProvider)SetSslmode(val *string) { ) } -func (j *jsiiProxy_PostgresqlProvider)SetSslMode(val *string) { +func (j *jsiiProxy_PostgresqlProvider) SetSslMode(val *string) { _jsii_.Set( j, "sslMode", @@ -909,7 +908,7 @@ func (j *jsiiProxy_PostgresqlProvider)SetSslMode(val *string) { ) } -func (j *jsiiProxy_PostgresqlProvider)SetSslrootcert(val *string) { +func (j *jsiiProxy_PostgresqlProvider) SetSslrootcert(val *string) { _jsii_.Set( j, "sslrootcert", @@ -917,7 +916,7 @@ func (j *jsiiProxy_PostgresqlProvider)SetSslrootcert(val *string) { ) } -func (j *jsiiProxy_PostgresqlProvider)SetSuperuser(val interface{}) { +func (j *jsiiProxy_PostgresqlProvider) SetSuperuser(val any) { if err := j.validateSetSuperuserParameters(val); err != nil { panic(err) } @@ -928,7 +927,7 @@ func (j *jsiiProxy_PostgresqlProvider)SetSuperuser(val interface{}) { ) } -func (j *jsiiProxy_PostgresqlProvider)SetUsername(val *string) { +func (j *jsiiProxy_PostgresqlProvider) SetUsername(val *string) { _jsii_.Set( j, "username", @@ -948,7 +947,7 @@ func PostgresqlProvider_GenerateConfigForImport(scope constructs.Construct, impo _jsii_.StaticInvoke( "@cdktf/provider-postgresql.provider.PostgresqlProvider", "generateConfigForImport", - []interface{}{scope, importToId, importFromId, provider}, + []any{scope, importToId, importFromId, provider}, &returns, ) @@ -972,7 +971,7 @@ func PostgresqlProvider_GenerateConfigForImport(scope constructs.Construct, impo // this type-testing method instead. // // Returns: true if `x` is an object created from a class which extends `Construct`. -func PostgresqlProvider_IsConstruct(x interface{}) *bool { +func PostgresqlProvider_IsConstruct(x any) *bool { _init_.Initialize() if err := validatePostgresqlProvider_IsConstructParameters(x); err != nil { @@ -983,7 +982,7 @@ func PostgresqlProvider_IsConstruct(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.provider.PostgresqlProvider", "isConstruct", - []interface{}{x}, + []any{x}, &returns, ) @@ -991,7 +990,7 @@ func PostgresqlProvider_IsConstruct(x interface{}) *bool { } // Experimental. -func PostgresqlProvider_IsTerraformElement(x interface{}) *bool { +func PostgresqlProvider_IsTerraformElement(x any) *bool { _init_.Initialize() if err := validatePostgresqlProvider_IsTerraformElementParameters(x); err != nil { @@ -1002,7 +1001,7 @@ func PostgresqlProvider_IsTerraformElement(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.provider.PostgresqlProvider", "isTerraformElement", - []interface{}{x}, + []any{x}, &returns, ) @@ -1010,7 +1009,7 @@ func PostgresqlProvider_IsTerraformElement(x interface{}) *bool { } // Experimental. -func PostgresqlProvider_IsTerraformProvider(x interface{}) *bool { +func PostgresqlProvider_IsTerraformProvider(x any) *bool { _init_.Initialize() if err := validatePostgresqlProvider_IsTerraformProviderParameters(x); err != nil { @@ -1021,7 +1020,7 @@ func PostgresqlProvider_IsTerraformProvider(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.provider.PostgresqlProvider", "isTerraformProvider", - []interface{}{x}, + []any{x}, &returns, ) @@ -1039,14 +1038,14 @@ func PostgresqlProvider_TfResourceType() *string { return returns } -func (p *jsiiProxy_PostgresqlProvider) AddOverride(path *string, value interface{}) { +func (p *jsiiProxy_PostgresqlProvider) AddOverride(path *string, value any) { if err := p.validateAddOverrideParameters(path, value); err != nil { panic(err) } _jsii_.InvokeVoid( p, "addOverride", - []interface{}{path, value}, + []any{path, value}, ) } @@ -1057,7 +1056,7 @@ func (p *jsiiProxy_PostgresqlProvider) OverrideLogicalId(newLogicalId *string) { _jsii_.InvokeVoid( p, "overrideLogicalId", - []interface{}{newLogicalId}, + []any{newLogicalId}, ) } @@ -1253,8 +1252,8 @@ func (p *jsiiProxy_PostgresqlProvider) ResetUsername() { ) } -func (p *jsiiProxy_PostgresqlProvider) SynthesizeAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (p *jsiiProxy_PostgresqlProvider) SynthesizeAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( p, @@ -1266,8 +1265,8 @@ func (p *jsiiProxy_PostgresqlProvider) SynthesizeAttributes() *map[string]interf return returns } -func (p *jsiiProxy_PostgresqlProvider) SynthesizeHclAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (p *jsiiProxy_PostgresqlProvider) SynthesizeHclAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( p, @@ -1279,8 +1278,8 @@ func (p *jsiiProxy_PostgresqlProvider) SynthesizeHclAttributes() *map[string]int return returns } -func (p *jsiiProxy_PostgresqlProvider) ToHclTerraform() interface{} { - var returns interface{} +func (p *jsiiProxy_PostgresqlProvider) ToHclTerraform() any { + var returns any _jsii_.Invoke( p, @@ -1292,8 +1291,8 @@ func (p *jsiiProxy_PostgresqlProvider) ToHclTerraform() interface{} { return returns } -func (p *jsiiProxy_PostgresqlProvider) ToMetadata() interface{} { - var returns interface{} +func (p *jsiiProxy_PostgresqlProvider) ToMetadata() any { + var returns any _jsii_.Invoke( p, @@ -1318,8 +1317,8 @@ func (p *jsiiProxy_PostgresqlProvider) ToString() *string { return returns } -func (p *jsiiProxy_PostgresqlProvider) ToTerraform() interface{} { - var returns interface{} +func (p *jsiiProxy_PostgresqlProvider) ToTerraform() any { + var returns any _jsii_.Invoke( p, @@ -1330,4 +1329,3 @@ func (p *jsiiProxy_PostgresqlProvider) ToTerraform() interface{} { return returns } - diff --git a/gen/postgresql/provider/PostgresqlProviderClientcert.go b/gen/postgresql/provider/PostgresqlProviderClientcert.go index 7f5ea3f97e..b9259384b4 100644 --- a/gen/postgresql/provider/PostgresqlProviderClientcert.go +++ b/gen/postgresql/provider/PostgresqlProviderClientcert.go @@ -1,6 +1,5 @@ package provider - type PostgresqlProviderClientcert struct { // The SSL client certificate file path. The file must contain PEM encoded data. // @@ -13,6 +12,5 @@ type PostgresqlProviderClientcert struct { // Must be set to true if you are inlining the cert/key instead of using a file path. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs#sslinline PostgresqlProvider#sslinline} - Sslinline interface{} `field:"optional" json:"sslinline" yaml:"sslinline"` + Sslinline any `field:"optional" json:"sslinline" yaml:"sslinline"` } - diff --git a/gen/postgresql/provider/PostgresqlProviderConfig.go b/gen/postgresql/provider/PostgresqlProviderConfig.go index 27ba8412b9..ffe6d39e11 100644 --- a/gen/postgresql/provider/PostgresqlProviderConfig.go +++ b/gen/postgresql/provider/PostgresqlProviderConfig.go @@ -1,6 +1,5 @@ package provider - type PostgresqlProviderConfig struct { // Alias name. // @@ -9,7 +8,7 @@ type PostgresqlProviderConfig struct { // Use rds_iam instead of password authentication (see: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs#aws_rds_iam_auth PostgresqlProvider#aws_rds_iam_auth} - AwsRdsIamAuth interface{} `field:"optional" json:"awsRdsIamAuth" yaml:"awsRdsIamAuth"` + AwsRdsIamAuth any `field:"optional" json:"awsRdsIamAuth" yaml:"awsRdsIamAuth"` // AWS profile to use for IAM auth. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs#aws_rds_iam_profile PostgresqlProvider#aws_rds_iam_profile} @@ -25,7 +24,7 @@ type PostgresqlProviderConfig struct { // Use MS Azure identity OAuth token (see: https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-configure-sign-in-azure-ad-authentication). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs#azure_identity_auth PostgresqlProvider#azure_identity_auth} - AzureIdentityAuth interface{} `field:"optional" json:"azureIdentityAuth" yaml:"azureIdentityAuth"` + AzureIdentityAuth any `field:"optional" json:"azureIdentityAuth" yaml:"azureIdentityAuth"` // MS Azure tenant ID (see: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/client_config.html). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs#azure_tenant_id PostgresqlProvider#azure_tenant_id} @@ -85,10 +84,9 @@ type PostgresqlProviderConfig struct { // Specify if the user to connect as is a Postgres superuser or not.If not, some feature might be disabled (e.g.: Refreshing state password from Postgres). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs#superuser PostgresqlProvider#superuser} - Superuser interface{} `field:"optional" json:"superuser" yaml:"superuser"` + Superuser any `field:"optional" json:"superuser" yaml:"superuser"` // PostgreSQL user name to connect as. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs#username PostgresqlProvider#username} Username *string `field:"optional" json:"username" yaml:"username"` } - diff --git a/gen/postgresql/provider/PostgresqlProvider__checks.go b/gen/postgresql/provider/PostgresqlProvider__checks.go index 41fc34e006..72c8a8fdeb 100644 --- a/gen/postgresql/provider/PostgresqlProvider__checks.go +++ b/gen/postgresql/provider/PostgresqlProvider__checks.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/terraform-cdk-go/cdktf" ) -func (p *jsiiProxy_PostgresqlProvider) validateAddOverrideParameters(path *string, value interface{}) error { +func (p *jsiiProxy_PostgresqlProvider) validateAddOverrideParameters(path *string, value any) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } @@ -47,7 +47,7 @@ func validatePostgresqlProvider_GenerateConfigForImportParameters(scope construc return nil } -func validatePostgresqlProvider_IsConstructParameters(x interface{}) error { +func validatePostgresqlProvider_IsConstructParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -55,7 +55,7 @@ func validatePostgresqlProvider_IsConstructParameters(x interface{}) error { return nil } -func validatePostgresqlProvider_IsTerraformElementParameters(x interface{}) error { +func validatePostgresqlProvider_IsTerraformElementParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -63,7 +63,7 @@ func validatePostgresqlProvider_IsTerraformElementParameters(x interface{}) erro return nil } -func validatePostgresqlProvider_IsTerraformProviderParameters(x interface{}) error { +func validatePostgresqlProvider_IsTerraformProviderParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -71,7 +71,7 @@ func validatePostgresqlProvider_IsTerraformProviderParameters(x interface{}) err return nil } -func (j *jsiiProxy_PostgresqlProvider) validateSetAwsRdsIamAuthParameters(val interface{}) error { +func (j *jsiiProxy_PostgresqlProvider) validateSetAwsRdsIamAuthParameters(val any) error { switch val.(type) { case *bool: // ok @@ -88,7 +88,7 @@ func (j *jsiiProxy_PostgresqlProvider) validateSetAwsRdsIamAuthParameters(val in return nil } -func (j *jsiiProxy_PostgresqlProvider) validateSetAzureIdentityAuthParameters(val interface{}) error { +func (j *jsiiProxy_PostgresqlProvider) validateSetAzureIdentityAuthParameters(val any) error { switch val.(type) { case *bool: // ok @@ -113,7 +113,7 @@ func (j *jsiiProxy_PostgresqlProvider) validateSetClientcertParameters(val *Post return nil } -func (j *jsiiProxy_PostgresqlProvider) validateSetSuperuserParameters(val interface{}) error { +func (j *jsiiProxy_PostgresqlProvider) validateSetSuperuserParameters(val any) error { switch val.(type) { case *bool: // ok @@ -145,4 +145,3 @@ func validateNewPostgresqlProviderParameters(scope constructs.Construct, id *str return nil } - diff --git a/gen/postgresql/provider/main.go b/gen/postgresql/provider/main.go index aea6732123..d042148450 100644 --- a/gen/postgresql/provider/main.go +++ b/gen/postgresql/provider/main.go @@ -9,7 +9,7 @@ import ( func init() { _jsii_.RegisterClass( "@cdktf/provider-postgresql.provider.PostgresqlProvider", - reflect.TypeOf((*PostgresqlProvider)(nil)).Elem(), + reflect.TypeFor[PostgresqlProvider](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "addOverride", GoMethod: "AddOverride"}, _jsii_.MemberProperty{JsiiProperty: "alias", GoGetter: "Alias"}, @@ -100,7 +100,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "username", GoGetter: "Username"}, _jsii_.MemberProperty{JsiiProperty: "usernameInput", GoGetter: "UsernameInput"}, }, - func() interface{} { + func() any { j := jsiiProxy_PostgresqlProvider{} _jsii_.InitJsiiProxy(&j.Type__cdktfTerraformProvider) return &j @@ -108,10 +108,10 @@ func init() { ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.provider.PostgresqlProviderClientcert", - reflect.TypeOf((*PostgresqlProviderClientcert)(nil)).Elem(), + reflect.TypeFor[PostgresqlProviderClientcert](), ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.provider.PostgresqlProviderConfig", - reflect.TypeOf((*PostgresqlProviderConfig)(nil)).Elem(), + reflect.TypeFor[PostgresqlProviderConfig](), ) } diff --git a/gen/postgresql/publication/Publication.go b/gen/postgresql/publication/Publication.go index 1fad656bda..376265117e 100644 --- a/gen/postgresql/publication/Publication.go +++ b/gen/postgresql/publication/Publication.go @@ -12,21 +12,21 @@ import ( // Represents a {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/publication postgresql_publication}. type Publication interface { cdktf.TerraformResource - AllTables() interface{} - SetAllTables(val interface{}) - AllTablesInput() interface{} + AllTables() any + SetAllTables(val any) + AllTablesInput() any // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. - Connection() interface{} + Connection() any // Experimental. - SetConnection(val interface{}) + SetConnection(val any) // Experimental. - ConstructNodeMetadata() *map[string]interface{} + ConstructNodeMetadata() *map[string]any // Experimental. - Count() interface{} + Count() any // Experimental. - SetCount(val interface{}) + SetCount(val any) Database() *string SetDatabase(val *string) DatabaseInput() *string @@ -34,9 +34,9 @@ type Publication interface { DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) - DropCascade() interface{} - SetDropCascade(val interface{}) - DropCascadeInput() interface{} + DropCascade() any + SetDropCascade(val any) + DropCascadeInput() any // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. @@ -65,33 +65,33 @@ type Publication interface { // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. - Provisioners() *[]interface{} + Provisioners() *[]any // Experimental. - SetProvisioners(val *[]interface{}) + SetProvisioners(val *[]any) PublishParam() *[]*string SetPublishParam(val *[]*string) PublishParamInput() *[]*string - PublishViaPartitionRootParam() interface{} - SetPublishViaPartitionRootParam(val interface{}) - PublishViaPartitionRootParamInput() interface{} + PublishViaPartitionRootParam() any + SetPublishViaPartitionRootParam(val any) + PublishViaPartitionRootParamInput() any // Experimental. - RawOverrides() interface{} + RawOverrides() any Tables() *[]*string SetTables(val *[]*string) TablesInput() *[]*string // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. - TerraformMetaArguments() *map[string]interface{} + TerraformMetaArguments() *map[string]any // Experimental. TerraformResourceType() *string // Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. // Experimental. AddMoveTarget(moveTarget *string) // Experimental. - AddOverride(path *string, value interface{}) + AddOverride(path *string, value any) // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -109,7 +109,7 @@ type Publication interface { // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. - HasResourceMove() interface{} + HasResourceMove() any // Experimental. ImportFrom(id *string, provider cdktf.TerraformProvider) // Experimental. @@ -121,7 +121,7 @@ type Publication interface { MoveFromId(id *string) // Moves this resource to the target resource given by moveTarget. // Experimental. - MoveTo(moveTarget *string, index interface{}) + MoveTo(moveTarget *string, index any) // Moves this resource to the resource corresponding to "id". // Experimental. MoveToId(id *string) @@ -139,17 +139,17 @@ type Publication interface { ResetPublishParam() ResetPublishViaPartitionRootParam() ResetTables() - SynthesizeAttributes() *map[string]interface{} - SynthesizeHclAttributes() *map[string]interface{} + SynthesizeAttributes() *map[string]any + SynthesizeHclAttributes() *map[string]any // Experimental. - ToHclTerraform() interface{} + ToHclTerraform() any // Experimental. - ToMetadata() interface{} + ToMetadata() any // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. - ToTerraform() interface{} + ToTerraform() any } // The jsii proxy struct for Publication @@ -157,8 +157,8 @@ type jsiiProxy_Publication struct { internal.Type__cdktfTerraformResource } -func (j *jsiiProxy_Publication) AllTables() interface{} { - var returns interface{} +func (j *jsiiProxy_Publication) AllTables() any { + var returns any _jsii_.Get( j, "allTables", @@ -167,8 +167,8 @@ func (j *jsiiProxy_Publication) AllTables() interface{} { return returns } -func (j *jsiiProxy_Publication) AllTablesInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Publication) AllTablesInput() any { + var returns any _jsii_.Get( j, "allTablesInput", @@ -187,8 +187,8 @@ func (j *jsiiProxy_Publication) CdktfStack() cdktf.TerraformStack { return returns } -func (j *jsiiProxy_Publication) Connection() interface{} { - var returns interface{} +func (j *jsiiProxy_Publication) Connection() any { + var returns any _jsii_.Get( j, "connection", @@ -197,8 +197,8 @@ func (j *jsiiProxy_Publication) Connection() interface{} { return returns } -func (j *jsiiProxy_Publication) ConstructNodeMetadata() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_Publication) ConstructNodeMetadata() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "constructNodeMetadata", @@ -207,8 +207,8 @@ func (j *jsiiProxy_Publication) ConstructNodeMetadata() *map[string]interface{} return returns } -func (j *jsiiProxy_Publication) Count() interface{} { - var returns interface{} +func (j *jsiiProxy_Publication) Count() any { + var returns any _jsii_.Get( j, "count", @@ -247,8 +247,8 @@ func (j *jsiiProxy_Publication) DependsOn() *[]*string { return returns } -func (j *jsiiProxy_Publication) DropCascade() interface{} { - var returns interface{} +func (j *jsiiProxy_Publication) DropCascade() any { + var returns any _jsii_.Get( j, "dropCascade", @@ -257,8 +257,8 @@ func (j *jsiiProxy_Publication) DropCascade() interface{} { return returns } -func (j *jsiiProxy_Publication) DropCascadeInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Publication) DropCascadeInput() any { + var returns any _jsii_.Get( j, "dropCascadeInput", @@ -387,8 +387,8 @@ func (j *jsiiProxy_Publication) Provider() cdktf.TerraformProvider { return returns } -func (j *jsiiProxy_Publication) Provisioners() *[]interface{} { - var returns *[]interface{} +func (j *jsiiProxy_Publication) Provisioners() *[]any { + var returns *[]any _jsii_.Get( j, "provisioners", @@ -417,8 +417,8 @@ func (j *jsiiProxy_Publication) PublishParamInput() *[]*string { return returns } -func (j *jsiiProxy_Publication) PublishViaPartitionRootParam() interface{} { - var returns interface{} +func (j *jsiiProxy_Publication) PublishViaPartitionRootParam() any { + var returns any _jsii_.Get( j, "publishViaPartitionRootParam", @@ -427,8 +427,8 @@ func (j *jsiiProxy_Publication) PublishViaPartitionRootParam() interface{} { return returns } -func (j *jsiiProxy_Publication) PublishViaPartitionRootParamInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Publication) PublishViaPartitionRootParamInput() any { + var returns any _jsii_.Get( j, "publishViaPartitionRootParamInput", @@ -437,8 +437,8 @@ func (j *jsiiProxy_Publication) PublishViaPartitionRootParamInput() interface{} return returns } -func (j *jsiiProxy_Publication) RawOverrides() interface{} { - var returns interface{} +func (j *jsiiProxy_Publication) RawOverrides() any { + var returns any _jsii_.Get( j, "rawOverrides", @@ -477,8 +477,8 @@ func (j *jsiiProxy_Publication) TerraformGeneratorMetadata() *cdktf.TerraformPro return returns } -func (j *jsiiProxy_Publication) TerraformMetaArguments() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_Publication) TerraformMetaArguments() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "terraformMetaArguments", @@ -497,7 +497,6 @@ func (j *jsiiProxy_Publication) TerraformResourceType() *string { return returns } - // Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/publication postgresql_publication} Resource. func NewPublication(scope constructs.Construct, id *string, config *PublicationConfig) Publication { _init_.Initialize() @@ -509,7 +508,7 @@ func NewPublication(scope constructs.Construct, id *string, config *PublicationC _jsii_.Create( "@cdktf/provider-postgresql.publication.Publication", - []interface{}{scope, id, config}, + []any{scope, id, config}, &j, ) @@ -522,12 +521,12 @@ func NewPublication_Override(p Publication, scope constructs.Construct, id *stri _jsii_.Create( "@cdktf/provider-postgresql.publication.Publication", - []interface{}{scope, id, config}, + []any{scope, id, config}, p, ) } -func (j *jsiiProxy_Publication)SetAllTables(val interface{}) { +func (j *jsiiProxy_Publication) SetAllTables(val any) { if err := j.validateSetAllTablesParameters(val); err != nil { panic(err) } @@ -538,7 +537,7 @@ func (j *jsiiProxy_Publication)SetAllTables(val interface{}) { ) } -func (j *jsiiProxy_Publication)SetConnection(val interface{}) { +func (j *jsiiProxy_Publication) SetConnection(val any) { if err := j.validateSetConnectionParameters(val); err != nil { panic(err) } @@ -549,7 +548,7 @@ func (j *jsiiProxy_Publication)SetConnection(val interface{}) { ) } -func (j *jsiiProxy_Publication)SetCount(val interface{}) { +func (j *jsiiProxy_Publication) SetCount(val any) { if err := j.validateSetCountParameters(val); err != nil { panic(err) } @@ -560,7 +559,7 @@ func (j *jsiiProxy_Publication)SetCount(val interface{}) { ) } -func (j *jsiiProxy_Publication)SetDatabase(val *string) { +func (j *jsiiProxy_Publication) SetDatabase(val *string) { if err := j.validateSetDatabaseParameters(val); err != nil { panic(err) } @@ -571,7 +570,7 @@ func (j *jsiiProxy_Publication)SetDatabase(val *string) { ) } -func (j *jsiiProxy_Publication)SetDependsOn(val *[]*string) { +func (j *jsiiProxy_Publication) SetDependsOn(val *[]*string) { _jsii_.Set( j, "dependsOn", @@ -579,7 +578,7 @@ func (j *jsiiProxy_Publication)SetDependsOn(val *[]*string) { ) } -func (j *jsiiProxy_Publication)SetDropCascade(val interface{}) { +func (j *jsiiProxy_Publication) SetDropCascade(val any) { if err := j.validateSetDropCascadeParameters(val); err != nil { panic(err) } @@ -590,7 +589,7 @@ func (j *jsiiProxy_Publication)SetDropCascade(val interface{}) { ) } -func (j *jsiiProxy_Publication)SetForEach(val cdktf.ITerraformIterator) { +func (j *jsiiProxy_Publication) SetForEach(val cdktf.ITerraformIterator) { _jsii_.Set( j, "forEach", @@ -598,7 +597,7 @@ func (j *jsiiProxy_Publication)SetForEach(val cdktf.ITerraformIterator) { ) } -func (j *jsiiProxy_Publication)SetId(val *string) { +func (j *jsiiProxy_Publication) SetId(val *string) { if err := j.validateSetIdParameters(val); err != nil { panic(err) } @@ -609,7 +608,7 @@ func (j *jsiiProxy_Publication)SetId(val *string) { ) } -func (j *jsiiProxy_Publication)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { +func (j *jsiiProxy_Publication) SetLifecycle(val *cdktf.TerraformResourceLifecycle) { if err := j.validateSetLifecycleParameters(val); err != nil { panic(err) } @@ -620,7 +619,7 @@ func (j *jsiiProxy_Publication)SetLifecycle(val *cdktf.TerraformResourceLifecycl ) } -func (j *jsiiProxy_Publication)SetName(val *string) { +func (j *jsiiProxy_Publication) SetName(val *string) { if err := j.validateSetNameParameters(val); err != nil { panic(err) } @@ -631,7 +630,7 @@ func (j *jsiiProxy_Publication)SetName(val *string) { ) } -func (j *jsiiProxy_Publication)SetOwner(val *string) { +func (j *jsiiProxy_Publication) SetOwner(val *string) { if err := j.validateSetOwnerParameters(val); err != nil { panic(err) } @@ -642,7 +641,7 @@ func (j *jsiiProxy_Publication)SetOwner(val *string) { ) } -func (j *jsiiProxy_Publication)SetProvider(val cdktf.TerraformProvider) { +func (j *jsiiProxy_Publication) SetProvider(val cdktf.TerraformProvider) { _jsii_.Set( j, "provider", @@ -650,7 +649,7 @@ func (j *jsiiProxy_Publication)SetProvider(val cdktf.TerraformProvider) { ) } -func (j *jsiiProxy_Publication)SetProvisioners(val *[]interface{}) { +func (j *jsiiProxy_Publication) SetProvisioners(val *[]any) { if err := j.validateSetProvisionersParameters(val); err != nil { panic(err) } @@ -661,7 +660,7 @@ func (j *jsiiProxy_Publication)SetProvisioners(val *[]interface{}) { ) } -func (j *jsiiProxy_Publication)SetPublishParam(val *[]*string) { +func (j *jsiiProxy_Publication) SetPublishParam(val *[]*string) { if err := j.validateSetPublishParamParameters(val); err != nil { panic(err) } @@ -672,7 +671,7 @@ func (j *jsiiProxy_Publication)SetPublishParam(val *[]*string) { ) } -func (j *jsiiProxy_Publication)SetPublishViaPartitionRootParam(val interface{}) { +func (j *jsiiProxy_Publication) SetPublishViaPartitionRootParam(val any) { if err := j.validateSetPublishViaPartitionRootParamParameters(val); err != nil { panic(err) } @@ -683,7 +682,7 @@ func (j *jsiiProxy_Publication)SetPublishViaPartitionRootParam(val interface{}) ) } -func (j *jsiiProxy_Publication)SetTables(val *[]*string) { +func (j *jsiiProxy_Publication) SetTables(val *[]*string) { if err := j.validateSetTablesParameters(val); err != nil { panic(err) } @@ -706,7 +705,7 @@ func Publication_GenerateConfigForImport(scope constructs.Construct, importToId _jsii_.StaticInvoke( "@cdktf/provider-postgresql.publication.Publication", "generateConfigForImport", - []interface{}{scope, importToId, importFromId, provider}, + []any{scope, importToId, importFromId, provider}, &returns, ) @@ -730,7 +729,7 @@ func Publication_GenerateConfigForImport(scope constructs.Construct, importToId // this type-testing method instead. // // Returns: true if `x` is an object created from a class which extends `Construct`. -func Publication_IsConstruct(x interface{}) *bool { +func Publication_IsConstruct(x any) *bool { _init_.Initialize() if err := validatePublication_IsConstructParameters(x); err != nil { @@ -741,7 +740,7 @@ func Publication_IsConstruct(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.publication.Publication", "isConstruct", - []interface{}{x}, + []any{x}, &returns, ) @@ -749,7 +748,7 @@ func Publication_IsConstruct(x interface{}) *bool { } // Experimental. -func Publication_IsTerraformElement(x interface{}) *bool { +func Publication_IsTerraformElement(x any) *bool { _init_.Initialize() if err := validatePublication_IsTerraformElementParameters(x); err != nil { @@ -760,7 +759,7 @@ func Publication_IsTerraformElement(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.publication.Publication", "isTerraformElement", - []interface{}{x}, + []any{x}, &returns, ) @@ -768,7 +767,7 @@ func Publication_IsTerraformElement(x interface{}) *bool { } // Experimental. -func Publication_IsTerraformResource(x interface{}) *bool { +func Publication_IsTerraformResource(x any) *bool { _init_.Initialize() if err := validatePublication_IsTerraformResourceParameters(x); err != nil { @@ -779,7 +778,7 @@ func Publication_IsTerraformResource(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.publication.Publication", "isTerraformResource", - []interface{}{x}, + []any{x}, &returns, ) @@ -804,31 +803,31 @@ func (p *jsiiProxy_Publication) AddMoveTarget(moveTarget *string) { _jsii_.InvokeVoid( p, "addMoveTarget", - []interface{}{moveTarget}, + []any{moveTarget}, ) } -func (p *jsiiProxy_Publication) AddOverride(path *string, value interface{}) { +func (p *jsiiProxy_Publication) AddOverride(path *string, value any) { if err := p.validateAddOverrideParameters(path, value); err != nil { panic(err) } _jsii_.InvokeVoid( p, "addOverride", - []interface{}{path, value}, + []any{path, value}, ) } -func (p *jsiiProxy_Publication) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (p *jsiiProxy_Publication) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := p.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( p, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -844,7 +843,7 @@ func (p *jsiiProxy_Publication) GetBooleanAttribute(terraformAttribute *string) _jsii_.Invoke( p, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -860,7 +859,7 @@ func (p *jsiiProxy_Publication) GetBooleanMapAttribute(terraformAttribute *strin _jsii_.Invoke( p, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -876,7 +875,7 @@ func (p *jsiiProxy_Publication) GetListAttribute(terraformAttribute *string) *[] _jsii_.Invoke( p, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -892,7 +891,7 @@ func (p *jsiiProxy_Publication) GetNumberAttribute(terraformAttribute *string) * _jsii_.Invoke( p, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -908,7 +907,7 @@ func (p *jsiiProxy_Publication) GetNumberListAttribute(terraformAttribute *strin _jsii_.Invoke( p, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -924,7 +923,7 @@ func (p *jsiiProxy_Publication) GetNumberMapAttribute(terraformAttribute *string _jsii_.Invoke( p, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -940,7 +939,7 @@ func (p *jsiiProxy_Publication) GetStringAttribute(terraformAttribute *string) * _jsii_.Invoke( p, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -956,15 +955,15 @@ func (p *jsiiProxy_Publication) GetStringMapAttribute(terraformAttribute *string _jsii_.Invoke( p, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) return returns } -func (p *jsiiProxy_Publication) HasResourceMove() interface{} { - var returns interface{} +func (p *jsiiProxy_Publication) HasResourceMove() any { + var returns any _jsii_.Invoke( p, @@ -983,7 +982,7 @@ func (p *jsiiProxy_Publication) ImportFrom(id *string, provider cdktf.TerraformP _jsii_.InvokeVoid( p, "importFrom", - []interface{}{id, provider}, + []any{id, provider}, ) } @@ -996,7 +995,7 @@ func (p *jsiiProxy_Publication) InterpolationForAttribute(terraformAttribute *st _jsii_.Invoke( p, "interpolationForAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1010,18 +1009,18 @@ func (p *jsiiProxy_Publication) MoveFromId(id *string) { _jsii_.InvokeVoid( p, "moveFromId", - []interface{}{id}, + []any{id}, ) } -func (p *jsiiProxy_Publication) MoveTo(moveTarget *string, index interface{}) { +func (p *jsiiProxy_Publication) MoveTo(moveTarget *string, index any) { if err := p.validateMoveToParameters(moveTarget, index); err != nil { panic(err) } _jsii_.InvokeVoid( p, "moveTo", - []interface{}{moveTarget, index}, + []any{moveTarget, index}, ) } @@ -1032,7 +1031,7 @@ func (p *jsiiProxy_Publication) MoveToId(id *string) { _jsii_.InvokeVoid( p, "moveToId", - []interface{}{id}, + []any{id}, ) } @@ -1043,7 +1042,7 @@ func (p *jsiiProxy_Publication) OverrideLogicalId(newLogicalId *string) { _jsii_.InvokeVoid( p, "overrideLogicalId", - []interface{}{newLogicalId}, + []any{newLogicalId}, ) } @@ -1119,8 +1118,8 @@ func (p *jsiiProxy_Publication) ResetTables() { ) } -func (p *jsiiProxy_Publication) SynthesizeAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (p *jsiiProxy_Publication) SynthesizeAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( p, @@ -1132,8 +1131,8 @@ func (p *jsiiProxy_Publication) SynthesizeAttributes() *map[string]interface{} { return returns } -func (p *jsiiProxy_Publication) SynthesizeHclAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (p *jsiiProxy_Publication) SynthesizeHclAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( p, @@ -1145,8 +1144,8 @@ func (p *jsiiProxy_Publication) SynthesizeHclAttributes() *map[string]interface{ return returns } -func (p *jsiiProxy_Publication) ToHclTerraform() interface{} { - var returns interface{} +func (p *jsiiProxy_Publication) ToHclTerraform() any { + var returns any _jsii_.Invoke( p, @@ -1158,8 +1157,8 @@ func (p *jsiiProxy_Publication) ToHclTerraform() interface{} { return returns } -func (p *jsiiProxy_Publication) ToMetadata() interface{} { - var returns interface{} +func (p *jsiiProxy_Publication) ToMetadata() any { + var returns any _jsii_.Invoke( p, @@ -1184,8 +1183,8 @@ func (p *jsiiProxy_Publication) ToString() *string { return returns } -func (p *jsiiProxy_Publication) ToTerraform() interface{} { - var returns interface{} +func (p *jsiiProxy_Publication) ToTerraform() any { + var returns any _jsii_.Invoke( p, @@ -1196,4 +1195,3 @@ func (p *jsiiProxy_Publication) ToTerraform() interface{} { return returns } - diff --git a/gen/postgresql/publication/PublicationConfig.go b/gen/postgresql/publication/PublicationConfig.go index 38dab23c5f..439da887c0 100644 --- a/gen/postgresql/publication/PublicationConfig.go +++ b/gen/postgresql/publication/PublicationConfig.go @@ -6,9 +6,9 @@ import ( type PublicationConfig struct { // Experimental. - Connection interface{} `field:"optional" json:"connection" yaml:"connection"` + Connection any `field:"optional" json:"connection" yaml:"connection"` // Experimental. - Count interface{} `field:"optional" json:"count" yaml:"count"` + Count any `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. @@ -18,13 +18,13 @@ type PublicationConfig struct { // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. - Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` + Provisioners *[]any `field:"optional" json:"provisioners" yaml:"provisioners"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/publication#name Publication#name}. Name *string `field:"required" json:"name" yaml:"name"` // Sets the tables list to publish to ALL tables. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/publication#all_tables Publication#all_tables} - AllTables interface{} `field:"optional" json:"allTables" yaml:"allTables"` + AllTables any `field:"optional" json:"allTables" yaml:"allTables"` // Sets the database to add the publication for. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/publication#database Publication#database} @@ -32,7 +32,7 @@ type PublicationConfig struct { // When true, will also drop all the objects that depend on the publication, and in turn all objects that depend on those objects. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/publication#drop_cascade Publication#drop_cascade} - DropCascade interface{} `field:"optional" json:"dropCascade" yaml:"dropCascade"` + DropCascade any `field:"optional" json:"dropCascade" yaml:"dropCascade"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/publication#id Publication#id}. // // Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. @@ -49,10 +49,9 @@ type PublicationConfig struct { // Sets whether changes in a partitioned table using the identity and schema of the partitioned table. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/publication#publish_via_partition_root_param Publication#publish_via_partition_root_param} - PublishViaPartitionRootParam interface{} `field:"optional" json:"publishViaPartitionRootParam" yaml:"publishViaPartitionRootParam"` + PublishViaPartitionRootParam any `field:"optional" json:"publishViaPartitionRootParam" yaml:"publishViaPartitionRootParam"` // Sets the tables list to publish. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/publication#tables Publication#tables} Tables *[]*string `field:"optional" json:"tables" yaml:"tables"` } - diff --git a/gen/postgresql/publication/Publication__checks.go b/gen/postgresql/publication/Publication__checks.go index d058673da6..3d8b21300e 100644 --- a/gen/postgresql/publication/Publication__checks.go +++ b/gen/postgresql/publication/Publication__checks.go @@ -19,7 +19,7 @@ func (p *jsiiProxy_Publication) validateAddMoveTargetParameters(moveTarget *stri return nil } -func (p *jsiiProxy_Publication) validateAddOverrideParameters(path *string, value interface{}) error { +func (p *jsiiProxy_Publication) validateAddOverrideParameters(path *string, value any) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } @@ -127,7 +127,7 @@ func (p *jsiiProxy_Publication) validateMoveFromIdParameters(id *string) error { return nil } -func (p *jsiiProxy_Publication) validateMoveToParameters(moveTarget *string, index interface{}) error { +func (p *jsiiProxy_Publication) validateMoveToParameters(moveTarget *string, index any) error { if moveTarget == nil { return fmt.Errorf("parameter moveTarget is required, but nil was provided") } @@ -220,7 +220,7 @@ func validatePublication_GenerateConfigForImportParameters(scope constructs.Cons return nil } -func validatePublication_IsConstructParameters(x interface{}) error { +func validatePublication_IsConstructParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -228,7 +228,7 @@ func validatePublication_IsConstructParameters(x interface{}) error { return nil } -func validatePublication_IsTerraformElementParameters(x interface{}) error { +func validatePublication_IsTerraformElementParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -236,7 +236,7 @@ func validatePublication_IsTerraformElementParameters(x interface{}) error { return nil } -func validatePublication_IsTerraformResourceParameters(x interface{}) error { +func validatePublication_IsTerraformResourceParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -244,7 +244,7 @@ func validatePublication_IsTerraformResourceParameters(x interface{}) error { return nil } -func (j *jsiiProxy_Publication) validateSetAllTablesParameters(val interface{}) error { +func (j *jsiiProxy_Publication) validateSetAllTablesParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -264,7 +264,7 @@ func (j *jsiiProxy_Publication) validateSetAllTablesParameters(val interface{}) return nil } -func (j *jsiiProxy_Publication) validateSetConnectionParameters(val interface{}) error { +func (j *jsiiProxy_Publication) validateSetConnectionParameters(val any) error { switch val.(type) { case *cdktf.SSHProvisionerConnection: val := val.(*cdktf.SSHProvisionerConnection) @@ -297,7 +297,7 @@ func (j *jsiiProxy_Publication) validateSetConnectionParameters(val interface{}) return nil } -func (j *jsiiProxy_Publication) validateSetCountParameters(val interface{}) error { +func (j *jsiiProxy_Publication) validateSetCountParameters(val any) error { switch val.(type) { case *float64: // ok @@ -362,7 +362,7 @@ func (j *jsiiProxy_Publication) validateSetDatabaseParameters(val *string) error return nil } -func (j *jsiiProxy_Publication) validateSetDropCascadeParameters(val interface{}) error { +func (j *jsiiProxy_Publication) validateSetDropCascadeParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -414,7 +414,7 @@ func (j *jsiiProxy_Publication) validateSetOwnerParameters(val *string) error { return nil } -func (j *jsiiProxy_Publication) validateSetProvisionersParameters(val *[]interface{}) error { +func (j *jsiiProxy_Publication) validateSetProvisionersParameters(val *[]any) error { for idx_97dfc6, v := range *val { switch v.(type) { case *cdktf.FileProvisioner: @@ -468,7 +468,7 @@ func (j *jsiiProxy_Publication) validateSetPublishParamParameters(val *[]*string return nil } -func (j *jsiiProxy_Publication) validateSetPublishViaPartitionRootParamParameters(val interface{}) error { +func (j *jsiiProxy_Publication) validateSetPublishViaPartitionRootParamParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -514,4 +514,3 @@ func validateNewPublicationParameters(scope constructs.Construct, id *string, co return nil } - diff --git a/gen/postgresql/publication/main.go b/gen/postgresql/publication/main.go index 7901b5e08f..2e786c2289 100644 --- a/gen/postgresql/publication/main.go +++ b/gen/postgresql/publication/main.go @@ -9,7 +9,7 @@ import ( func init() { _jsii_.RegisterClass( "@cdktf/provider-postgresql.publication.Publication", - reflect.TypeOf((*Publication)(nil)).Elem(), + reflect.TypeFor[Publication](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "addMoveTarget", GoMethod: "AddMoveTarget"}, _jsii_.MemberMethod{JsiiMethod: "addOverride", GoMethod: "AddOverride"}, @@ -79,7 +79,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "toString", GoMethod: "ToString"}, _jsii_.MemberMethod{JsiiMethod: "toTerraform", GoMethod: "ToTerraform"}, }, - func() interface{} { + func() any { j := jsiiProxy_Publication{} _jsii_.InitJsiiProxy(&j.Type__cdktfTerraformResource) return &j @@ -87,6 +87,6 @@ func init() { ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.publication.PublicationConfig", - reflect.TypeOf((*PublicationConfig)(nil)).Elem(), + reflect.TypeFor[PublicationConfig](), ) } diff --git a/gen/postgresql/replicationslot/ReplicationSlot.go b/gen/postgresql/replicationslot/ReplicationSlot.go index 9c79bce2ef..f08928d87b 100644 --- a/gen/postgresql/replicationslot/ReplicationSlot.go +++ b/gen/postgresql/replicationslot/ReplicationSlot.go @@ -15,15 +15,15 @@ type ReplicationSlot interface { // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. - Connection() interface{} + Connection() any // Experimental. - SetConnection(val interface{}) + SetConnection(val any) // Experimental. - ConstructNodeMetadata() *map[string]interface{} + ConstructNodeMetadata() *map[string]any // Experimental. - Count() interface{} + Count() any // Experimental. - SetCount(val interface{}) + SetCount(val any) Database() *string SetDatabase(val *string) DatabaseInput() *string @@ -59,24 +59,24 @@ type ReplicationSlot interface { // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. - Provisioners() *[]interface{} + Provisioners() *[]any // Experimental. - SetProvisioners(val *[]interface{}) + SetProvisioners(val *[]any) // Experimental. - RawOverrides() interface{} + RawOverrides() any // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. - TerraformMetaArguments() *map[string]interface{} + TerraformMetaArguments() *map[string]any // Experimental. TerraformResourceType() *string // Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. // Experimental. AddMoveTarget(moveTarget *string) // Experimental. - AddOverride(path *string, value interface{}) + AddOverride(path *string, value any) // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -94,7 +94,7 @@ type ReplicationSlot interface { // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. - HasResourceMove() interface{} + HasResourceMove() any // Experimental. ImportFrom(id *string, provider cdktf.TerraformProvider) // Experimental. @@ -106,7 +106,7 @@ type ReplicationSlot interface { MoveFromId(id *string) // Moves this resource to the target resource given by moveTarget. // Experimental. - MoveTo(moveTarget *string, index interface{}) + MoveTo(moveTarget *string, index any) // Moves this resource to the resource corresponding to "id". // Experimental. MoveToId(id *string) @@ -118,17 +118,17 @@ type ReplicationSlot interface { // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() - SynthesizeAttributes() *map[string]interface{} - SynthesizeHclAttributes() *map[string]interface{} + SynthesizeAttributes() *map[string]any + SynthesizeHclAttributes() *map[string]any // Experimental. - ToHclTerraform() interface{} + ToHclTerraform() any // Experimental. - ToMetadata() interface{} + ToMetadata() any // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. - ToTerraform() interface{} + ToTerraform() any } // The jsii proxy struct for ReplicationSlot @@ -146,8 +146,8 @@ func (j *jsiiProxy_ReplicationSlot) CdktfStack() cdktf.TerraformStack { return returns } -func (j *jsiiProxy_ReplicationSlot) Connection() interface{} { - var returns interface{} +func (j *jsiiProxy_ReplicationSlot) Connection() any { + var returns any _jsii_.Get( j, "connection", @@ -156,8 +156,8 @@ func (j *jsiiProxy_ReplicationSlot) Connection() interface{} { return returns } -func (j *jsiiProxy_ReplicationSlot) ConstructNodeMetadata() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_ReplicationSlot) ConstructNodeMetadata() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "constructNodeMetadata", @@ -166,8 +166,8 @@ func (j *jsiiProxy_ReplicationSlot) ConstructNodeMetadata() *map[string]interfac return returns } -func (j *jsiiProxy_ReplicationSlot) Count() interface{} { - var returns interface{} +func (j *jsiiProxy_ReplicationSlot) Count() any { + var returns any _jsii_.Get( j, "count", @@ -326,8 +326,8 @@ func (j *jsiiProxy_ReplicationSlot) Provider() cdktf.TerraformProvider { return returns } -func (j *jsiiProxy_ReplicationSlot) Provisioners() *[]interface{} { - var returns *[]interface{} +func (j *jsiiProxy_ReplicationSlot) Provisioners() *[]any { + var returns *[]any _jsii_.Get( j, "provisioners", @@ -336,8 +336,8 @@ func (j *jsiiProxy_ReplicationSlot) Provisioners() *[]interface{} { return returns } -func (j *jsiiProxy_ReplicationSlot) RawOverrides() interface{} { - var returns interface{} +func (j *jsiiProxy_ReplicationSlot) RawOverrides() any { + var returns any _jsii_.Get( j, "rawOverrides", @@ -356,8 +356,8 @@ func (j *jsiiProxy_ReplicationSlot) TerraformGeneratorMetadata() *cdktf.Terrafor return returns } -func (j *jsiiProxy_ReplicationSlot) TerraformMetaArguments() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_ReplicationSlot) TerraformMetaArguments() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "terraformMetaArguments", @@ -376,7 +376,6 @@ func (j *jsiiProxy_ReplicationSlot) TerraformResourceType() *string { return returns } - // Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/replication_slot postgresql_replication_slot} Resource. func NewReplicationSlot(scope constructs.Construct, id *string, config *ReplicationSlotConfig) ReplicationSlot { _init_.Initialize() @@ -388,7 +387,7 @@ func NewReplicationSlot(scope constructs.Construct, id *string, config *Replicat _jsii_.Create( "@cdktf/provider-postgresql.replicationSlot.ReplicationSlot", - []interface{}{scope, id, config}, + []any{scope, id, config}, &j, ) @@ -401,12 +400,12 @@ func NewReplicationSlot_Override(r ReplicationSlot, scope constructs.Construct, _jsii_.Create( "@cdktf/provider-postgresql.replicationSlot.ReplicationSlot", - []interface{}{scope, id, config}, + []any{scope, id, config}, r, ) } -func (j *jsiiProxy_ReplicationSlot)SetConnection(val interface{}) { +func (j *jsiiProxy_ReplicationSlot) SetConnection(val any) { if err := j.validateSetConnectionParameters(val); err != nil { panic(err) } @@ -417,7 +416,7 @@ func (j *jsiiProxy_ReplicationSlot)SetConnection(val interface{}) { ) } -func (j *jsiiProxy_ReplicationSlot)SetCount(val interface{}) { +func (j *jsiiProxy_ReplicationSlot) SetCount(val any) { if err := j.validateSetCountParameters(val); err != nil { panic(err) } @@ -428,7 +427,7 @@ func (j *jsiiProxy_ReplicationSlot)SetCount(val interface{}) { ) } -func (j *jsiiProxy_ReplicationSlot)SetDatabase(val *string) { +func (j *jsiiProxy_ReplicationSlot) SetDatabase(val *string) { if err := j.validateSetDatabaseParameters(val); err != nil { panic(err) } @@ -439,7 +438,7 @@ func (j *jsiiProxy_ReplicationSlot)SetDatabase(val *string) { ) } -func (j *jsiiProxy_ReplicationSlot)SetDependsOn(val *[]*string) { +func (j *jsiiProxy_ReplicationSlot) SetDependsOn(val *[]*string) { _jsii_.Set( j, "dependsOn", @@ -447,7 +446,7 @@ func (j *jsiiProxy_ReplicationSlot)SetDependsOn(val *[]*string) { ) } -func (j *jsiiProxy_ReplicationSlot)SetForEach(val cdktf.ITerraformIterator) { +func (j *jsiiProxy_ReplicationSlot) SetForEach(val cdktf.ITerraformIterator) { _jsii_.Set( j, "forEach", @@ -455,7 +454,7 @@ func (j *jsiiProxy_ReplicationSlot)SetForEach(val cdktf.ITerraformIterator) { ) } -func (j *jsiiProxy_ReplicationSlot)SetId(val *string) { +func (j *jsiiProxy_ReplicationSlot) SetId(val *string) { if err := j.validateSetIdParameters(val); err != nil { panic(err) } @@ -466,7 +465,7 @@ func (j *jsiiProxy_ReplicationSlot)SetId(val *string) { ) } -func (j *jsiiProxy_ReplicationSlot)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { +func (j *jsiiProxy_ReplicationSlot) SetLifecycle(val *cdktf.TerraformResourceLifecycle) { if err := j.validateSetLifecycleParameters(val); err != nil { panic(err) } @@ -477,7 +476,7 @@ func (j *jsiiProxy_ReplicationSlot)SetLifecycle(val *cdktf.TerraformResourceLife ) } -func (j *jsiiProxy_ReplicationSlot)SetName(val *string) { +func (j *jsiiProxy_ReplicationSlot) SetName(val *string) { if err := j.validateSetNameParameters(val); err != nil { panic(err) } @@ -488,7 +487,7 @@ func (j *jsiiProxy_ReplicationSlot)SetName(val *string) { ) } -func (j *jsiiProxy_ReplicationSlot)SetPlugin(val *string) { +func (j *jsiiProxy_ReplicationSlot) SetPlugin(val *string) { if err := j.validateSetPluginParameters(val); err != nil { panic(err) } @@ -499,7 +498,7 @@ func (j *jsiiProxy_ReplicationSlot)SetPlugin(val *string) { ) } -func (j *jsiiProxy_ReplicationSlot)SetProvider(val cdktf.TerraformProvider) { +func (j *jsiiProxy_ReplicationSlot) SetProvider(val cdktf.TerraformProvider) { _jsii_.Set( j, "provider", @@ -507,7 +506,7 @@ func (j *jsiiProxy_ReplicationSlot)SetProvider(val cdktf.TerraformProvider) { ) } -func (j *jsiiProxy_ReplicationSlot)SetProvisioners(val *[]interface{}) { +func (j *jsiiProxy_ReplicationSlot) SetProvisioners(val *[]any) { if err := j.validateSetProvisionersParameters(val); err != nil { panic(err) } @@ -530,7 +529,7 @@ func ReplicationSlot_GenerateConfigForImport(scope constructs.Construct, importT _jsii_.StaticInvoke( "@cdktf/provider-postgresql.replicationSlot.ReplicationSlot", "generateConfigForImport", - []interface{}{scope, importToId, importFromId, provider}, + []any{scope, importToId, importFromId, provider}, &returns, ) @@ -554,7 +553,7 @@ func ReplicationSlot_GenerateConfigForImport(scope constructs.Construct, importT // this type-testing method instead. // // Returns: true if `x` is an object created from a class which extends `Construct`. -func ReplicationSlot_IsConstruct(x interface{}) *bool { +func ReplicationSlot_IsConstruct(x any) *bool { _init_.Initialize() if err := validateReplicationSlot_IsConstructParameters(x); err != nil { @@ -565,7 +564,7 @@ func ReplicationSlot_IsConstruct(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.replicationSlot.ReplicationSlot", "isConstruct", - []interface{}{x}, + []any{x}, &returns, ) @@ -573,7 +572,7 @@ func ReplicationSlot_IsConstruct(x interface{}) *bool { } // Experimental. -func ReplicationSlot_IsTerraformElement(x interface{}) *bool { +func ReplicationSlot_IsTerraformElement(x any) *bool { _init_.Initialize() if err := validateReplicationSlot_IsTerraformElementParameters(x); err != nil { @@ -584,7 +583,7 @@ func ReplicationSlot_IsTerraformElement(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.replicationSlot.ReplicationSlot", "isTerraformElement", - []interface{}{x}, + []any{x}, &returns, ) @@ -592,7 +591,7 @@ func ReplicationSlot_IsTerraformElement(x interface{}) *bool { } // Experimental. -func ReplicationSlot_IsTerraformResource(x interface{}) *bool { +func ReplicationSlot_IsTerraformResource(x any) *bool { _init_.Initialize() if err := validateReplicationSlot_IsTerraformResourceParameters(x); err != nil { @@ -603,7 +602,7 @@ func ReplicationSlot_IsTerraformResource(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.replicationSlot.ReplicationSlot", "isTerraformResource", - []interface{}{x}, + []any{x}, &returns, ) @@ -628,31 +627,31 @@ func (r *jsiiProxy_ReplicationSlot) AddMoveTarget(moveTarget *string) { _jsii_.InvokeVoid( r, "addMoveTarget", - []interface{}{moveTarget}, + []any{moveTarget}, ) } -func (r *jsiiProxy_ReplicationSlot) AddOverride(path *string, value interface{}) { +func (r *jsiiProxy_ReplicationSlot) AddOverride(path *string, value any) { if err := r.validateAddOverrideParameters(path, value); err != nil { panic(err) } _jsii_.InvokeVoid( r, "addOverride", - []interface{}{path, value}, + []any{path, value}, ) } -func (r *jsiiProxy_ReplicationSlot) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (r *jsiiProxy_ReplicationSlot) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := r.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( r, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -668,7 +667,7 @@ func (r *jsiiProxy_ReplicationSlot) GetBooleanAttribute(terraformAttribute *stri _jsii_.Invoke( r, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -684,7 +683,7 @@ func (r *jsiiProxy_ReplicationSlot) GetBooleanMapAttribute(terraformAttribute *s _jsii_.Invoke( r, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -700,7 +699,7 @@ func (r *jsiiProxy_ReplicationSlot) GetListAttribute(terraformAttribute *string) _jsii_.Invoke( r, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -716,7 +715,7 @@ func (r *jsiiProxy_ReplicationSlot) GetNumberAttribute(terraformAttribute *strin _jsii_.Invoke( r, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -732,7 +731,7 @@ func (r *jsiiProxy_ReplicationSlot) GetNumberListAttribute(terraformAttribute *s _jsii_.Invoke( r, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -748,7 +747,7 @@ func (r *jsiiProxy_ReplicationSlot) GetNumberMapAttribute(terraformAttribute *st _jsii_.Invoke( r, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -764,7 +763,7 @@ func (r *jsiiProxy_ReplicationSlot) GetStringAttribute(terraformAttribute *strin _jsii_.Invoke( r, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -780,15 +779,15 @@ func (r *jsiiProxy_ReplicationSlot) GetStringMapAttribute(terraformAttribute *st _jsii_.Invoke( r, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) return returns } -func (r *jsiiProxy_ReplicationSlot) HasResourceMove() interface{} { - var returns interface{} +func (r *jsiiProxy_ReplicationSlot) HasResourceMove() any { + var returns any _jsii_.Invoke( r, @@ -807,7 +806,7 @@ func (r *jsiiProxy_ReplicationSlot) ImportFrom(id *string, provider cdktf.Terraf _jsii_.InvokeVoid( r, "importFrom", - []interface{}{id, provider}, + []any{id, provider}, ) } @@ -820,7 +819,7 @@ func (r *jsiiProxy_ReplicationSlot) InterpolationForAttribute(terraformAttribute _jsii_.Invoke( r, "interpolationForAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -834,18 +833,18 @@ func (r *jsiiProxy_ReplicationSlot) MoveFromId(id *string) { _jsii_.InvokeVoid( r, "moveFromId", - []interface{}{id}, + []any{id}, ) } -func (r *jsiiProxy_ReplicationSlot) MoveTo(moveTarget *string, index interface{}) { +func (r *jsiiProxy_ReplicationSlot) MoveTo(moveTarget *string, index any) { if err := r.validateMoveToParameters(moveTarget, index); err != nil { panic(err) } _jsii_.InvokeVoid( r, "moveTo", - []interface{}{moveTarget, index}, + []any{moveTarget, index}, ) } @@ -856,7 +855,7 @@ func (r *jsiiProxy_ReplicationSlot) MoveToId(id *string) { _jsii_.InvokeVoid( r, "moveToId", - []interface{}{id}, + []any{id}, ) } @@ -867,7 +866,7 @@ func (r *jsiiProxy_ReplicationSlot) OverrideLogicalId(newLogicalId *string) { _jsii_.InvokeVoid( r, "overrideLogicalId", - []interface{}{newLogicalId}, + []any{newLogicalId}, ) } @@ -895,8 +894,8 @@ func (r *jsiiProxy_ReplicationSlot) ResetOverrideLogicalId() { ) } -func (r *jsiiProxy_ReplicationSlot) SynthesizeAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (r *jsiiProxy_ReplicationSlot) SynthesizeAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( r, @@ -908,8 +907,8 @@ func (r *jsiiProxy_ReplicationSlot) SynthesizeAttributes() *map[string]interface return returns } -func (r *jsiiProxy_ReplicationSlot) SynthesizeHclAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (r *jsiiProxy_ReplicationSlot) SynthesizeHclAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( r, @@ -921,8 +920,8 @@ func (r *jsiiProxy_ReplicationSlot) SynthesizeHclAttributes() *map[string]interf return returns } -func (r *jsiiProxy_ReplicationSlot) ToHclTerraform() interface{} { - var returns interface{} +func (r *jsiiProxy_ReplicationSlot) ToHclTerraform() any { + var returns any _jsii_.Invoke( r, @@ -934,8 +933,8 @@ func (r *jsiiProxy_ReplicationSlot) ToHclTerraform() interface{} { return returns } -func (r *jsiiProxy_ReplicationSlot) ToMetadata() interface{} { - var returns interface{} +func (r *jsiiProxy_ReplicationSlot) ToMetadata() any { + var returns any _jsii_.Invoke( r, @@ -960,8 +959,8 @@ func (r *jsiiProxy_ReplicationSlot) ToString() *string { return returns } -func (r *jsiiProxy_ReplicationSlot) ToTerraform() interface{} { - var returns interface{} +func (r *jsiiProxy_ReplicationSlot) ToTerraform() any { + var returns any _jsii_.Invoke( r, @@ -972,4 +971,3 @@ func (r *jsiiProxy_ReplicationSlot) ToTerraform() interface{} { return returns } - diff --git a/gen/postgresql/replicationslot/ReplicationSlotConfig.go b/gen/postgresql/replicationslot/ReplicationSlotConfig.go index 11e3ae0aea..8b8d19456c 100644 --- a/gen/postgresql/replicationslot/ReplicationSlotConfig.go +++ b/gen/postgresql/replicationslot/ReplicationSlotConfig.go @@ -6,9 +6,9 @@ import ( type ReplicationSlotConfig struct { // Experimental. - Connection interface{} `field:"optional" json:"connection" yaml:"connection"` + Connection any `field:"optional" json:"connection" yaml:"connection"` // Experimental. - Count interface{} `field:"optional" json:"count" yaml:"count"` + Count any `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. @@ -18,7 +18,7 @@ type ReplicationSlotConfig struct { // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. - Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` + Provisioners *[]any `field:"optional" json:"provisioners" yaml:"provisioners"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/replication_slot#name ReplicationSlot#name}. Name *string `field:"required" json:"name" yaml:"name"` // Sets the output plugin to use. @@ -35,4 +35,3 @@ type ReplicationSlotConfig struct { // If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. Id *string `field:"optional" json:"id" yaml:"id"` } - diff --git a/gen/postgresql/replicationslot/ReplicationSlot__checks.go b/gen/postgresql/replicationslot/ReplicationSlot__checks.go index af063738ea..2a0d9f7c50 100644 --- a/gen/postgresql/replicationslot/ReplicationSlot__checks.go +++ b/gen/postgresql/replicationslot/ReplicationSlot__checks.go @@ -19,7 +19,7 @@ func (r *jsiiProxy_ReplicationSlot) validateAddMoveTargetParameters(moveTarget * return nil } -func (r *jsiiProxy_ReplicationSlot) validateAddOverrideParameters(path *string, value interface{}) error { +func (r *jsiiProxy_ReplicationSlot) validateAddOverrideParameters(path *string, value any) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } @@ -127,7 +127,7 @@ func (r *jsiiProxy_ReplicationSlot) validateMoveFromIdParameters(id *string) err return nil } -func (r *jsiiProxy_ReplicationSlot) validateMoveToParameters(moveTarget *string, index interface{}) error { +func (r *jsiiProxy_ReplicationSlot) validateMoveToParameters(moveTarget *string, index any) error { if moveTarget == nil { return fmt.Errorf("parameter moveTarget is required, but nil was provided") } @@ -220,7 +220,7 @@ func validateReplicationSlot_GenerateConfigForImportParameters(scope constructs. return nil } -func validateReplicationSlot_IsConstructParameters(x interface{}) error { +func validateReplicationSlot_IsConstructParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -228,7 +228,7 @@ func validateReplicationSlot_IsConstructParameters(x interface{}) error { return nil } -func validateReplicationSlot_IsTerraformElementParameters(x interface{}) error { +func validateReplicationSlot_IsTerraformElementParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -236,7 +236,7 @@ func validateReplicationSlot_IsTerraformElementParameters(x interface{}) error { return nil } -func validateReplicationSlot_IsTerraformResourceParameters(x interface{}) error { +func validateReplicationSlot_IsTerraformResourceParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -244,7 +244,7 @@ func validateReplicationSlot_IsTerraformResourceParameters(x interface{}) error return nil } -func (j *jsiiProxy_ReplicationSlot) validateSetConnectionParameters(val interface{}) error { +func (j *jsiiProxy_ReplicationSlot) validateSetConnectionParameters(val any) error { switch val.(type) { case *cdktf.SSHProvisionerConnection: val := val.(*cdktf.SSHProvisionerConnection) @@ -277,7 +277,7 @@ func (j *jsiiProxy_ReplicationSlot) validateSetConnectionParameters(val interfac return nil } -func (j *jsiiProxy_ReplicationSlot) validateSetCountParameters(val interface{}) error { +func (j *jsiiProxy_ReplicationSlot) validateSetCountParameters(val any) error { switch val.(type) { case *float64: // ok @@ -374,7 +374,7 @@ func (j *jsiiProxy_ReplicationSlot) validateSetPluginParameters(val *string) err return nil } -func (j *jsiiProxy_ReplicationSlot) validateSetProvisionersParameters(val *[]interface{}) error { +func (j *jsiiProxy_ReplicationSlot) validateSetProvisionersParameters(val *[]any) error { for idx_97dfc6, v := range *val { switch v.(type) { case *cdktf.FileProvisioner: @@ -438,4 +438,3 @@ func validateNewReplicationSlotParameters(scope constructs.Construct, id *string return nil } - diff --git a/gen/postgresql/replicationslot/main.go b/gen/postgresql/replicationslot/main.go index 4a69eff787..6666006a93 100644 --- a/gen/postgresql/replicationslot/main.go +++ b/gen/postgresql/replicationslot/main.go @@ -9,7 +9,7 @@ import ( func init() { _jsii_.RegisterClass( "@cdktf/provider-postgresql.replicationSlot.ReplicationSlot", - reflect.TypeOf((*ReplicationSlot)(nil)).Elem(), + reflect.TypeFor[ReplicationSlot](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "addMoveTarget", GoMethod: "AddMoveTarget"}, _jsii_.MemberMethod{JsiiMethod: "addOverride", GoMethod: "AddOverride"}, @@ -63,7 +63,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "toString", GoMethod: "ToString"}, _jsii_.MemberMethod{JsiiMethod: "toTerraform", GoMethod: "ToTerraform"}, }, - func() interface{} { + func() any { j := jsiiProxy_ReplicationSlot{} _jsii_.InitJsiiProxy(&j.Type__cdktfTerraformResource) return &j @@ -71,6 +71,6 @@ func init() { ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.replicationSlot.ReplicationSlotConfig", - reflect.TypeOf((*ReplicationSlotConfig)(nil)).Elem(), + reflect.TypeFor[ReplicationSlotConfig](), ) } diff --git a/gen/postgresql/role/Role.go b/gen/postgresql/role/Role.go index 3541545874..d95312311d 100644 --- a/gen/postgresql/role/Role.go +++ b/gen/postgresql/role/Role.go @@ -15,30 +15,30 @@ type Role interface { AssumeRole() *string SetAssumeRole(val *string) AssumeRoleInput() *string - BypassRowLevelSecurity() interface{} - SetBypassRowLevelSecurity(val interface{}) - BypassRowLevelSecurityInput() interface{} + BypassRowLevelSecurity() any + SetBypassRowLevelSecurity(val any) + BypassRowLevelSecurityInput() any // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. - Connection() interface{} + Connection() any // Experimental. - SetConnection(val interface{}) + SetConnection(val any) ConnectionLimit() *float64 SetConnectionLimit(val *float64) ConnectionLimitInput() *float64 // Experimental. - ConstructNodeMetadata() *map[string]interface{} + ConstructNodeMetadata() *map[string]any // Experimental. - Count() interface{} + Count() any // Experimental. - SetCount(val interface{}) - CreateDatabase() interface{} - SetCreateDatabase(val interface{}) - CreateDatabaseInput() interface{} - CreateRole() interface{} - SetCreateRole(val interface{}) - CreateRoleInput() interface{} + SetCount(val any) + CreateDatabase() any + SetCreateDatabase(val any) + CreateDatabaseInput() any + CreateRole() any + SetCreateRole(val any) + CreateRoleInput() any // Experimental. DependsOn() *[]*string // Experimental. @@ -46,9 +46,9 @@ type Role interface { Encrypted() *string SetEncrypted(val *string) EncryptedInput() *string - EncryptedPassword() interface{} - SetEncryptedPassword(val interface{}) - EncryptedPasswordInput() interface{} + EncryptedPassword() any + SetEncryptedPassword(val any) + EncryptedPasswordInput() any // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. @@ -63,16 +63,16 @@ type Role interface { IdleInTransactionSessionTimeout() *float64 SetIdleInTransactionSessionTimeout(val *float64) IdleInTransactionSessionTimeoutInput() *float64 - Inherit() interface{} - SetInherit(val interface{}) - InheritInput() interface{} + Inherit() any + SetInherit(val any) + InheritInput() any // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) - Login() interface{} - SetLogin(val interface{}) - LoginInput() interface{} + Login() any + SetLogin(val any) + LoginInput() any Name() *string SetName(val *string) NameInput() *string @@ -86,36 +86,36 @@ type Role interface { // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. - Provisioners() *[]interface{} + Provisioners() *[]any // Experimental. - SetProvisioners(val *[]interface{}) + SetProvisioners(val *[]any) // Experimental. - RawOverrides() interface{} - Replication() interface{} - SetReplication(val interface{}) - ReplicationInput() interface{} + RawOverrides() any + Replication() any + SetReplication(val any) + ReplicationInput() any Roles() *[]*string SetRoles(val *[]*string) RolesInput() *[]*string SearchPath() *[]*string SetSearchPath(val *[]*string) SearchPathInput() *[]*string - SkipDropRole() interface{} - SetSkipDropRole(val interface{}) - SkipDropRoleInput() interface{} - SkipReassignOwned() interface{} - SetSkipReassignOwned(val interface{}) - SkipReassignOwnedInput() interface{} + SkipDropRole() any + SetSkipDropRole(val any) + SkipDropRoleInput() any + SkipReassignOwned() any + SetSkipReassignOwned(val any) + SkipReassignOwnedInput() any StatementTimeout() *float64 SetStatementTimeout(val *float64) StatementTimeoutInput() *float64 - Superuser() interface{} - SetSuperuser(val interface{}) - SuperuserInput() interface{} + Superuser() any + SetSuperuser(val any) + SuperuserInput() any // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. - TerraformMetaArguments() *map[string]interface{} + TerraformMetaArguments() *map[string]any // Experimental. TerraformResourceType() *string ValidUntil() *string @@ -125,9 +125,9 @@ type Role interface { // Experimental. AddMoveTarget(moveTarget *string) // Experimental. - AddOverride(path *string, value interface{}) + AddOverride(path *string, value any) // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -145,7 +145,7 @@ type Role interface { // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. - HasResourceMove() interface{} + HasResourceMove() any // Experimental. ImportFrom(id *string, provider cdktf.TerraformProvider) // Experimental. @@ -157,7 +157,7 @@ type Role interface { MoveFromId(id *string) // Moves this resource to the target resource given by moveTarget. // Experimental. - MoveTo(moveTarget *string, index interface{}) + MoveTo(moveTarget *string, index any) // Moves this resource to the resource corresponding to "id". // Experimental. MoveToId(id *string) @@ -187,17 +187,17 @@ type Role interface { ResetStatementTimeout() ResetSuperuser() ResetValidUntil() - SynthesizeAttributes() *map[string]interface{} - SynthesizeHclAttributes() *map[string]interface{} + SynthesizeAttributes() *map[string]any + SynthesizeHclAttributes() *map[string]any // Experimental. - ToHclTerraform() interface{} + ToHclTerraform() any // Experimental. - ToMetadata() interface{} + ToMetadata() any // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. - ToTerraform() interface{} + ToTerraform() any } // The jsii proxy struct for Role @@ -225,8 +225,8 @@ func (j *jsiiProxy_Role) AssumeRoleInput() *string { return returns } -func (j *jsiiProxy_Role) BypassRowLevelSecurity() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) BypassRowLevelSecurity() any { + var returns any _jsii_.Get( j, "bypassRowLevelSecurity", @@ -235,8 +235,8 @@ func (j *jsiiProxy_Role) BypassRowLevelSecurity() interface{} { return returns } -func (j *jsiiProxy_Role) BypassRowLevelSecurityInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) BypassRowLevelSecurityInput() any { + var returns any _jsii_.Get( j, "bypassRowLevelSecurityInput", @@ -255,8 +255,8 @@ func (j *jsiiProxy_Role) CdktfStack() cdktf.TerraformStack { return returns } -func (j *jsiiProxy_Role) Connection() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) Connection() any { + var returns any _jsii_.Get( j, "connection", @@ -285,8 +285,8 @@ func (j *jsiiProxy_Role) ConnectionLimitInput() *float64 { return returns } -func (j *jsiiProxy_Role) ConstructNodeMetadata() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_Role) ConstructNodeMetadata() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "constructNodeMetadata", @@ -295,8 +295,8 @@ func (j *jsiiProxy_Role) ConstructNodeMetadata() *map[string]interface{} { return returns } -func (j *jsiiProxy_Role) Count() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) Count() any { + var returns any _jsii_.Get( j, "count", @@ -305,8 +305,8 @@ func (j *jsiiProxy_Role) Count() interface{} { return returns } -func (j *jsiiProxy_Role) CreateDatabase() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) CreateDatabase() any { + var returns any _jsii_.Get( j, "createDatabase", @@ -315,8 +315,8 @@ func (j *jsiiProxy_Role) CreateDatabase() interface{} { return returns } -func (j *jsiiProxy_Role) CreateDatabaseInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) CreateDatabaseInput() any { + var returns any _jsii_.Get( j, "createDatabaseInput", @@ -325,8 +325,8 @@ func (j *jsiiProxy_Role) CreateDatabaseInput() interface{} { return returns } -func (j *jsiiProxy_Role) CreateRole() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) CreateRole() any { + var returns any _jsii_.Get( j, "createRole", @@ -335,8 +335,8 @@ func (j *jsiiProxy_Role) CreateRole() interface{} { return returns } -func (j *jsiiProxy_Role) CreateRoleInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) CreateRoleInput() any { + var returns any _jsii_.Get( j, "createRoleInput", @@ -375,8 +375,8 @@ func (j *jsiiProxy_Role) EncryptedInput() *string { return returns } -func (j *jsiiProxy_Role) EncryptedPassword() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) EncryptedPassword() any { + var returns any _jsii_.Get( j, "encryptedPassword", @@ -385,8 +385,8 @@ func (j *jsiiProxy_Role) EncryptedPassword() interface{} { return returns } -func (j *jsiiProxy_Role) EncryptedPasswordInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) EncryptedPasswordInput() any { + var returns any _jsii_.Get( j, "encryptedPasswordInput", @@ -465,8 +465,8 @@ func (j *jsiiProxy_Role) IdleInTransactionSessionTimeoutInput() *float64 { return returns } -func (j *jsiiProxy_Role) Inherit() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) Inherit() any { + var returns any _jsii_.Get( j, "inherit", @@ -475,8 +475,8 @@ func (j *jsiiProxy_Role) Inherit() interface{} { return returns } -func (j *jsiiProxy_Role) InheritInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) InheritInput() any { + var returns any _jsii_.Get( j, "inheritInput", @@ -495,8 +495,8 @@ func (j *jsiiProxy_Role) Lifecycle() *cdktf.TerraformResourceLifecycle { return returns } -func (j *jsiiProxy_Role) Login() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) Login() any { + var returns any _jsii_.Get( j, "login", @@ -505,8 +505,8 @@ func (j *jsiiProxy_Role) Login() interface{} { return returns } -func (j *jsiiProxy_Role) LoginInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) LoginInput() any { + var returns any _jsii_.Get( j, "loginInput", @@ -575,8 +575,8 @@ func (j *jsiiProxy_Role) Provider() cdktf.TerraformProvider { return returns } -func (j *jsiiProxy_Role) Provisioners() *[]interface{} { - var returns *[]interface{} +func (j *jsiiProxy_Role) Provisioners() *[]any { + var returns *[]any _jsii_.Get( j, "provisioners", @@ -585,8 +585,8 @@ func (j *jsiiProxy_Role) Provisioners() *[]interface{} { return returns } -func (j *jsiiProxy_Role) RawOverrides() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) RawOverrides() any { + var returns any _jsii_.Get( j, "rawOverrides", @@ -595,8 +595,8 @@ func (j *jsiiProxy_Role) RawOverrides() interface{} { return returns } -func (j *jsiiProxy_Role) Replication() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) Replication() any { + var returns any _jsii_.Get( j, "replication", @@ -605,8 +605,8 @@ func (j *jsiiProxy_Role) Replication() interface{} { return returns } -func (j *jsiiProxy_Role) ReplicationInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) ReplicationInput() any { + var returns any _jsii_.Get( j, "replicationInput", @@ -655,8 +655,8 @@ func (j *jsiiProxy_Role) SearchPathInput() *[]*string { return returns } -func (j *jsiiProxy_Role) SkipDropRole() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) SkipDropRole() any { + var returns any _jsii_.Get( j, "skipDropRole", @@ -665,8 +665,8 @@ func (j *jsiiProxy_Role) SkipDropRole() interface{} { return returns } -func (j *jsiiProxy_Role) SkipDropRoleInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) SkipDropRoleInput() any { + var returns any _jsii_.Get( j, "skipDropRoleInput", @@ -675,8 +675,8 @@ func (j *jsiiProxy_Role) SkipDropRoleInput() interface{} { return returns } -func (j *jsiiProxy_Role) SkipReassignOwned() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) SkipReassignOwned() any { + var returns any _jsii_.Get( j, "skipReassignOwned", @@ -685,8 +685,8 @@ func (j *jsiiProxy_Role) SkipReassignOwned() interface{} { return returns } -func (j *jsiiProxy_Role) SkipReassignOwnedInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) SkipReassignOwnedInput() any { + var returns any _jsii_.Get( j, "skipReassignOwnedInput", @@ -715,8 +715,8 @@ func (j *jsiiProxy_Role) StatementTimeoutInput() *float64 { return returns } -func (j *jsiiProxy_Role) Superuser() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) Superuser() any { + var returns any _jsii_.Get( j, "superuser", @@ -725,8 +725,8 @@ func (j *jsiiProxy_Role) Superuser() interface{} { return returns } -func (j *jsiiProxy_Role) SuperuserInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Role) SuperuserInput() any { + var returns any _jsii_.Get( j, "superuserInput", @@ -745,8 +745,8 @@ func (j *jsiiProxy_Role) TerraformGeneratorMetadata() *cdktf.TerraformProviderGe return returns } -func (j *jsiiProxy_Role) TerraformMetaArguments() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_Role) TerraformMetaArguments() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "terraformMetaArguments", @@ -785,7 +785,6 @@ func (j *jsiiProxy_Role) ValidUntilInput() *string { return returns } - // Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role postgresql_role} Resource. func NewRole(scope constructs.Construct, id *string, config *RoleConfig) Role { _init_.Initialize() @@ -797,7 +796,7 @@ func NewRole(scope constructs.Construct, id *string, config *RoleConfig) Role { _jsii_.Create( "@cdktf/provider-postgresql.role.Role", - []interface{}{scope, id, config}, + []any{scope, id, config}, &j, ) @@ -810,12 +809,12 @@ func NewRole_Override(r Role, scope constructs.Construct, id *string, config *Ro _jsii_.Create( "@cdktf/provider-postgresql.role.Role", - []interface{}{scope, id, config}, + []any{scope, id, config}, r, ) } -func (j *jsiiProxy_Role)SetAssumeRole(val *string) { +func (j *jsiiProxy_Role) SetAssumeRole(val *string) { if err := j.validateSetAssumeRoleParameters(val); err != nil { panic(err) } @@ -826,7 +825,7 @@ func (j *jsiiProxy_Role)SetAssumeRole(val *string) { ) } -func (j *jsiiProxy_Role)SetBypassRowLevelSecurity(val interface{}) { +func (j *jsiiProxy_Role) SetBypassRowLevelSecurity(val any) { if err := j.validateSetBypassRowLevelSecurityParameters(val); err != nil { panic(err) } @@ -837,7 +836,7 @@ func (j *jsiiProxy_Role)SetBypassRowLevelSecurity(val interface{}) { ) } -func (j *jsiiProxy_Role)SetConnection(val interface{}) { +func (j *jsiiProxy_Role) SetConnection(val any) { if err := j.validateSetConnectionParameters(val); err != nil { panic(err) } @@ -848,7 +847,7 @@ func (j *jsiiProxy_Role)SetConnection(val interface{}) { ) } -func (j *jsiiProxy_Role)SetConnectionLimit(val *float64) { +func (j *jsiiProxy_Role) SetConnectionLimit(val *float64) { if err := j.validateSetConnectionLimitParameters(val); err != nil { panic(err) } @@ -859,7 +858,7 @@ func (j *jsiiProxy_Role)SetConnectionLimit(val *float64) { ) } -func (j *jsiiProxy_Role)SetCount(val interface{}) { +func (j *jsiiProxy_Role) SetCount(val any) { if err := j.validateSetCountParameters(val); err != nil { panic(err) } @@ -870,7 +869,7 @@ func (j *jsiiProxy_Role)SetCount(val interface{}) { ) } -func (j *jsiiProxy_Role)SetCreateDatabase(val interface{}) { +func (j *jsiiProxy_Role) SetCreateDatabase(val any) { if err := j.validateSetCreateDatabaseParameters(val); err != nil { panic(err) } @@ -881,7 +880,7 @@ func (j *jsiiProxy_Role)SetCreateDatabase(val interface{}) { ) } -func (j *jsiiProxy_Role)SetCreateRole(val interface{}) { +func (j *jsiiProxy_Role) SetCreateRole(val any) { if err := j.validateSetCreateRoleParameters(val); err != nil { panic(err) } @@ -892,7 +891,7 @@ func (j *jsiiProxy_Role)SetCreateRole(val interface{}) { ) } -func (j *jsiiProxy_Role)SetDependsOn(val *[]*string) { +func (j *jsiiProxy_Role) SetDependsOn(val *[]*string) { _jsii_.Set( j, "dependsOn", @@ -900,7 +899,7 @@ func (j *jsiiProxy_Role)SetDependsOn(val *[]*string) { ) } -func (j *jsiiProxy_Role)SetEncrypted(val *string) { +func (j *jsiiProxy_Role) SetEncrypted(val *string) { if err := j.validateSetEncryptedParameters(val); err != nil { panic(err) } @@ -911,7 +910,7 @@ func (j *jsiiProxy_Role)SetEncrypted(val *string) { ) } -func (j *jsiiProxy_Role)SetEncryptedPassword(val interface{}) { +func (j *jsiiProxy_Role) SetEncryptedPassword(val any) { if err := j.validateSetEncryptedPasswordParameters(val); err != nil { panic(err) } @@ -922,7 +921,7 @@ func (j *jsiiProxy_Role)SetEncryptedPassword(val interface{}) { ) } -func (j *jsiiProxy_Role)SetForEach(val cdktf.ITerraformIterator) { +func (j *jsiiProxy_Role) SetForEach(val cdktf.ITerraformIterator) { _jsii_.Set( j, "forEach", @@ -930,7 +929,7 @@ func (j *jsiiProxy_Role)SetForEach(val cdktf.ITerraformIterator) { ) } -func (j *jsiiProxy_Role)SetId(val *string) { +func (j *jsiiProxy_Role) SetId(val *string) { if err := j.validateSetIdParameters(val); err != nil { panic(err) } @@ -941,7 +940,7 @@ func (j *jsiiProxy_Role)SetId(val *string) { ) } -func (j *jsiiProxy_Role)SetIdleInTransactionSessionTimeout(val *float64) { +func (j *jsiiProxy_Role) SetIdleInTransactionSessionTimeout(val *float64) { if err := j.validateSetIdleInTransactionSessionTimeoutParameters(val); err != nil { panic(err) } @@ -952,7 +951,7 @@ func (j *jsiiProxy_Role)SetIdleInTransactionSessionTimeout(val *float64) { ) } -func (j *jsiiProxy_Role)SetInherit(val interface{}) { +func (j *jsiiProxy_Role) SetInherit(val any) { if err := j.validateSetInheritParameters(val); err != nil { panic(err) } @@ -963,7 +962,7 @@ func (j *jsiiProxy_Role)SetInherit(val interface{}) { ) } -func (j *jsiiProxy_Role)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { +func (j *jsiiProxy_Role) SetLifecycle(val *cdktf.TerraformResourceLifecycle) { if err := j.validateSetLifecycleParameters(val); err != nil { panic(err) } @@ -974,7 +973,7 @@ func (j *jsiiProxy_Role)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { ) } -func (j *jsiiProxy_Role)SetLogin(val interface{}) { +func (j *jsiiProxy_Role) SetLogin(val any) { if err := j.validateSetLoginParameters(val); err != nil { panic(err) } @@ -985,7 +984,7 @@ func (j *jsiiProxy_Role)SetLogin(val interface{}) { ) } -func (j *jsiiProxy_Role)SetName(val *string) { +func (j *jsiiProxy_Role) SetName(val *string) { if err := j.validateSetNameParameters(val); err != nil { panic(err) } @@ -996,7 +995,7 @@ func (j *jsiiProxy_Role)SetName(val *string) { ) } -func (j *jsiiProxy_Role)SetPassword(val *string) { +func (j *jsiiProxy_Role) SetPassword(val *string) { if err := j.validateSetPasswordParameters(val); err != nil { panic(err) } @@ -1007,7 +1006,7 @@ func (j *jsiiProxy_Role)SetPassword(val *string) { ) } -func (j *jsiiProxy_Role)SetProvider(val cdktf.TerraformProvider) { +func (j *jsiiProxy_Role) SetProvider(val cdktf.TerraformProvider) { _jsii_.Set( j, "provider", @@ -1015,7 +1014,7 @@ func (j *jsiiProxy_Role)SetProvider(val cdktf.TerraformProvider) { ) } -func (j *jsiiProxy_Role)SetProvisioners(val *[]interface{}) { +func (j *jsiiProxy_Role) SetProvisioners(val *[]any) { if err := j.validateSetProvisionersParameters(val); err != nil { panic(err) } @@ -1026,7 +1025,7 @@ func (j *jsiiProxy_Role)SetProvisioners(val *[]interface{}) { ) } -func (j *jsiiProxy_Role)SetReplication(val interface{}) { +func (j *jsiiProxy_Role) SetReplication(val any) { if err := j.validateSetReplicationParameters(val); err != nil { panic(err) } @@ -1037,7 +1036,7 @@ func (j *jsiiProxy_Role)SetReplication(val interface{}) { ) } -func (j *jsiiProxy_Role)SetRoles(val *[]*string) { +func (j *jsiiProxy_Role) SetRoles(val *[]*string) { if err := j.validateSetRolesParameters(val); err != nil { panic(err) } @@ -1048,7 +1047,7 @@ func (j *jsiiProxy_Role)SetRoles(val *[]*string) { ) } -func (j *jsiiProxy_Role)SetSearchPath(val *[]*string) { +func (j *jsiiProxy_Role) SetSearchPath(val *[]*string) { if err := j.validateSetSearchPathParameters(val); err != nil { panic(err) } @@ -1059,7 +1058,7 @@ func (j *jsiiProxy_Role)SetSearchPath(val *[]*string) { ) } -func (j *jsiiProxy_Role)SetSkipDropRole(val interface{}) { +func (j *jsiiProxy_Role) SetSkipDropRole(val any) { if err := j.validateSetSkipDropRoleParameters(val); err != nil { panic(err) } @@ -1070,7 +1069,7 @@ func (j *jsiiProxy_Role)SetSkipDropRole(val interface{}) { ) } -func (j *jsiiProxy_Role)SetSkipReassignOwned(val interface{}) { +func (j *jsiiProxy_Role) SetSkipReassignOwned(val any) { if err := j.validateSetSkipReassignOwnedParameters(val); err != nil { panic(err) } @@ -1081,7 +1080,7 @@ func (j *jsiiProxy_Role)SetSkipReassignOwned(val interface{}) { ) } -func (j *jsiiProxy_Role)SetStatementTimeout(val *float64) { +func (j *jsiiProxy_Role) SetStatementTimeout(val *float64) { if err := j.validateSetStatementTimeoutParameters(val); err != nil { panic(err) } @@ -1092,7 +1091,7 @@ func (j *jsiiProxy_Role)SetStatementTimeout(val *float64) { ) } -func (j *jsiiProxy_Role)SetSuperuser(val interface{}) { +func (j *jsiiProxy_Role) SetSuperuser(val any) { if err := j.validateSetSuperuserParameters(val); err != nil { panic(err) } @@ -1103,7 +1102,7 @@ func (j *jsiiProxy_Role)SetSuperuser(val interface{}) { ) } -func (j *jsiiProxy_Role)SetValidUntil(val *string) { +func (j *jsiiProxy_Role) SetValidUntil(val *string) { if err := j.validateSetValidUntilParameters(val); err != nil { panic(err) } @@ -1126,7 +1125,7 @@ func Role_GenerateConfigForImport(scope constructs.Construct, importToId *string _jsii_.StaticInvoke( "@cdktf/provider-postgresql.role.Role", "generateConfigForImport", - []interface{}{scope, importToId, importFromId, provider}, + []any{scope, importToId, importFromId, provider}, &returns, ) @@ -1150,7 +1149,7 @@ func Role_GenerateConfigForImport(scope constructs.Construct, importToId *string // this type-testing method instead. // // Returns: true if `x` is an object created from a class which extends `Construct`. -func Role_IsConstruct(x interface{}) *bool { +func Role_IsConstruct(x any) *bool { _init_.Initialize() if err := validateRole_IsConstructParameters(x); err != nil { @@ -1161,7 +1160,7 @@ func Role_IsConstruct(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.role.Role", "isConstruct", - []interface{}{x}, + []any{x}, &returns, ) @@ -1169,7 +1168,7 @@ func Role_IsConstruct(x interface{}) *bool { } // Experimental. -func Role_IsTerraformElement(x interface{}) *bool { +func Role_IsTerraformElement(x any) *bool { _init_.Initialize() if err := validateRole_IsTerraformElementParameters(x); err != nil { @@ -1180,7 +1179,7 @@ func Role_IsTerraformElement(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.role.Role", "isTerraformElement", - []interface{}{x}, + []any{x}, &returns, ) @@ -1188,7 +1187,7 @@ func Role_IsTerraformElement(x interface{}) *bool { } // Experimental. -func Role_IsTerraformResource(x interface{}) *bool { +func Role_IsTerraformResource(x any) *bool { _init_.Initialize() if err := validateRole_IsTerraformResourceParameters(x); err != nil { @@ -1199,7 +1198,7 @@ func Role_IsTerraformResource(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.role.Role", "isTerraformResource", - []interface{}{x}, + []any{x}, &returns, ) @@ -1224,31 +1223,31 @@ func (r *jsiiProxy_Role) AddMoveTarget(moveTarget *string) { _jsii_.InvokeVoid( r, "addMoveTarget", - []interface{}{moveTarget}, + []any{moveTarget}, ) } -func (r *jsiiProxy_Role) AddOverride(path *string, value interface{}) { +func (r *jsiiProxy_Role) AddOverride(path *string, value any) { if err := r.validateAddOverrideParameters(path, value); err != nil { panic(err) } _jsii_.InvokeVoid( r, "addOverride", - []interface{}{path, value}, + []any{path, value}, ) } -func (r *jsiiProxy_Role) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (r *jsiiProxy_Role) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := r.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( r, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1264,7 +1263,7 @@ func (r *jsiiProxy_Role) GetBooleanAttribute(terraformAttribute *string) cdktf.I _jsii_.Invoke( r, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1280,7 +1279,7 @@ func (r *jsiiProxy_Role) GetBooleanMapAttribute(terraformAttribute *string) *map _jsii_.Invoke( r, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1296,7 +1295,7 @@ func (r *jsiiProxy_Role) GetListAttribute(terraformAttribute *string) *[]*string _jsii_.Invoke( r, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1312,7 +1311,7 @@ func (r *jsiiProxy_Role) GetNumberAttribute(terraformAttribute *string) *float64 _jsii_.Invoke( r, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1328,7 +1327,7 @@ func (r *jsiiProxy_Role) GetNumberListAttribute(terraformAttribute *string) *[]* _jsii_.Invoke( r, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1344,7 +1343,7 @@ func (r *jsiiProxy_Role) GetNumberMapAttribute(terraformAttribute *string) *map[ _jsii_.Invoke( r, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1360,7 +1359,7 @@ func (r *jsiiProxy_Role) GetStringAttribute(terraformAttribute *string) *string _jsii_.Invoke( r, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1376,15 +1375,15 @@ func (r *jsiiProxy_Role) GetStringMapAttribute(terraformAttribute *string) *map[ _jsii_.Invoke( r, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) return returns } -func (r *jsiiProxy_Role) HasResourceMove() interface{} { - var returns interface{} +func (r *jsiiProxy_Role) HasResourceMove() any { + var returns any _jsii_.Invoke( r, @@ -1403,7 +1402,7 @@ func (r *jsiiProxy_Role) ImportFrom(id *string, provider cdktf.TerraformProvider _jsii_.InvokeVoid( r, "importFrom", - []interface{}{id, provider}, + []any{id, provider}, ) } @@ -1416,7 +1415,7 @@ func (r *jsiiProxy_Role) InterpolationForAttribute(terraformAttribute *string) c _jsii_.Invoke( r, "interpolationForAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1430,18 +1429,18 @@ func (r *jsiiProxy_Role) MoveFromId(id *string) { _jsii_.InvokeVoid( r, "moveFromId", - []interface{}{id}, + []any{id}, ) } -func (r *jsiiProxy_Role) MoveTo(moveTarget *string, index interface{}) { +func (r *jsiiProxy_Role) MoveTo(moveTarget *string, index any) { if err := r.validateMoveToParameters(moveTarget, index); err != nil { panic(err) } _jsii_.InvokeVoid( r, "moveTo", - []interface{}{moveTarget, index}, + []any{moveTarget, index}, ) } @@ -1452,7 +1451,7 @@ func (r *jsiiProxy_Role) MoveToId(id *string) { _jsii_.InvokeVoid( r, "moveToId", - []interface{}{id}, + []any{id}, ) } @@ -1463,7 +1462,7 @@ func (r *jsiiProxy_Role) OverrideLogicalId(newLogicalId *string) { _jsii_.InvokeVoid( r, "overrideLogicalId", - []interface{}{newLogicalId}, + []any{newLogicalId}, ) } @@ -1635,8 +1634,8 @@ func (r *jsiiProxy_Role) ResetValidUntil() { ) } -func (r *jsiiProxy_Role) SynthesizeAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (r *jsiiProxy_Role) SynthesizeAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( r, @@ -1648,8 +1647,8 @@ func (r *jsiiProxy_Role) SynthesizeAttributes() *map[string]interface{} { return returns } -func (r *jsiiProxy_Role) SynthesizeHclAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (r *jsiiProxy_Role) SynthesizeHclAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( r, @@ -1661,8 +1660,8 @@ func (r *jsiiProxy_Role) SynthesizeHclAttributes() *map[string]interface{} { return returns } -func (r *jsiiProxy_Role) ToHclTerraform() interface{} { - var returns interface{} +func (r *jsiiProxy_Role) ToHclTerraform() any { + var returns any _jsii_.Invoke( r, @@ -1674,8 +1673,8 @@ func (r *jsiiProxy_Role) ToHclTerraform() interface{} { return returns } -func (r *jsiiProxy_Role) ToMetadata() interface{} { - var returns interface{} +func (r *jsiiProxy_Role) ToMetadata() any { + var returns any _jsii_.Invoke( r, @@ -1700,8 +1699,8 @@ func (r *jsiiProxy_Role) ToString() *string { return returns } -func (r *jsiiProxy_Role) ToTerraform() interface{} { - var returns interface{} +func (r *jsiiProxy_Role) ToTerraform() any { + var returns any _jsii_.Invoke( r, @@ -1712,4 +1711,3 @@ func (r *jsiiProxy_Role) ToTerraform() interface{} { return returns } - diff --git a/gen/postgresql/role/RoleConfig.go b/gen/postgresql/role/RoleConfig.go index 190515419e..b75282e039 100644 --- a/gen/postgresql/role/RoleConfig.go +++ b/gen/postgresql/role/RoleConfig.go @@ -6,9 +6,9 @@ import ( type RoleConfig struct { // Experimental. - Connection interface{} `field:"optional" json:"connection" yaml:"connection"` + Connection any `field:"optional" json:"connection" yaml:"connection"` // Experimental. - Count interface{} `field:"optional" json:"count" yaml:"count"` + Count any `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. @@ -18,7 +18,7 @@ type RoleConfig struct { // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. - Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` + Provisioners *[]any `field:"optional" json:"provisioners" yaml:"provisioners"` // The name of the role. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role#name Role#name} @@ -30,7 +30,7 @@ type RoleConfig struct { // Determine whether a role bypasses every row-level security (RLS) policy. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role#bypass_row_level_security Role#bypass_row_level_security} - BypassRowLevelSecurity interface{} `field:"optional" json:"bypassRowLevelSecurity" yaml:"bypassRowLevelSecurity"` + BypassRowLevelSecurity any `field:"optional" json:"bypassRowLevelSecurity" yaml:"bypassRowLevelSecurity"` // How many concurrent connections can be made with this role. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role#connection_limit Role#connection_limit} @@ -38,17 +38,17 @@ type RoleConfig struct { // Define a role's ability to create databases. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role#create_database Role#create_database} - CreateDatabase interface{} `field:"optional" json:"createDatabase" yaml:"createDatabase"` + CreateDatabase any `field:"optional" json:"createDatabase" yaml:"createDatabase"` // Determine whether this role will be permitted to create new roles. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role#create_role Role#create_role} - CreateRole interface{} `field:"optional" json:"createRole" yaml:"createRole"` + CreateRole any `field:"optional" json:"createRole" yaml:"createRole"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role#encrypted Role#encrypted}. Encrypted *string `field:"optional" json:"encrypted" yaml:"encrypted"` // Control whether the password is stored encrypted in the system catalogs. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role#encrypted_password Role#encrypted_password} - EncryptedPassword interface{} `field:"optional" json:"encryptedPassword" yaml:"encryptedPassword"` + EncryptedPassword any `field:"optional" json:"encryptedPassword" yaml:"encryptedPassword"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role#id Role#id}. // // Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. @@ -61,11 +61,11 @@ type RoleConfig struct { // Determine whether a role "inherits" the privileges of roles it is a member of. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role#inherit Role#inherit} - Inherit interface{} `field:"optional" json:"inherit" yaml:"inherit"` + Inherit any `field:"optional" json:"inherit" yaml:"inherit"` // Determine whether a role is allowed to log in. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role#login Role#login} - Login interface{} `field:"optional" json:"login" yaml:"login"` + Login any `field:"optional" json:"login" yaml:"login"` // Sets the role's password. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role#password Role#password} @@ -73,7 +73,7 @@ type RoleConfig struct { // Determine whether a role is allowed to initiate streaming replication or put the system in and out of backup mode. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role#replication Role#replication} - Replication interface{} `field:"optional" json:"replication" yaml:"replication"` + Replication any `field:"optional" json:"replication" yaml:"replication"` // Role(s) to grant to this new role. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role#roles Role#roles} @@ -85,11 +85,11 @@ type RoleConfig struct { // Skip actually running the DROP ROLE command when removing a ROLE from PostgreSQL. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role#skip_drop_role Role#skip_drop_role} - SkipDropRole interface{} `field:"optional" json:"skipDropRole" yaml:"skipDropRole"` + SkipDropRole any `field:"optional" json:"skipDropRole" yaml:"skipDropRole"` // Skip actually running the REASSIGN OWNED command when removing a role from PostgreSQL. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role#skip_reassign_owned Role#skip_reassign_owned} - SkipReassignOwned interface{} `field:"optional" json:"skipReassignOwned" yaml:"skipReassignOwned"` + SkipReassignOwned any `field:"optional" json:"skipReassignOwned" yaml:"skipReassignOwned"` // Abort any statement that takes more than the specified number of milliseconds. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role#statement_timeout Role#statement_timeout} @@ -97,10 +97,9 @@ type RoleConfig struct { // Determine whether the new role is a "superuser". // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role#superuser Role#superuser} - Superuser interface{} `field:"optional" json:"superuser" yaml:"superuser"` + Superuser any `field:"optional" json:"superuser" yaml:"superuser"` // Sets a date and time after which the role's password is no longer valid. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role#valid_until Role#valid_until} ValidUntil *string `field:"optional" json:"validUntil" yaml:"validUntil"` } - diff --git a/gen/postgresql/role/Role__checks.go b/gen/postgresql/role/Role__checks.go index 862ef3df2e..ac789bfed4 100644 --- a/gen/postgresql/role/Role__checks.go +++ b/gen/postgresql/role/Role__checks.go @@ -19,7 +19,7 @@ func (r *jsiiProxy_Role) validateAddMoveTargetParameters(moveTarget *string) err return nil } -func (r *jsiiProxy_Role) validateAddOverrideParameters(path *string, value interface{}) error { +func (r *jsiiProxy_Role) validateAddOverrideParameters(path *string, value any) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } @@ -127,7 +127,7 @@ func (r *jsiiProxy_Role) validateMoveFromIdParameters(id *string) error { return nil } -func (r *jsiiProxy_Role) validateMoveToParameters(moveTarget *string, index interface{}) error { +func (r *jsiiProxy_Role) validateMoveToParameters(moveTarget *string, index any) error { if moveTarget == nil { return fmt.Errorf("parameter moveTarget is required, but nil was provided") } @@ -220,7 +220,7 @@ func validateRole_GenerateConfigForImportParameters(scope constructs.Construct, return nil } -func validateRole_IsConstructParameters(x interface{}) error { +func validateRole_IsConstructParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -228,7 +228,7 @@ func validateRole_IsConstructParameters(x interface{}) error { return nil } -func validateRole_IsTerraformElementParameters(x interface{}) error { +func validateRole_IsTerraformElementParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -236,7 +236,7 @@ func validateRole_IsTerraformElementParameters(x interface{}) error { return nil } -func validateRole_IsTerraformResourceParameters(x interface{}) error { +func validateRole_IsTerraformResourceParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -252,7 +252,7 @@ func (j *jsiiProxy_Role) validateSetAssumeRoleParameters(val *string) error { return nil } -func (j *jsiiProxy_Role) validateSetBypassRowLevelSecurityParameters(val interface{}) error { +func (j *jsiiProxy_Role) validateSetBypassRowLevelSecurityParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -272,7 +272,7 @@ func (j *jsiiProxy_Role) validateSetBypassRowLevelSecurityParameters(val interfa return nil } -func (j *jsiiProxy_Role) validateSetConnectionParameters(val interface{}) error { +func (j *jsiiProxy_Role) validateSetConnectionParameters(val any) error { switch val.(type) { case *cdktf.SSHProvisionerConnection: val := val.(*cdktf.SSHProvisionerConnection) @@ -313,7 +313,7 @@ func (j *jsiiProxy_Role) validateSetConnectionLimitParameters(val *float64) erro return nil } -func (j *jsiiProxy_Role) validateSetCountParameters(val interface{}) error { +func (j *jsiiProxy_Role) validateSetCountParameters(val any) error { switch val.(type) { case *float64: // ok @@ -370,7 +370,7 @@ func (j *jsiiProxy_Role) validateSetCountParameters(val interface{}) error { return nil } -func (j *jsiiProxy_Role) validateSetCreateDatabaseParameters(val interface{}) error { +func (j *jsiiProxy_Role) validateSetCreateDatabaseParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -390,7 +390,7 @@ func (j *jsiiProxy_Role) validateSetCreateDatabaseParameters(val interface{}) er return nil } -func (j *jsiiProxy_Role) validateSetCreateRoleParameters(val interface{}) error { +func (j *jsiiProxy_Role) validateSetCreateRoleParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -418,7 +418,7 @@ func (j *jsiiProxy_Role) validateSetEncryptedParameters(val *string) error { return nil } -func (j *jsiiProxy_Role) validateSetEncryptedPasswordParameters(val interface{}) error { +func (j *jsiiProxy_Role) validateSetEncryptedPasswordParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -454,7 +454,7 @@ func (j *jsiiProxy_Role) validateSetIdleInTransactionSessionTimeoutParameters(va return nil } -func (j *jsiiProxy_Role) validateSetInheritParameters(val interface{}) error { +func (j *jsiiProxy_Role) validateSetInheritParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -482,7 +482,7 @@ func (j *jsiiProxy_Role) validateSetLifecycleParameters(val *cdktf.TerraformReso return nil } -func (j *jsiiProxy_Role) validateSetLoginParameters(val interface{}) error { +func (j *jsiiProxy_Role) validateSetLoginParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -518,7 +518,7 @@ func (j *jsiiProxy_Role) validateSetPasswordParameters(val *string) error { return nil } -func (j *jsiiProxy_Role) validateSetProvisionersParameters(val *[]interface{}) error { +func (j *jsiiProxy_Role) validateSetProvisionersParameters(val *[]any) error { for idx_97dfc6, v := range *val { switch v.(type) { case *cdktf.FileProvisioner: @@ -564,7 +564,7 @@ func (j *jsiiProxy_Role) validateSetProvisionersParameters(val *[]interface{}) e return nil } -func (j *jsiiProxy_Role) validateSetReplicationParameters(val interface{}) error { +func (j *jsiiProxy_Role) validateSetReplicationParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -600,7 +600,7 @@ func (j *jsiiProxy_Role) validateSetSearchPathParameters(val *[]*string) error { return nil } -func (j *jsiiProxy_Role) validateSetSkipDropRoleParameters(val interface{}) error { +func (j *jsiiProxy_Role) validateSetSkipDropRoleParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -620,7 +620,7 @@ func (j *jsiiProxy_Role) validateSetSkipDropRoleParameters(val interface{}) erro return nil } -func (j *jsiiProxy_Role) validateSetSkipReassignOwnedParameters(val interface{}) error { +func (j *jsiiProxy_Role) validateSetSkipReassignOwnedParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -648,7 +648,7 @@ func (j *jsiiProxy_Role) validateSetStatementTimeoutParameters(val *float64) err return nil } -func (j *jsiiProxy_Role) validateSetSuperuserParameters(val interface{}) error { +func (j *jsiiProxy_Role) validateSetSuperuserParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -694,4 +694,3 @@ func validateNewRoleParameters(scope constructs.Construct, id *string, config *R return nil } - diff --git a/gen/postgresql/role/main.go b/gen/postgresql/role/main.go index bea33ba2cc..d1c54a9dfa 100644 --- a/gen/postgresql/role/main.go +++ b/gen/postgresql/role/main.go @@ -9,7 +9,7 @@ import ( func init() { _jsii_.RegisterClass( "@cdktf/provider-postgresql.role.Role", - reflect.TypeOf((*Role)(nil)).Elem(), + reflect.TypeFor[Role](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "addMoveTarget", GoMethod: "AddMoveTarget"}, _jsii_.MemberMethod{JsiiMethod: "addOverride", GoMethod: "AddOverride"}, @@ -115,7 +115,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "validUntil", GoGetter: "ValidUntil"}, _jsii_.MemberProperty{JsiiProperty: "validUntilInput", GoGetter: "ValidUntilInput"}, }, - func() interface{} { + func() any { j := jsiiProxy_Role{} _jsii_.InitJsiiProxy(&j.Type__cdktfTerraformResource) return &j @@ -123,6 +123,6 @@ func init() { ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.role.RoleConfig", - reflect.TypeOf((*RoleConfig)(nil)).Elem(), + reflect.TypeFor[RoleConfig](), ) } diff --git a/gen/postgresql/roleattribute/RoleAttribute.go b/gen/postgresql/roleattribute/RoleAttribute.go index 453a707d57..b8767a5a85 100644 --- a/gen/postgresql/roleattribute/RoleAttribute.go +++ b/gen/postgresql/roleattribute/RoleAttribute.go @@ -15,37 +15,37 @@ type RoleAttribute interface { AssumeRole() *string SetAssumeRole(val *string) AssumeRoleInput() *string - BypassRowLevelSecurity() interface{} - SetBypassRowLevelSecurity(val interface{}) - BypassRowLevelSecurityInput() interface{} + BypassRowLevelSecurity() any + SetBypassRowLevelSecurity(val any) + BypassRowLevelSecurityInput() any // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. - Connection() interface{} + Connection() any // Experimental. - SetConnection(val interface{}) + SetConnection(val any) ConnectionLimit() *float64 SetConnectionLimit(val *float64) ConnectionLimitInput() *float64 // Experimental. - ConstructNodeMetadata() *map[string]interface{} + ConstructNodeMetadata() *map[string]any // Experimental. - Count() interface{} + Count() any // Experimental. - SetCount(val interface{}) - CreateDatabase() interface{} - SetCreateDatabase(val interface{}) - CreateDatabaseInput() interface{} - CreateRole() interface{} - SetCreateRole(val interface{}) - CreateRoleInput() interface{} + SetCount(val any) + CreateDatabase() any + SetCreateDatabase(val any) + CreateDatabaseInput() any + CreateRole() any + SetCreateRole(val any) + CreateRoleInput() any // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) - EncryptedPassword() interface{} - SetEncryptedPassword(val interface{}) - EncryptedPasswordInput() interface{} + EncryptedPassword() any + SetEncryptedPassword(val any) + EncryptedPasswordInput() any ExtensionAttrs() *map[string]*string SetExtensionAttrs(val *map[string]*string) ExtensionAttrsInput() *map[string]*string @@ -63,16 +63,16 @@ type RoleAttribute interface { IdleInTransactionSessionTimeout() *float64 SetIdleInTransactionSessionTimeout(val *float64) IdleInTransactionSessionTimeoutInput() *float64 - Inherit() interface{} - SetInherit(val interface{}) - InheritInput() interface{} + Inherit() any + SetInherit(val any) + InheritInput() any // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) - Login() interface{} - SetLogin(val interface{}) - LoginInput() interface{} + Login() any + SetLogin(val any) + LoginInput() any Name() *string SetName(val *string) NameInput() *string @@ -86,27 +86,27 @@ type RoleAttribute interface { // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. - Provisioners() *[]interface{} + Provisioners() *[]any // Experimental. - SetProvisioners(val *[]interface{}) + SetProvisioners(val *[]any) // Experimental. - RawOverrides() interface{} - Replication() interface{} - SetReplication(val interface{}) - ReplicationInput() interface{} + RawOverrides() any + Replication() any + SetReplication(val any) + ReplicationInput() any SearchPath() *[]*string SetSearchPath(val *[]*string) SearchPathInput() *[]*string StatementTimeout() *float64 SetStatementTimeout(val *float64) StatementTimeoutInput() *float64 - Superuser() interface{} - SetSuperuser(val interface{}) - SuperuserInput() interface{} + Superuser() any + SetSuperuser(val any) + SuperuserInput() any // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. - TerraformMetaArguments() *map[string]interface{} + TerraformMetaArguments() *map[string]any // Experimental. TerraformResourceType() *string ValidUntil() *string @@ -116,9 +116,9 @@ type RoleAttribute interface { // Experimental. AddMoveTarget(moveTarget *string) // Experimental. - AddOverride(path *string, value interface{}) + AddOverride(path *string, value any) // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -136,7 +136,7 @@ type RoleAttribute interface { // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. - HasResourceMove() interface{} + HasResourceMove() any // Experimental. ImportFrom(id *string, provider cdktf.TerraformProvider) // Experimental. @@ -148,7 +148,7 @@ type RoleAttribute interface { MoveFromId(id *string) // Moves this resource to the target resource given by moveTarget. // Experimental. - MoveTo(moveTarget *string, index interface{}) + MoveTo(moveTarget *string, index any) // Moves this resource to the resource corresponding to "id". // Experimental. MoveToId(id *string) @@ -175,17 +175,17 @@ type RoleAttribute interface { ResetStatementTimeout() ResetSuperuser() ResetValidUntil() - SynthesizeAttributes() *map[string]interface{} - SynthesizeHclAttributes() *map[string]interface{} + SynthesizeAttributes() *map[string]any + SynthesizeHclAttributes() *map[string]any // Experimental. - ToHclTerraform() interface{} + ToHclTerraform() any // Experimental. - ToMetadata() interface{} + ToMetadata() any // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. - ToTerraform() interface{} + ToTerraform() any } // The jsii proxy struct for RoleAttribute @@ -213,8 +213,8 @@ func (j *jsiiProxy_RoleAttribute) AssumeRoleInput() *string { return returns } -func (j *jsiiProxy_RoleAttribute) BypassRowLevelSecurity() interface{} { - var returns interface{} +func (j *jsiiProxy_RoleAttribute) BypassRowLevelSecurity() any { + var returns any _jsii_.Get( j, "bypassRowLevelSecurity", @@ -223,8 +223,8 @@ func (j *jsiiProxy_RoleAttribute) BypassRowLevelSecurity() interface{} { return returns } -func (j *jsiiProxy_RoleAttribute) BypassRowLevelSecurityInput() interface{} { - var returns interface{} +func (j *jsiiProxy_RoleAttribute) BypassRowLevelSecurityInput() any { + var returns any _jsii_.Get( j, "bypassRowLevelSecurityInput", @@ -243,8 +243,8 @@ func (j *jsiiProxy_RoleAttribute) CdktfStack() cdktf.TerraformStack { return returns } -func (j *jsiiProxy_RoleAttribute) Connection() interface{} { - var returns interface{} +func (j *jsiiProxy_RoleAttribute) Connection() any { + var returns any _jsii_.Get( j, "connection", @@ -273,8 +273,8 @@ func (j *jsiiProxy_RoleAttribute) ConnectionLimitInput() *float64 { return returns } -func (j *jsiiProxy_RoleAttribute) ConstructNodeMetadata() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_RoleAttribute) ConstructNodeMetadata() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "constructNodeMetadata", @@ -283,8 +283,8 @@ func (j *jsiiProxy_RoleAttribute) ConstructNodeMetadata() *map[string]interface{ return returns } -func (j *jsiiProxy_RoleAttribute) Count() interface{} { - var returns interface{} +func (j *jsiiProxy_RoleAttribute) Count() any { + var returns any _jsii_.Get( j, "count", @@ -293,8 +293,8 @@ func (j *jsiiProxy_RoleAttribute) Count() interface{} { return returns } -func (j *jsiiProxy_RoleAttribute) CreateDatabase() interface{} { - var returns interface{} +func (j *jsiiProxy_RoleAttribute) CreateDatabase() any { + var returns any _jsii_.Get( j, "createDatabase", @@ -303,8 +303,8 @@ func (j *jsiiProxy_RoleAttribute) CreateDatabase() interface{} { return returns } -func (j *jsiiProxy_RoleAttribute) CreateDatabaseInput() interface{} { - var returns interface{} +func (j *jsiiProxy_RoleAttribute) CreateDatabaseInput() any { + var returns any _jsii_.Get( j, "createDatabaseInput", @@ -313,8 +313,8 @@ func (j *jsiiProxy_RoleAttribute) CreateDatabaseInput() interface{} { return returns } -func (j *jsiiProxy_RoleAttribute) CreateRole() interface{} { - var returns interface{} +func (j *jsiiProxy_RoleAttribute) CreateRole() any { + var returns any _jsii_.Get( j, "createRole", @@ -323,8 +323,8 @@ func (j *jsiiProxy_RoleAttribute) CreateRole() interface{} { return returns } -func (j *jsiiProxy_RoleAttribute) CreateRoleInput() interface{} { - var returns interface{} +func (j *jsiiProxy_RoleAttribute) CreateRoleInput() any { + var returns any _jsii_.Get( j, "createRoleInput", @@ -343,8 +343,8 @@ func (j *jsiiProxy_RoleAttribute) DependsOn() *[]*string { return returns } -func (j *jsiiProxy_RoleAttribute) EncryptedPassword() interface{} { - var returns interface{} +func (j *jsiiProxy_RoleAttribute) EncryptedPassword() any { + var returns any _jsii_.Get( j, "encryptedPassword", @@ -353,8 +353,8 @@ func (j *jsiiProxy_RoleAttribute) EncryptedPassword() interface{} { return returns } -func (j *jsiiProxy_RoleAttribute) EncryptedPasswordInput() interface{} { - var returns interface{} +func (j *jsiiProxy_RoleAttribute) EncryptedPasswordInput() any { + var returns any _jsii_.Get( j, "encryptedPasswordInput", @@ -453,8 +453,8 @@ func (j *jsiiProxy_RoleAttribute) IdleInTransactionSessionTimeoutInput() *float6 return returns } -func (j *jsiiProxy_RoleAttribute) Inherit() interface{} { - var returns interface{} +func (j *jsiiProxy_RoleAttribute) Inherit() any { + var returns any _jsii_.Get( j, "inherit", @@ -463,8 +463,8 @@ func (j *jsiiProxy_RoleAttribute) Inherit() interface{} { return returns } -func (j *jsiiProxy_RoleAttribute) InheritInput() interface{} { - var returns interface{} +func (j *jsiiProxy_RoleAttribute) InheritInput() any { + var returns any _jsii_.Get( j, "inheritInput", @@ -483,8 +483,8 @@ func (j *jsiiProxy_RoleAttribute) Lifecycle() *cdktf.TerraformResourceLifecycle return returns } -func (j *jsiiProxy_RoleAttribute) Login() interface{} { - var returns interface{} +func (j *jsiiProxy_RoleAttribute) Login() any { + var returns any _jsii_.Get( j, "login", @@ -493,8 +493,8 @@ func (j *jsiiProxy_RoleAttribute) Login() interface{} { return returns } -func (j *jsiiProxy_RoleAttribute) LoginInput() interface{} { - var returns interface{} +func (j *jsiiProxy_RoleAttribute) LoginInput() any { + var returns any _jsii_.Get( j, "loginInput", @@ -563,8 +563,8 @@ func (j *jsiiProxy_RoleAttribute) Provider() cdktf.TerraformProvider { return returns } -func (j *jsiiProxy_RoleAttribute) Provisioners() *[]interface{} { - var returns *[]interface{} +func (j *jsiiProxy_RoleAttribute) Provisioners() *[]any { + var returns *[]any _jsii_.Get( j, "provisioners", @@ -573,8 +573,8 @@ func (j *jsiiProxy_RoleAttribute) Provisioners() *[]interface{} { return returns } -func (j *jsiiProxy_RoleAttribute) RawOverrides() interface{} { - var returns interface{} +func (j *jsiiProxy_RoleAttribute) RawOverrides() any { + var returns any _jsii_.Get( j, "rawOverrides", @@ -583,8 +583,8 @@ func (j *jsiiProxy_RoleAttribute) RawOverrides() interface{} { return returns } -func (j *jsiiProxy_RoleAttribute) Replication() interface{} { - var returns interface{} +func (j *jsiiProxy_RoleAttribute) Replication() any { + var returns any _jsii_.Get( j, "replication", @@ -593,8 +593,8 @@ func (j *jsiiProxy_RoleAttribute) Replication() interface{} { return returns } -func (j *jsiiProxy_RoleAttribute) ReplicationInput() interface{} { - var returns interface{} +func (j *jsiiProxy_RoleAttribute) ReplicationInput() any { + var returns any _jsii_.Get( j, "replicationInput", @@ -643,8 +643,8 @@ func (j *jsiiProxy_RoleAttribute) StatementTimeoutInput() *float64 { return returns } -func (j *jsiiProxy_RoleAttribute) Superuser() interface{} { - var returns interface{} +func (j *jsiiProxy_RoleAttribute) Superuser() any { + var returns any _jsii_.Get( j, "superuser", @@ -653,8 +653,8 @@ func (j *jsiiProxy_RoleAttribute) Superuser() interface{} { return returns } -func (j *jsiiProxy_RoleAttribute) SuperuserInput() interface{} { - var returns interface{} +func (j *jsiiProxy_RoleAttribute) SuperuserInput() any { + var returns any _jsii_.Get( j, "superuserInput", @@ -673,8 +673,8 @@ func (j *jsiiProxy_RoleAttribute) TerraformGeneratorMetadata() *cdktf.TerraformP return returns } -func (j *jsiiProxy_RoleAttribute) TerraformMetaArguments() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_RoleAttribute) TerraformMetaArguments() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "terraformMetaArguments", @@ -713,7 +713,6 @@ func (j *jsiiProxy_RoleAttribute) ValidUntilInput() *string { return returns } - // Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role_attribute postgresql_role_attribute} Resource. func NewRoleAttribute(scope constructs.Construct, id *string, config *RoleAttributeConfig) RoleAttribute { _init_.Initialize() @@ -725,7 +724,7 @@ func NewRoleAttribute(scope constructs.Construct, id *string, config *RoleAttrib _jsii_.Create( "@cdktf/provider-postgresql.roleAttribute.RoleAttribute", - []interface{}{scope, id, config}, + []any{scope, id, config}, &j, ) @@ -738,12 +737,12 @@ func NewRoleAttribute_Override(r RoleAttribute, scope constructs.Construct, id * _jsii_.Create( "@cdktf/provider-postgresql.roleAttribute.RoleAttribute", - []interface{}{scope, id, config}, + []any{scope, id, config}, r, ) } -func (j *jsiiProxy_RoleAttribute)SetAssumeRole(val *string) { +func (j *jsiiProxy_RoleAttribute) SetAssumeRole(val *string) { if err := j.validateSetAssumeRoleParameters(val); err != nil { panic(err) } @@ -754,7 +753,7 @@ func (j *jsiiProxy_RoleAttribute)SetAssumeRole(val *string) { ) } -func (j *jsiiProxy_RoleAttribute)SetBypassRowLevelSecurity(val interface{}) { +func (j *jsiiProxy_RoleAttribute) SetBypassRowLevelSecurity(val any) { if err := j.validateSetBypassRowLevelSecurityParameters(val); err != nil { panic(err) } @@ -765,7 +764,7 @@ func (j *jsiiProxy_RoleAttribute)SetBypassRowLevelSecurity(val interface{}) { ) } -func (j *jsiiProxy_RoleAttribute)SetConnection(val interface{}) { +func (j *jsiiProxy_RoleAttribute) SetConnection(val any) { if err := j.validateSetConnectionParameters(val); err != nil { panic(err) } @@ -776,7 +775,7 @@ func (j *jsiiProxy_RoleAttribute)SetConnection(val interface{}) { ) } -func (j *jsiiProxy_RoleAttribute)SetConnectionLimit(val *float64) { +func (j *jsiiProxy_RoleAttribute) SetConnectionLimit(val *float64) { if err := j.validateSetConnectionLimitParameters(val); err != nil { panic(err) } @@ -787,7 +786,7 @@ func (j *jsiiProxy_RoleAttribute)SetConnectionLimit(val *float64) { ) } -func (j *jsiiProxy_RoleAttribute)SetCount(val interface{}) { +func (j *jsiiProxy_RoleAttribute) SetCount(val any) { if err := j.validateSetCountParameters(val); err != nil { panic(err) } @@ -798,7 +797,7 @@ func (j *jsiiProxy_RoleAttribute)SetCount(val interface{}) { ) } -func (j *jsiiProxy_RoleAttribute)SetCreateDatabase(val interface{}) { +func (j *jsiiProxy_RoleAttribute) SetCreateDatabase(val any) { if err := j.validateSetCreateDatabaseParameters(val); err != nil { panic(err) } @@ -809,7 +808,7 @@ func (j *jsiiProxy_RoleAttribute)SetCreateDatabase(val interface{}) { ) } -func (j *jsiiProxy_RoleAttribute)SetCreateRole(val interface{}) { +func (j *jsiiProxy_RoleAttribute) SetCreateRole(val any) { if err := j.validateSetCreateRoleParameters(val); err != nil { panic(err) } @@ -820,7 +819,7 @@ func (j *jsiiProxy_RoleAttribute)SetCreateRole(val interface{}) { ) } -func (j *jsiiProxy_RoleAttribute)SetDependsOn(val *[]*string) { +func (j *jsiiProxy_RoleAttribute) SetDependsOn(val *[]*string) { _jsii_.Set( j, "dependsOn", @@ -828,7 +827,7 @@ func (j *jsiiProxy_RoleAttribute)SetDependsOn(val *[]*string) { ) } -func (j *jsiiProxy_RoleAttribute)SetEncryptedPassword(val interface{}) { +func (j *jsiiProxy_RoleAttribute) SetEncryptedPassword(val any) { if err := j.validateSetEncryptedPasswordParameters(val); err != nil { panic(err) } @@ -839,7 +838,7 @@ func (j *jsiiProxy_RoleAttribute)SetEncryptedPassword(val interface{}) { ) } -func (j *jsiiProxy_RoleAttribute)SetExtensionAttrs(val *map[string]*string) { +func (j *jsiiProxy_RoleAttribute) SetExtensionAttrs(val *map[string]*string) { if err := j.validateSetExtensionAttrsParameters(val); err != nil { panic(err) } @@ -850,7 +849,7 @@ func (j *jsiiProxy_RoleAttribute)SetExtensionAttrs(val *map[string]*string) { ) } -func (j *jsiiProxy_RoleAttribute)SetForEach(val cdktf.ITerraformIterator) { +func (j *jsiiProxy_RoleAttribute) SetForEach(val cdktf.ITerraformIterator) { _jsii_.Set( j, "forEach", @@ -858,7 +857,7 @@ func (j *jsiiProxy_RoleAttribute)SetForEach(val cdktf.ITerraformIterator) { ) } -func (j *jsiiProxy_RoleAttribute)SetId(val *string) { +func (j *jsiiProxy_RoleAttribute) SetId(val *string) { if err := j.validateSetIdParameters(val); err != nil { panic(err) } @@ -869,7 +868,7 @@ func (j *jsiiProxy_RoleAttribute)SetId(val *string) { ) } -func (j *jsiiProxy_RoleAttribute)SetIdleInTransactionSessionTimeout(val *float64) { +func (j *jsiiProxy_RoleAttribute) SetIdleInTransactionSessionTimeout(val *float64) { if err := j.validateSetIdleInTransactionSessionTimeoutParameters(val); err != nil { panic(err) } @@ -880,7 +879,7 @@ func (j *jsiiProxy_RoleAttribute)SetIdleInTransactionSessionTimeout(val *float64 ) } -func (j *jsiiProxy_RoleAttribute)SetInherit(val interface{}) { +func (j *jsiiProxy_RoleAttribute) SetInherit(val any) { if err := j.validateSetInheritParameters(val); err != nil { panic(err) } @@ -891,7 +890,7 @@ func (j *jsiiProxy_RoleAttribute)SetInherit(val interface{}) { ) } -func (j *jsiiProxy_RoleAttribute)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { +func (j *jsiiProxy_RoleAttribute) SetLifecycle(val *cdktf.TerraformResourceLifecycle) { if err := j.validateSetLifecycleParameters(val); err != nil { panic(err) } @@ -902,7 +901,7 @@ func (j *jsiiProxy_RoleAttribute)SetLifecycle(val *cdktf.TerraformResourceLifecy ) } -func (j *jsiiProxy_RoleAttribute)SetLogin(val interface{}) { +func (j *jsiiProxy_RoleAttribute) SetLogin(val any) { if err := j.validateSetLoginParameters(val); err != nil { panic(err) } @@ -913,7 +912,7 @@ func (j *jsiiProxy_RoleAttribute)SetLogin(val interface{}) { ) } -func (j *jsiiProxy_RoleAttribute)SetName(val *string) { +func (j *jsiiProxy_RoleAttribute) SetName(val *string) { if err := j.validateSetNameParameters(val); err != nil { panic(err) } @@ -924,7 +923,7 @@ func (j *jsiiProxy_RoleAttribute)SetName(val *string) { ) } -func (j *jsiiProxy_RoleAttribute)SetPassword(val *string) { +func (j *jsiiProxy_RoleAttribute) SetPassword(val *string) { if err := j.validateSetPasswordParameters(val); err != nil { panic(err) } @@ -935,7 +934,7 @@ func (j *jsiiProxy_RoleAttribute)SetPassword(val *string) { ) } -func (j *jsiiProxy_RoleAttribute)SetProvider(val cdktf.TerraformProvider) { +func (j *jsiiProxy_RoleAttribute) SetProvider(val cdktf.TerraformProvider) { _jsii_.Set( j, "provider", @@ -943,7 +942,7 @@ func (j *jsiiProxy_RoleAttribute)SetProvider(val cdktf.TerraformProvider) { ) } -func (j *jsiiProxy_RoleAttribute)SetProvisioners(val *[]interface{}) { +func (j *jsiiProxy_RoleAttribute) SetProvisioners(val *[]any) { if err := j.validateSetProvisionersParameters(val); err != nil { panic(err) } @@ -954,7 +953,7 @@ func (j *jsiiProxy_RoleAttribute)SetProvisioners(val *[]interface{}) { ) } -func (j *jsiiProxy_RoleAttribute)SetReplication(val interface{}) { +func (j *jsiiProxy_RoleAttribute) SetReplication(val any) { if err := j.validateSetReplicationParameters(val); err != nil { panic(err) } @@ -965,7 +964,7 @@ func (j *jsiiProxy_RoleAttribute)SetReplication(val interface{}) { ) } -func (j *jsiiProxy_RoleAttribute)SetSearchPath(val *[]*string) { +func (j *jsiiProxy_RoleAttribute) SetSearchPath(val *[]*string) { if err := j.validateSetSearchPathParameters(val); err != nil { panic(err) } @@ -976,7 +975,7 @@ func (j *jsiiProxy_RoleAttribute)SetSearchPath(val *[]*string) { ) } -func (j *jsiiProxy_RoleAttribute)SetStatementTimeout(val *float64) { +func (j *jsiiProxy_RoleAttribute) SetStatementTimeout(val *float64) { if err := j.validateSetStatementTimeoutParameters(val); err != nil { panic(err) } @@ -987,7 +986,7 @@ func (j *jsiiProxy_RoleAttribute)SetStatementTimeout(val *float64) { ) } -func (j *jsiiProxy_RoleAttribute)SetSuperuser(val interface{}) { +func (j *jsiiProxy_RoleAttribute) SetSuperuser(val any) { if err := j.validateSetSuperuserParameters(val); err != nil { panic(err) } @@ -998,7 +997,7 @@ func (j *jsiiProxy_RoleAttribute)SetSuperuser(val interface{}) { ) } -func (j *jsiiProxy_RoleAttribute)SetValidUntil(val *string) { +func (j *jsiiProxy_RoleAttribute) SetValidUntil(val *string) { if err := j.validateSetValidUntilParameters(val); err != nil { panic(err) } @@ -1021,7 +1020,7 @@ func RoleAttribute_GenerateConfigForImport(scope constructs.Construct, importToI _jsii_.StaticInvoke( "@cdktf/provider-postgresql.roleAttribute.RoleAttribute", "generateConfigForImport", - []interface{}{scope, importToId, importFromId, provider}, + []any{scope, importToId, importFromId, provider}, &returns, ) @@ -1045,7 +1044,7 @@ func RoleAttribute_GenerateConfigForImport(scope constructs.Construct, importToI // this type-testing method instead. // // Returns: true if `x` is an object created from a class which extends `Construct`. -func RoleAttribute_IsConstruct(x interface{}) *bool { +func RoleAttribute_IsConstruct(x any) *bool { _init_.Initialize() if err := validateRoleAttribute_IsConstructParameters(x); err != nil { @@ -1056,7 +1055,7 @@ func RoleAttribute_IsConstruct(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.roleAttribute.RoleAttribute", "isConstruct", - []interface{}{x}, + []any{x}, &returns, ) @@ -1064,7 +1063,7 @@ func RoleAttribute_IsConstruct(x interface{}) *bool { } // Experimental. -func RoleAttribute_IsTerraformElement(x interface{}) *bool { +func RoleAttribute_IsTerraformElement(x any) *bool { _init_.Initialize() if err := validateRoleAttribute_IsTerraformElementParameters(x); err != nil { @@ -1075,7 +1074,7 @@ func RoleAttribute_IsTerraformElement(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.roleAttribute.RoleAttribute", "isTerraformElement", - []interface{}{x}, + []any{x}, &returns, ) @@ -1083,7 +1082,7 @@ func RoleAttribute_IsTerraformElement(x interface{}) *bool { } // Experimental. -func RoleAttribute_IsTerraformResource(x interface{}) *bool { +func RoleAttribute_IsTerraformResource(x any) *bool { _init_.Initialize() if err := validateRoleAttribute_IsTerraformResourceParameters(x); err != nil { @@ -1094,7 +1093,7 @@ func RoleAttribute_IsTerraformResource(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.roleAttribute.RoleAttribute", "isTerraformResource", - []interface{}{x}, + []any{x}, &returns, ) @@ -1119,31 +1118,31 @@ func (r *jsiiProxy_RoleAttribute) AddMoveTarget(moveTarget *string) { _jsii_.InvokeVoid( r, "addMoveTarget", - []interface{}{moveTarget}, + []any{moveTarget}, ) } -func (r *jsiiProxy_RoleAttribute) AddOverride(path *string, value interface{}) { +func (r *jsiiProxy_RoleAttribute) AddOverride(path *string, value any) { if err := r.validateAddOverrideParameters(path, value); err != nil { panic(err) } _jsii_.InvokeVoid( r, "addOverride", - []interface{}{path, value}, + []any{path, value}, ) } -func (r *jsiiProxy_RoleAttribute) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (r *jsiiProxy_RoleAttribute) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := r.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( r, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1159,7 +1158,7 @@ func (r *jsiiProxy_RoleAttribute) GetBooleanAttribute(terraformAttribute *string _jsii_.Invoke( r, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1175,7 +1174,7 @@ func (r *jsiiProxy_RoleAttribute) GetBooleanMapAttribute(terraformAttribute *str _jsii_.Invoke( r, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1191,7 +1190,7 @@ func (r *jsiiProxy_RoleAttribute) GetListAttribute(terraformAttribute *string) * _jsii_.Invoke( r, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1207,7 +1206,7 @@ func (r *jsiiProxy_RoleAttribute) GetNumberAttribute(terraformAttribute *string) _jsii_.Invoke( r, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1223,7 +1222,7 @@ func (r *jsiiProxy_RoleAttribute) GetNumberListAttribute(terraformAttribute *str _jsii_.Invoke( r, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1239,7 +1238,7 @@ func (r *jsiiProxy_RoleAttribute) GetNumberMapAttribute(terraformAttribute *stri _jsii_.Invoke( r, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1255,7 +1254,7 @@ func (r *jsiiProxy_RoleAttribute) GetStringAttribute(terraformAttribute *string) _jsii_.Invoke( r, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1271,15 +1270,15 @@ func (r *jsiiProxy_RoleAttribute) GetStringMapAttribute(terraformAttribute *stri _jsii_.Invoke( r, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) return returns } -func (r *jsiiProxy_RoleAttribute) HasResourceMove() interface{} { - var returns interface{} +func (r *jsiiProxy_RoleAttribute) HasResourceMove() any { + var returns any _jsii_.Invoke( r, @@ -1298,7 +1297,7 @@ func (r *jsiiProxy_RoleAttribute) ImportFrom(id *string, provider cdktf.Terrafor _jsii_.InvokeVoid( r, "importFrom", - []interface{}{id, provider}, + []any{id, provider}, ) } @@ -1311,7 +1310,7 @@ func (r *jsiiProxy_RoleAttribute) InterpolationForAttribute(terraformAttribute * _jsii_.Invoke( r, "interpolationForAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -1325,18 +1324,18 @@ func (r *jsiiProxy_RoleAttribute) MoveFromId(id *string) { _jsii_.InvokeVoid( r, "moveFromId", - []interface{}{id}, + []any{id}, ) } -func (r *jsiiProxy_RoleAttribute) MoveTo(moveTarget *string, index interface{}) { +func (r *jsiiProxy_RoleAttribute) MoveTo(moveTarget *string, index any) { if err := r.validateMoveToParameters(moveTarget, index); err != nil { panic(err) } _jsii_.InvokeVoid( r, "moveTo", - []interface{}{moveTarget, index}, + []any{moveTarget, index}, ) } @@ -1347,7 +1346,7 @@ func (r *jsiiProxy_RoleAttribute) MoveToId(id *string) { _jsii_.InvokeVoid( r, "moveToId", - []interface{}{id}, + []any{id}, ) } @@ -1358,7 +1357,7 @@ func (r *jsiiProxy_RoleAttribute) OverrideLogicalId(newLogicalId *string) { _jsii_.InvokeVoid( r, "overrideLogicalId", - []interface{}{newLogicalId}, + []any{newLogicalId}, ) } @@ -1506,8 +1505,8 @@ func (r *jsiiProxy_RoleAttribute) ResetValidUntil() { ) } -func (r *jsiiProxy_RoleAttribute) SynthesizeAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (r *jsiiProxy_RoleAttribute) SynthesizeAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( r, @@ -1519,8 +1518,8 @@ func (r *jsiiProxy_RoleAttribute) SynthesizeAttributes() *map[string]interface{} return returns } -func (r *jsiiProxy_RoleAttribute) SynthesizeHclAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (r *jsiiProxy_RoleAttribute) SynthesizeHclAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( r, @@ -1532,8 +1531,8 @@ func (r *jsiiProxy_RoleAttribute) SynthesizeHclAttributes() *map[string]interfac return returns } -func (r *jsiiProxy_RoleAttribute) ToHclTerraform() interface{} { - var returns interface{} +func (r *jsiiProxy_RoleAttribute) ToHclTerraform() any { + var returns any _jsii_.Invoke( r, @@ -1545,8 +1544,8 @@ func (r *jsiiProxy_RoleAttribute) ToHclTerraform() interface{} { return returns } -func (r *jsiiProxy_RoleAttribute) ToMetadata() interface{} { - var returns interface{} +func (r *jsiiProxy_RoleAttribute) ToMetadata() any { + var returns any _jsii_.Invoke( r, @@ -1571,8 +1570,8 @@ func (r *jsiiProxy_RoleAttribute) ToString() *string { return returns } -func (r *jsiiProxy_RoleAttribute) ToTerraform() interface{} { - var returns interface{} +func (r *jsiiProxy_RoleAttribute) ToTerraform() any { + var returns any _jsii_.Invoke( r, @@ -1583,4 +1582,3 @@ func (r *jsiiProxy_RoleAttribute) ToTerraform() interface{} { return returns } - diff --git a/gen/postgresql/roleattribute/RoleAttributeConfig.go b/gen/postgresql/roleattribute/RoleAttributeConfig.go index c3956522f1..90f5c88816 100644 --- a/gen/postgresql/roleattribute/RoleAttributeConfig.go +++ b/gen/postgresql/roleattribute/RoleAttributeConfig.go @@ -6,9 +6,9 @@ import ( type RoleAttributeConfig struct { // Experimental. - Connection interface{} `field:"optional" json:"connection" yaml:"connection"` + Connection any `field:"optional" json:"connection" yaml:"connection"` // Experimental. - Count interface{} `field:"optional" json:"count" yaml:"count"` + Count any `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. @@ -18,7 +18,7 @@ type RoleAttributeConfig struct { // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. - Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` + Provisioners *[]any `field:"optional" json:"provisioners" yaml:"provisioners"` // The name of the role. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role_attribute#name RoleAttribute#name} @@ -30,7 +30,7 @@ type RoleAttributeConfig struct { // Determine whether a role bypasses every row-level security (RLS) policy. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role_attribute#bypass_row_level_security RoleAttribute#bypass_row_level_security} - BypassRowLevelSecurity interface{} `field:"optional" json:"bypassRowLevelSecurity" yaml:"bypassRowLevelSecurity"` + BypassRowLevelSecurity any `field:"optional" json:"bypassRowLevelSecurity" yaml:"bypassRowLevelSecurity"` // How many concurrent connections can be made with this role. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role_attribute#connection_limit RoleAttribute#connection_limit} @@ -38,15 +38,15 @@ type RoleAttributeConfig struct { // Define a role's ability to create databases. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role_attribute#create_database RoleAttribute#create_database} - CreateDatabase interface{} `field:"optional" json:"createDatabase" yaml:"createDatabase"` + CreateDatabase any `field:"optional" json:"createDatabase" yaml:"createDatabase"` // Determine whether this role will be permitted to create new roles. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role_attribute#create_role RoleAttribute#create_role} - CreateRole interface{} `field:"optional" json:"createRole" yaml:"createRole"` + CreateRole any `field:"optional" json:"createRole" yaml:"createRole"` // Control whether the password is stored encrypted in the system catalogs. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role_attribute#encrypted_password RoleAttribute#encrypted_password} - EncryptedPassword interface{} `field:"optional" json:"encryptedPassword" yaml:"encryptedPassword"` + EncryptedPassword any `field:"optional" json:"encryptedPassword" yaml:"encryptedPassword"` // Map of arbitrary GUC (Grand Unified Configuration) key-value pairs to set for the role. Supports all PostgreSQL custom variables. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role_attribute#extension_attrs RoleAttribute#extension_attrs} @@ -63,11 +63,11 @@ type RoleAttributeConfig struct { // Determine whether a role "inherits" the privileges of roles it is a member of. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role_attribute#inherit RoleAttribute#inherit} - Inherit interface{} `field:"optional" json:"inherit" yaml:"inherit"` + Inherit any `field:"optional" json:"inherit" yaml:"inherit"` // Determine whether a role is allowed to log in. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role_attribute#login RoleAttribute#login} - Login interface{} `field:"optional" json:"login" yaml:"login"` + Login any `field:"optional" json:"login" yaml:"login"` // Sets the role's password. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role_attribute#password RoleAttribute#password} @@ -75,7 +75,7 @@ type RoleAttributeConfig struct { // Determine whether a role is allowed to initiate streaming replication or put the system in and out of backup mode. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role_attribute#replication RoleAttribute#replication} - Replication interface{} `field:"optional" json:"replication" yaml:"replication"` + Replication any `field:"optional" json:"replication" yaml:"replication"` // Sets the role's search path. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role_attribute#search_path RoleAttribute#search_path} @@ -87,10 +87,9 @@ type RoleAttributeConfig struct { // Determine whether the new role is a "superuser". // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role_attribute#superuser RoleAttribute#superuser} - Superuser interface{} `field:"optional" json:"superuser" yaml:"superuser"` + Superuser any `field:"optional" json:"superuser" yaml:"superuser"` // Sets a date and time after which the role's password is no longer valid. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/role_attribute#valid_until RoleAttribute#valid_until} ValidUntil *string `field:"optional" json:"validUntil" yaml:"validUntil"` } - diff --git a/gen/postgresql/roleattribute/RoleAttribute__checks.go b/gen/postgresql/roleattribute/RoleAttribute__checks.go index a800a188b0..d065c41e01 100644 --- a/gen/postgresql/roleattribute/RoleAttribute__checks.go +++ b/gen/postgresql/roleattribute/RoleAttribute__checks.go @@ -19,7 +19,7 @@ func (r *jsiiProxy_RoleAttribute) validateAddMoveTargetParameters(moveTarget *st return nil } -func (r *jsiiProxy_RoleAttribute) validateAddOverrideParameters(path *string, value interface{}) error { +func (r *jsiiProxy_RoleAttribute) validateAddOverrideParameters(path *string, value any) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } @@ -127,7 +127,7 @@ func (r *jsiiProxy_RoleAttribute) validateMoveFromIdParameters(id *string) error return nil } -func (r *jsiiProxy_RoleAttribute) validateMoveToParameters(moveTarget *string, index interface{}) error { +func (r *jsiiProxy_RoleAttribute) validateMoveToParameters(moveTarget *string, index any) error { if moveTarget == nil { return fmt.Errorf("parameter moveTarget is required, but nil was provided") } @@ -220,7 +220,7 @@ func validateRoleAttribute_GenerateConfigForImportParameters(scope constructs.Co return nil } -func validateRoleAttribute_IsConstructParameters(x interface{}) error { +func validateRoleAttribute_IsConstructParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -228,7 +228,7 @@ func validateRoleAttribute_IsConstructParameters(x interface{}) error { return nil } -func validateRoleAttribute_IsTerraformElementParameters(x interface{}) error { +func validateRoleAttribute_IsTerraformElementParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -236,7 +236,7 @@ func validateRoleAttribute_IsTerraformElementParameters(x interface{}) error { return nil } -func validateRoleAttribute_IsTerraformResourceParameters(x interface{}) error { +func validateRoleAttribute_IsTerraformResourceParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -252,7 +252,7 @@ func (j *jsiiProxy_RoleAttribute) validateSetAssumeRoleParameters(val *string) e return nil } -func (j *jsiiProxy_RoleAttribute) validateSetBypassRowLevelSecurityParameters(val interface{}) error { +func (j *jsiiProxy_RoleAttribute) validateSetBypassRowLevelSecurityParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -272,7 +272,7 @@ func (j *jsiiProxy_RoleAttribute) validateSetBypassRowLevelSecurityParameters(va return nil } -func (j *jsiiProxy_RoleAttribute) validateSetConnectionParameters(val interface{}) error { +func (j *jsiiProxy_RoleAttribute) validateSetConnectionParameters(val any) error { switch val.(type) { case *cdktf.SSHProvisionerConnection: val := val.(*cdktf.SSHProvisionerConnection) @@ -313,7 +313,7 @@ func (j *jsiiProxy_RoleAttribute) validateSetConnectionLimitParameters(val *floa return nil } -func (j *jsiiProxy_RoleAttribute) validateSetCountParameters(val interface{}) error { +func (j *jsiiProxy_RoleAttribute) validateSetCountParameters(val any) error { switch val.(type) { case *float64: // ok @@ -370,7 +370,7 @@ func (j *jsiiProxy_RoleAttribute) validateSetCountParameters(val interface{}) er return nil } -func (j *jsiiProxy_RoleAttribute) validateSetCreateDatabaseParameters(val interface{}) error { +func (j *jsiiProxy_RoleAttribute) validateSetCreateDatabaseParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -390,7 +390,7 @@ func (j *jsiiProxy_RoleAttribute) validateSetCreateDatabaseParameters(val interf return nil } -func (j *jsiiProxy_RoleAttribute) validateSetCreateRoleParameters(val interface{}) error { +func (j *jsiiProxy_RoleAttribute) validateSetCreateRoleParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -410,7 +410,7 @@ func (j *jsiiProxy_RoleAttribute) validateSetCreateRoleParameters(val interface{ return nil } -func (j *jsiiProxy_RoleAttribute) validateSetEncryptedPasswordParameters(val interface{}) error { +func (j *jsiiProxy_RoleAttribute) validateSetEncryptedPasswordParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -454,7 +454,7 @@ func (j *jsiiProxy_RoleAttribute) validateSetIdleInTransactionSessionTimeoutPara return nil } -func (j *jsiiProxy_RoleAttribute) validateSetInheritParameters(val interface{}) error { +func (j *jsiiProxy_RoleAttribute) validateSetInheritParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -482,7 +482,7 @@ func (j *jsiiProxy_RoleAttribute) validateSetLifecycleParameters(val *cdktf.Terr return nil } -func (j *jsiiProxy_RoleAttribute) validateSetLoginParameters(val interface{}) error { +func (j *jsiiProxy_RoleAttribute) validateSetLoginParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -518,7 +518,7 @@ func (j *jsiiProxy_RoleAttribute) validateSetPasswordParameters(val *string) err return nil } -func (j *jsiiProxy_RoleAttribute) validateSetProvisionersParameters(val *[]interface{}) error { +func (j *jsiiProxy_RoleAttribute) validateSetProvisionersParameters(val *[]any) error { for idx_97dfc6, v := range *val { switch v.(type) { case *cdktf.FileProvisioner: @@ -564,7 +564,7 @@ func (j *jsiiProxy_RoleAttribute) validateSetProvisionersParameters(val *[]inter return nil } -func (j *jsiiProxy_RoleAttribute) validateSetReplicationParameters(val interface{}) error { +func (j *jsiiProxy_RoleAttribute) validateSetReplicationParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -600,7 +600,7 @@ func (j *jsiiProxy_RoleAttribute) validateSetStatementTimeoutParameters(val *flo return nil } -func (j *jsiiProxy_RoleAttribute) validateSetSuperuserParameters(val interface{}) error { +func (j *jsiiProxy_RoleAttribute) validateSetSuperuserParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -646,4 +646,3 @@ func validateNewRoleAttributeParameters(scope constructs.Construct, id *string, return nil } - diff --git a/gen/postgresql/roleattribute/main.go b/gen/postgresql/roleattribute/main.go index 3f91801039..08afa874f1 100644 --- a/gen/postgresql/roleattribute/main.go +++ b/gen/postgresql/roleattribute/main.go @@ -9,7 +9,7 @@ import ( func init() { _jsii_.RegisterClass( "@cdktf/provider-postgresql.roleAttribute.RoleAttribute", - reflect.TypeOf((*RoleAttribute)(nil)).Elem(), + reflect.TypeFor[RoleAttribute](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "addMoveTarget", GoMethod: "AddMoveTarget"}, _jsii_.MemberMethod{JsiiMethod: "addOverride", GoMethod: "AddOverride"}, @@ -106,7 +106,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "validUntil", GoGetter: "ValidUntil"}, _jsii_.MemberProperty{JsiiProperty: "validUntilInput", GoGetter: "ValidUntilInput"}, }, - func() interface{} { + func() any { j := jsiiProxy_RoleAttribute{} _jsii_.InitJsiiProxy(&j.Type__cdktfTerraformResource) return &j @@ -114,6 +114,6 @@ func init() { ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.roleAttribute.RoleAttributeConfig", - reflect.TypeOf((*RoleAttributeConfig)(nil)).Elem(), + reflect.TypeFor[RoleAttributeConfig](), ) } diff --git a/gen/postgresql/schema/Schema.go b/gen/postgresql/schema/Schema.go index 7150742b89..4ec4fec7cb 100644 --- a/gen/postgresql/schema/Schema.go +++ b/gen/postgresql/schema/Schema.go @@ -15,15 +15,15 @@ type Schema interface { // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. - Connection() interface{} + Connection() any // Experimental. - SetConnection(val interface{}) + SetConnection(val any) // Experimental. - ConstructNodeMetadata() *map[string]interface{} + ConstructNodeMetadata() *map[string]any // Experimental. - Count() interface{} + Count() any // Experimental. - SetCount(val interface{}) + SetCount(val any) Database() *string SetDatabase(val *string) DatabaseInput() *string @@ -31,9 +31,9 @@ type Schema interface { DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) - DropCascade() interface{} - SetDropCascade(val interface{}) - DropCascadeInput() interface{} + DropCascade() any + SetDropCascade(val any) + DropCascadeInput() any // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. @@ -45,9 +45,9 @@ type Schema interface { Id() *string SetId(val *string) IdInput() *string - IfNotExists() interface{} - SetIfNotExists(val interface{}) - IfNotExistsInput() interface{} + IfNotExists() any + SetIfNotExists(val any) + IfNotExistsInput() any // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. @@ -61,30 +61,30 @@ type Schema interface { SetOwner(val *string) OwnerInput() *string Policy() SchemaPolicyList - PolicyInput() interface{} + PolicyInput() any // Experimental. Provider() cdktf.TerraformProvider // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. - Provisioners() *[]interface{} + Provisioners() *[]any // Experimental. - SetProvisioners(val *[]interface{}) + SetProvisioners(val *[]any) // Experimental. - RawOverrides() interface{} + RawOverrides() any // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. - TerraformMetaArguments() *map[string]interface{} + TerraformMetaArguments() *map[string]any // Experimental. TerraformResourceType() *string // Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. // Experimental. AddMoveTarget(moveTarget *string) // Experimental. - AddOverride(path *string, value interface{}) + AddOverride(path *string, value any) // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -102,7 +102,7 @@ type Schema interface { // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. - HasResourceMove() interface{} + HasResourceMove() any // Experimental. ImportFrom(id *string, provider cdktf.TerraformProvider) // Experimental. @@ -114,14 +114,14 @@ type Schema interface { MoveFromId(id *string) // Moves this resource to the target resource given by moveTarget. // Experimental. - MoveTo(moveTarget *string, index interface{}) + MoveTo(moveTarget *string, index any) // Moves this resource to the resource corresponding to "id". // Experimental. MoveToId(id *string) // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) - PutPolicy(value interface{}) + PutPolicy(value any) ResetDatabase() ResetDropCascade() ResetId() @@ -131,17 +131,17 @@ type Schema interface { ResetOverrideLogicalId() ResetOwner() ResetPolicy() - SynthesizeAttributes() *map[string]interface{} - SynthesizeHclAttributes() *map[string]interface{} + SynthesizeAttributes() *map[string]any + SynthesizeHclAttributes() *map[string]any // Experimental. - ToHclTerraform() interface{} + ToHclTerraform() any // Experimental. - ToMetadata() interface{} + ToMetadata() any // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. - ToTerraform() interface{} + ToTerraform() any } // The jsii proxy struct for Schema @@ -159,8 +159,8 @@ func (j *jsiiProxy_Schema) CdktfStack() cdktf.TerraformStack { return returns } -func (j *jsiiProxy_Schema) Connection() interface{} { - var returns interface{} +func (j *jsiiProxy_Schema) Connection() any { + var returns any _jsii_.Get( j, "connection", @@ -169,8 +169,8 @@ func (j *jsiiProxy_Schema) Connection() interface{} { return returns } -func (j *jsiiProxy_Schema) ConstructNodeMetadata() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_Schema) ConstructNodeMetadata() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "constructNodeMetadata", @@ -179,8 +179,8 @@ func (j *jsiiProxy_Schema) ConstructNodeMetadata() *map[string]interface{} { return returns } -func (j *jsiiProxy_Schema) Count() interface{} { - var returns interface{} +func (j *jsiiProxy_Schema) Count() any { + var returns any _jsii_.Get( j, "count", @@ -219,8 +219,8 @@ func (j *jsiiProxy_Schema) DependsOn() *[]*string { return returns } -func (j *jsiiProxy_Schema) DropCascade() interface{} { - var returns interface{} +func (j *jsiiProxy_Schema) DropCascade() any { + var returns any _jsii_.Get( j, "dropCascade", @@ -229,8 +229,8 @@ func (j *jsiiProxy_Schema) DropCascade() interface{} { return returns } -func (j *jsiiProxy_Schema) DropCascadeInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Schema) DropCascadeInput() any { + var returns any _jsii_.Get( j, "dropCascadeInput", @@ -289,8 +289,8 @@ func (j *jsiiProxy_Schema) IdInput() *string { return returns } -func (j *jsiiProxy_Schema) IfNotExists() interface{} { - var returns interface{} +func (j *jsiiProxy_Schema) IfNotExists() any { + var returns any _jsii_.Get( j, "ifNotExists", @@ -299,8 +299,8 @@ func (j *jsiiProxy_Schema) IfNotExists() interface{} { return returns } -func (j *jsiiProxy_Schema) IfNotExistsInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Schema) IfNotExistsInput() any { + var returns any _jsii_.Get( j, "ifNotExistsInput", @@ -379,8 +379,8 @@ func (j *jsiiProxy_Schema) Policy() SchemaPolicyList { return returns } -func (j *jsiiProxy_Schema) PolicyInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Schema) PolicyInput() any { + var returns any _jsii_.Get( j, "policyInput", @@ -399,8 +399,8 @@ func (j *jsiiProxy_Schema) Provider() cdktf.TerraformProvider { return returns } -func (j *jsiiProxy_Schema) Provisioners() *[]interface{} { - var returns *[]interface{} +func (j *jsiiProxy_Schema) Provisioners() *[]any { + var returns *[]any _jsii_.Get( j, "provisioners", @@ -409,8 +409,8 @@ func (j *jsiiProxy_Schema) Provisioners() *[]interface{} { return returns } -func (j *jsiiProxy_Schema) RawOverrides() interface{} { - var returns interface{} +func (j *jsiiProxy_Schema) RawOverrides() any { + var returns any _jsii_.Get( j, "rawOverrides", @@ -429,8 +429,8 @@ func (j *jsiiProxy_Schema) TerraformGeneratorMetadata() *cdktf.TerraformProvider return returns } -func (j *jsiiProxy_Schema) TerraformMetaArguments() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_Schema) TerraformMetaArguments() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "terraformMetaArguments", @@ -449,7 +449,6 @@ func (j *jsiiProxy_Schema) TerraformResourceType() *string { return returns } - // Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/schema postgresql_schema} Resource. func NewSchema(scope constructs.Construct, id *string, config *SchemaConfig) Schema { _init_.Initialize() @@ -461,7 +460,7 @@ func NewSchema(scope constructs.Construct, id *string, config *SchemaConfig) Sch _jsii_.Create( "@cdktf/provider-postgresql.schema.Schema", - []interface{}{scope, id, config}, + []any{scope, id, config}, &j, ) @@ -474,12 +473,12 @@ func NewSchema_Override(s Schema, scope constructs.Construct, id *string, config _jsii_.Create( "@cdktf/provider-postgresql.schema.Schema", - []interface{}{scope, id, config}, + []any{scope, id, config}, s, ) } -func (j *jsiiProxy_Schema)SetConnection(val interface{}) { +func (j *jsiiProxy_Schema) SetConnection(val any) { if err := j.validateSetConnectionParameters(val); err != nil { panic(err) } @@ -490,7 +489,7 @@ func (j *jsiiProxy_Schema)SetConnection(val interface{}) { ) } -func (j *jsiiProxy_Schema)SetCount(val interface{}) { +func (j *jsiiProxy_Schema) SetCount(val any) { if err := j.validateSetCountParameters(val); err != nil { panic(err) } @@ -501,7 +500,7 @@ func (j *jsiiProxy_Schema)SetCount(val interface{}) { ) } -func (j *jsiiProxy_Schema)SetDatabase(val *string) { +func (j *jsiiProxy_Schema) SetDatabase(val *string) { if err := j.validateSetDatabaseParameters(val); err != nil { panic(err) } @@ -512,7 +511,7 @@ func (j *jsiiProxy_Schema)SetDatabase(val *string) { ) } -func (j *jsiiProxy_Schema)SetDependsOn(val *[]*string) { +func (j *jsiiProxy_Schema) SetDependsOn(val *[]*string) { _jsii_.Set( j, "dependsOn", @@ -520,7 +519,7 @@ func (j *jsiiProxy_Schema)SetDependsOn(val *[]*string) { ) } -func (j *jsiiProxy_Schema)SetDropCascade(val interface{}) { +func (j *jsiiProxy_Schema) SetDropCascade(val any) { if err := j.validateSetDropCascadeParameters(val); err != nil { panic(err) } @@ -531,7 +530,7 @@ func (j *jsiiProxy_Schema)SetDropCascade(val interface{}) { ) } -func (j *jsiiProxy_Schema)SetForEach(val cdktf.ITerraformIterator) { +func (j *jsiiProxy_Schema) SetForEach(val cdktf.ITerraformIterator) { _jsii_.Set( j, "forEach", @@ -539,7 +538,7 @@ func (j *jsiiProxy_Schema)SetForEach(val cdktf.ITerraformIterator) { ) } -func (j *jsiiProxy_Schema)SetId(val *string) { +func (j *jsiiProxy_Schema) SetId(val *string) { if err := j.validateSetIdParameters(val); err != nil { panic(err) } @@ -550,7 +549,7 @@ func (j *jsiiProxy_Schema)SetId(val *string) { ) } -func (j *jsiiProxy_Schema)SetIfNotExists(val interface{}) { +func (j *jsiiProxy_Schema) SetIfNotExists(val any) { if err := j.validateSetIfNotExistsParameters(val); err != nil { panic(err) } @@ -561,7 +560,7 @@ func (j *jsiiProxy_Schema)SetIfNotExists(val interface{}) { ) } -func (j *jsiiProxy_Schema)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { +func (j *jsiiProxy_Schema) SetLifecycle(val *cdktf.TerraformResourceLifecycle) { if err := j.validateSetLifecycleParameters(val); err != nil { panic(err) } @@ -572,7 +571,7 @@ func (j *jsiiProxy_Schema)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { ) } -func (j *jsiiProxy_Schema)SetName(val *string) { +func (j *jsiiProxy_Schema) SetName(val *string) { if err := j.validateSetNameParameters(val); err != nil { panic(err) } @@ -583,7 +582,7 @@ func (j *jsiiProxy_Schema)SetName(val *string) { ) } -func (j *jsiiProxy_Schema)SetOwner(val *string) { +func (j *jsiiProxy_Schema) SetOwner(val *string) { if err := j.validateSetOwnerParameters(val); err != nil { panic(err) } @@ -594,7 +593,7 @@ func (j *jsiiProxy_Schema)SetOwner(val *string) { ) } -func (j *jsiiProxy_Schema)SetProvider(val cdktf.TerraformProvider) { +func (j *jsiiProxy_Schema) SetProvider(val cdktf.TerraformProvider) { _jsii_.Set( j, "provider", @@ -602,7 +601,7 @@ func (j *jsiiProxy_Schema)SetProvider(val cdktf.TerraformProvider) { ) } -func (j *jsiiProxy_Schema)SetProvisioners(val *[]interface{}) { +func (j *jsiiProxy_Schema) SetProvisioners(val *[]any) { if err := j.validateSetProvisionersParameters(val); err != nil { panic(err) } @@ -625,7 +624,7 @@ func Schema_GenerateConfigForImport(scope constructs.Construct, importToId *stri _jsii_.StaticInvoke( "@cdktf/provider-postgresql.schema.Schema", "generateConfigForImport", - []interface{}{scope, importToId, importFromId, provider}, + []any{scope, importToId, importFromId, provider}, &returns, ) @@ -649,7 +648,7 @@ func Schema_GenerateConfigForImport(scope constructs.Construct, importToId *stri // this type-testing method instead. // // Returns: true if `x` is an object created from a class which extends `Construct`. -func Schema_IsConstruct(x interface{}) *bool { +func Schema_IsConstruct(x any) *bool { _init_.Initialize() if err := validateSchema_IsConstructParameters(x); err != nil { @@ -660,7 +659,7 @@ func Schema_IsConstruct(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.schema.Schema", "isConstruct", - []interface{}{x}, + []any{x}, &returns, ) @@ -668,7 +667,7 @@ func Schema_IsConstruct(x interface{}) *bool { } // Experimental. -func Schema_IsTerraformElement(x interface{}) *bool { +func Schema_IsTerraformElement(x any) *bool { _init_.Initialize() if err := validateSchema_IsTerraformElementParameters(x); err != nil { @@ -679,7 +678,7 @@ func Schema_IsTerraformElement(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.schema.Schema", "isTerraformElement", - []interface{}{x}, + []any{x}, &returns, ) @@ -687,7 +686,7 @@ func Schema_IsTerraformElement(x interface{}) *bool { } // Experimental. -func Schema_IsTerraformResource(x interface{}) *bool { +func Schema_IsTerraformResource(x any) *bool { _init_.Initialize() if err := validateSchema_IsTerraformResourceParameters(x); err != nil { @@ -698,7 +697,7 @@ func Schema_IsTerraformResource(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.schema.Schema", "isTerraformResource", - []interface{}{x}, + []any{x}, &returns, ) @@ -723,31 +722,31 @@ func (s *jsiiProxy_Schema) AddMoveTarget(moveTarget *string) { _jsii_.InvokeVoid( s, "addMoveTarget", - []interface{}{moveTarget}, + []any{moveTarget}, ) } -func (s *jsiiProxy_Schema) AddOverride(path *string, value interface{}) { +func (s *jsiiProxy_Schema) AddOverride(path *string, value any) { if err := s.validateAddOverrideParameters(path, value); err != nil { panic(err) } _jsii_.InvokeVoid( s, "addOverride", - []interface{}{path, value}, + []any{path, value}, ) } -func (s *jsiiProxy_Schema) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (s *jsiiProxy_Schema) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := s.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( s, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -763,7 +762,7 @@ func (s *jsiiProxy_Schema) GetBooleanAttribute(terraformAttribute *string) cdktf _jsii_.Invoke( s, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -779,7 +778,7 @@ func (s *jsiiProxy_Schema) GetBooleanMapAttribute(terraformAttribute *string) *m _jsii_.Invoke( s, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -795,7 +794,7 @@ func (s *jsiiProxy_Schema) GetListAttribute(terraformAttribute *string) *[]*stri _jsii_.Invoke( s, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -811,7 +810,7 @@ func (s *jsiiProxy_Schema) GetNumberAttribute(terraformAttribute *string) *float _jsii_.Invoke( s, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -827,7 +826,7 @@ func (s *jsiiProxy_Schema) GetNumberListAttribute(terraformAttribute *string) *[ _jsii_.Invoke( s, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -843,7 +842,7 @@ func (s *jsiiProxy_Schema) GetNumberMapAttribute(terraformAttribute *string) *ma _jsii_.Invoke( s, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -859,7 +858,7 @@ func (s *jsiiProxy_Schema) GetStringAttribute(terraformAttribute *string) *strin _jsii_.Invoke( s, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -875,15 +874,15 @@ func (s *jsiiProxy_Schema) GetStringMapAttribute(terraformAttribute *string) *ma _jsii_.Invoke( s, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) return returns } -func (s *jsiiProxy_Schema) HasResourceMove() interface{} { - var returns interface{} +func (s *jsiiProxy_Schema) HasResourceMove() any { + var returns any _jsii_.Invoke( s, @@ -902,7 +901,7 @@ func (s *jsiiProxy_Schema) ImportFrom(id *string, provider cdktf.TerraformProvid _jsii_.InvokeVoid( s, "importFrom", - []interface{}{id, provider}, + []any{id, provider}, ) } @@ -915,7 +914,7 @@ func (s *jsiiProxy_Schema) InterpolationForAttribute(terraformAttribute *string) _jsii_.Invoke( s, "interpolationForAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -929,18 +928,18 @@ func (s *jsiiProxy_Schema) MoveFromId(id *string) { _jsii_.InvokeVoid( s, "moveFromId", - []interface{}{id}, + []any{id}, ) } -func (s *jsiiProxy_Schema) MoveTo(moveTarget *string, index interface{}) { +func (s *jsiiProxy_Schema) MoveTo(moveTarget *string, index any) { if err := s.validateMoveToParameters(moveTarget, index); err != nil { panic(err) } _jsii_.InvokeVoid( s, "moveTo", - []interface{}{moveTarget, index}, + []any{moveTarget, index}, ) } @@ -951,7 +950,7 @@ func (s *jsiiProxy_Schema) MoveToId(id *string) { _jsii_.InvokeVoid( s, "moveToId", - []interface{}{id}, + []any{id}, ) } @@ -962,18 +961,18 @@ func (s *jsiiProxy_Schema) OverrideLogicalId(newLogicalId *string) { _jsii_.InvokeVoid( s, "overrideLogicalId", - []interface{}{newLogicalId}, + []any{newLogicalId}, ) } -func (s *jsiiProxy_Schema) PutPolicy(value interface{}) { +func (s *jsiiProxy_Schema) PutPolicy(value any) { if err := s.validatePutPolicyParameters(value); err != nil { panic(err) } _jsii_.InvokeVoid( s, "putPolicy", - []interface{}{value}, + []any{value}, ) } @@ -1033,8 +1032,8 @@ func (s *jsiiProxy_Schema) ResetPolicy() { ) } -func (s *jsiiProxy_Schema) SynthesizeAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (s *jsiiProxy_Schema) SynthesizeAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( s, @@ -1046,8 +1045,8 @@ func (s *jsiiProxy_Schema) SynthesizeAttributes() *map[string]interface{} { return returns } -func (s *jsiiProxy_Schema) SynthesizeHclAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (s *jsiiProxy_Schema) SynthesizeHclAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( s, @@ -1059,8 +1058,8 @@ func (s *jsiiProxy_Schema) SynthesizeHclAttributes() *map[string]interface{} { return returns } -func (s *jsiiProxy_Schema) ToHclTerraform() interface{} { - var returns interface{} +func (s *jsiiProxy_Schema) ToHclTerraform() any { + var returns any _jsii_.Invoke( s, @@ -1072,8 +1071,8 @@ func (s *jsiiProxy_Schema) ToHclTerraform() interface{} { return returns } -func (s *jsiiProxy_Schema) ToMetadata() interface{} { - var returns interface{} +func (s *jsiiProxy_Schema) ToMetadata() any { + var returns any _jsii_.Invoke( s, @@ -1098,8 +1097,8 @@ func (s *jsiiProxy_Schema) ToString() *string { return returns } -func (s *jsiiProxy_Schema) ToTerraform() interface{} { - var returns interface{} +func (s *jsiiProxy_Schema) ToTerraform() any { + var returns any _jsii_.Invoke( s, @@ -1110,4 +1109,3 @@ func (s *jsiiProxy_Schema) ToTerraform() interface{} { return returns } - diff --git a/gen/postgresql/schema/SchemaConfig.go b/gen/postgresql/schema/SchemaConfig.go index fe800206e2..502fcf55b0 100644 --- a/gen/postgresql/schema/SchemaConfig.go +++ b/gen/postgresql/schema/SchemaConfig.go @@ -6,9 +6,9 @@ import ( type SchemaConfig struct { // Experimental. - Connection interface{} `field:"optional" json:"connection" yaml:"connection"` + Connection any `field:"optional" json:"connection" yaml:"connection"` // Experimental. - Count interface{} `field:"optional" json:"count" yaml:"count"` + Count any `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. @@ -18,7 +18,7 @@ type SchemaConfig struct { // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. - Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` + Provisioners *[]any `field:"optional" json:"provisioners" yaml:"provisioners"` // The name of the schema. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/schema#name Schema#name} @@ -30,7 +30,7 @@ type SchemaConfig struct { // When true, will also drop all the objects that are contained in the schema. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/schema#drop_cascade Schema#drop_cascade} - DropCascade interface{} `field:"optional" json:"dropCascade" yaml:"dropCascade"` + DropCascade any `field:"optional" json:"dropCascade" yaml:"dropCascade"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/schema#id Schema#id}. // // Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. @@ -39,7 +39,7 @@ type SchemaConfig struct { // When true, use the existing schema if it exists. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/schema#if_not_exists Schema#if_not_exists} - IfNotExists interface{} `field:"optional" json:"ifNotExists" yaml:"ifNotExists"` + IfNotExists any `field:"optional" json:"ifNotExists" yaml:"ifNotExists"` // The ROLE name who owns the schema. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/schema#owner Schema#owner} @@ -47,6 +47,5 @@ type SchemaConfig struct { // policy block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/schema#policy Schema#policy} - Policy interface{} `field:"optional" json:"policy" yaml:"policy"` + Policy any `field:"optional" json:"policy" yaml:"policy"` } - diff --git a/gen/postgresql/schema/SchemaPolicy.go b/gen/postgresql/schema/SchemaPolicy.go index d1cef52d3f..5a959aa5d7 100644 --- a/gen/postgresql/schema/SchemaPolicy.go +++ b/gen/postgresql/schema/SchemaPolicy.go @@ -1,15 +1,14 @@ package schema - type SchemaPolicy struct { // If true, allow the specified ROLEs to CREATE new objects within the schema(s). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/schema#create Schema#create} - Create interface{} `field:"optional" json:"create" yaml:"create"` + Create any `field:"optional" json:"create" yaml:"create"` // If true, allow the specified ROLEs to CREATE new objects within the schema(s) and GRANT the same CREATE privilege to different ROLEs. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/schema#create_with_grant Schema#create_with_grant} - CreateWithGrant interface{} `field:"optional" json:"createWithGrant" yaml:"createWithGrant"` + CreateWithGrant any `field:"optional" json:"createWithGrant" yaml:"createWithGrant"` // ROLE who will receive this policy (default: PUBLIC). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/schema#role Schema#role} @@ -17,10 +16,9 @@ type SchemaPolicy struct { // If true, allow the specified ROLEs to use objects within the schema(s). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/schema#usage Schema#usage} - Usage interface{} `field:"optional" json:"usage" yaml:"usage"` + Usage any `field:"optional" json:"usage" yaml:"usage"` // If true, allow the specified ROLEs to use objects within the schema(s) and GRANT the same USAGE privilege to different ROLEs. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/schema#usage_with_grant Schema#usage_with_grant} - UsageWithGrant interface{} `field:"optional" json:"usageWithGrant" yaml:"usageWithGrant"` + UsageWithGrant any `field:"optional" json:"usageWithGrant" yaml:"usageWithGrant"` } - diff --git a/gen/postgresql/schema/SchemaPolicyList.go b/gen/postgresql/schema/SchemaPolicyList.go index e398d5ab14..a4140b930a 100644 --- a/gen/postgresql/schema/SchemaPolicyList.go +++ b/gen/postgresql/schema/SchemaPolicyList.go @@ -17,8 +17,8 @@ type SchemaPolicyList interface { CreationStack() *[]*string // Experimental. Fqn() *string - InternalValue() interface{} - SetInternalValue(val interface{}) + InternalValue() any + SetInternalValue(val any) // The attribute on the parent resource this class is referencing. TerraformAttribute() *string SetTerraformAttribute(val *string) @@ -38,7 +38,7 @@ type SchemaPolicyList interface { Get(index *float64) SchemaPolicyOutputReference // Produce the Token's value at resolution time. // Experimental. - Resolve(_context cdktf.IResolveContext) interface{} + Resolve(_context cdktf.IResolveContext) any // Return a string representation of this resolvable object. // // Returns a reversible string representation. @@ -71,8 +71,8 @@ func (j *jsiiProxy_SchemaPolicyList) Fqn() *string { return returns } -func (j *jsiiProxy_SchemaPolicyList) InternalValue() interface{} { - var returns interface{} +func (j *jsiiProxy_SchemaPolicyList) InternalValue() any { + var returns any _jsii_.Get( j, "internalValue", @@ -111,7 +111,6 @@ func (j *jsiiProxy_SchemaPolicyList) WrapsSet() *bool { return returns } - func NewSchemaPolicyList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) SchemaPolicyList { _init_.Initialize() @@ -122,7 +121,7 @@ func NewSchemaPolicyList(terraformResource cdktf.IInterpolatingParent, terraform _jsii_.Create( "@cdktf/provider-postgresql.schema.SchemaPolicyList", - []interface{}{terraformResource, terraformAttribute, wrapsSet}, + []any{terraformResource, terraformAttribute, wrapsSet}, &j, ) @@ -134,12 +133,12 @@ func NewSchemaPolicyList_Override(s SchemaPolicyList, terraformResource cdktf.II _jsii_.Create( "@cdktf/provider-postgresql.schema.SchemaPolicyList", - []interface{}{terraformResource, terraformAttribute, wrapsSet}, + []any{terraformResource, terraformAttribute, wrapsSet}, s, ) } -func (j *jsiiProxy_SchemaPolicyList)SetInternalValue(val interface{}) { +func (j *jsiiProxy_SchemaPolicyList) SetInternalValue(val any) { if err := j.validateSetInternalValueParameters(val); err != nil { panic(err) } @@ -150,7 +149,7 @@ func (j *jsiiProxy_SchemaPolicyList)SetInternalValue(val interface{}) { ) } -func (j *jsiiProxy_SchemaPolicyList)SetTerraformAttribute(val *string) { +func (j *jsiiProxy_SchemaPolicyList) SetTerraformAttribute(val *string) { if err := j.validateSetTerraformAttributeParameters(val); err != nil { panic(err) } @@ -161,7 +160,7 @@ func (j *jsiiProxy_SchemaPolicyList)SetTerraformAttribute(val *string) { ) } -func (j *jsiiProxy_SchemaPolicyList)SetTerraformResource(val cdktf.IInterpolatingParent) { +func (j *jsiiProxy_SchemaPolicyList) SetTerraformResource(val cdktf.IInterpolatingParent) { if err := j.validateSetTerraformResourceParameters(val); err != nil { panic(err) } @@ -172,7 +171,7 @@ func (j *jsiiProxy_SchemaPolicyList)SetTerraformResource(val cdktf.IInterpolatin ) } -func (j *jsiiProxy_SchemaPolicyList)SetWrapsSet(val *bool) { +func (j *jsiiProxy_SchemaPolicyList) SetWrapsSet(val *bool) { if err := j.validateSetWrapsSetParameters(val); err != nil { panic(err) } @@ -192,7 +191,7 @@ func (s *jsiiProxy_SchemaPolicyList) AllWithMapKey(mapKeyAttributeName *string) _jsii_.Invoke( s, "allWithMapKey", - []interface{}{mapKeyAttributeName}, + []any{mapKeyAttributeName}, &returns, ) @@ -221,23 +220,23 @@ func (s *jsiiProxy_SchemaPolicyList) Get(index *float64) SchemaPolicyOutputRefer _jsii_.Invoke( s, "get", - []interface{}{index}, + []any{index}, &returns, ) return returns } -func (s *jsiiProxy_SchemaPolicyList) Resolve(_context cdktf.IResolveContext) interface{} { +func (s *jsiiProxy_SchemaPolicyList) Resolve(_context cdktf.IResolveContext) any { if err := s.validateResolveParameters(_context); err != nil { panic(err) } - var returns interface{} + var returns any _jsii_.Invoke( s, "resolve", - []interface{}{_context}, + []any{_context}, &returns, ) @@ -256,4 +255,3 @@ func (s *jsiiProxy_SchemaPolicyList) ToString() *string { return returns } - diff --git a/gen/postgresql/schema/SchemaPolicyList__checks.go b/gen/postgresql/schema/SchemaPolicyList__checks.go index 6684d2a914..2e3c965c84 100644 --- a/gen/postgresql/schema/SchemaPolicyList__checks.go +++ b/gen/postgresql/schema/SchemaPolicyList__checks.go @@ -34,7 +34,7 @@ func (s *jsiiProxy_SchemaPolicyList) validateResolveParameters(_context cdktf.IR return nil } -func (j *jsiiProxy_SchemaPolicyList) validateSetInternalValueParameters(val interface{}) error { +func (j *jsiiProxy_SchemaPolicyList) validateSetInternalValueParameters(val any) error { switch val.(type) { case cdktf.IResolvable: // ok @@ -101,4 +101,3 @@ func validateNewSchemaPolicyListParameters(terraformResource cdktf.IInterpolatin return nil } - diff --git a/gen/postgresql/schema/SchemaPolicyOutputReference.go b/gen/postgresql/schema/SchemaPolicyOutputReference.go index 5af7b3cd7a..be0f4d6dfb 100644 --- a/gen/postgresql/schema/SchemaPolicyOutputReference.go +++ b/gen/postgresql/schema/SchemaPolicyOutputReference.go @@ -12,20 +12,20 @@ type SchemaPolicyOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. - ComplexObjectIndex() interface{} + ComplexObjectIndex() any // Experimental. - SetComplexObjectIndex(val interface{}) + SetComplexObjectIndex(val any) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) - Create() interface{} - SetCreate(val interface{}) - CreateInput() interface{} - CreateWithGrant() interface{} - SetCreateWithGrant(val interface{}) - CreateWithGrantInput() interface{} + Create() any + SetCreate(val any) + CreateInput() any + CreateWithGrant() any + SetCreateWithGrant(val any) + CreateWithGrantInput() any // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. @@ -33,8 +33,8 @@ type SchemaPolicyOutputReference interface { CreationStack() *[]*string // Experimental. Fqn() *string - InternalValue() interface{} - SetInternalValue(val interface{}) + InternalValue() any + SetInternalValue(val any) Role() *string SetRole(val *string) RoleInput() *string @@ -46,16 +46,16 @@ type SchemaPolicyOutputReference interface { TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) - Usage() interface{} - SetUsage(val interface{}) - UsageInput() interface{} - UsageWithGrant() interface{} - SetUsageWithGrant(val interface{}) - UsageWithGrantInput() interface{} + Usage() any + SetUsage(val any) + UsageInput() any + UsageWithGrant() any + SetUsageWithGrant(val any) + UsageWithGrantInput() any // Experimental. ComputeFqn() *string // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -83,7 +83,7 @@ type SchemaPolicyOutputReference interface { ResetUsageWithGrant() // Produce the Token's value at resolution time. // Experimental. - Resolve(_context cdktf.IResolveContext) interface{} + Resolve(_context cdktf.IResolveContext) any // Return a string representation of this resolvable object. // // Returns a reversible string representation. @@ -96,8 +96,8 @@ type jsiiProxy_SchemaPolicyOutputReference struct { internal.Type__cdktfComplexObject } -func (j *jsiiProxy_SchemaPolicyOutputReference) ComplexObjectIndex() interface{} { - var returns interface{} +func (j *jsiiProxy_SchemaPolicyOutputReference) ComplexObjectIndex() any { + var returns any _jsii_.Get( j, "complexObjectIndex", @@ -116,8 +116,8 @@ func (j *jsiiProxy_SchemaPolicyOutputReference) ComplexObjectIsFromSet() *bool { return returns } -func (j *jsiiProxy_SchemaPolicyOutputReference) Create() interface{} { - var returns interface{} +func (j *jsiiProxy_SchemaPolicyOutputReference) Create() any { + var returns any _jsii_.Get( j, "create", @@ -126,8 +126,8 @@ func (j *jsiiProxy_SchemaPolicyOutputReference) Create() interface{} { return returns } -func (j *jsiiProxy_SchemaPolicyOutputReference) CreateInput() interface{} { - var returns interface{} +func (j *jsiiProxy_SchemaPolicyOutputReference) CreateInput() any { + var returns any _jsii_.Get( j, "createInput", @@ -136,8 +136,8 @@ func (j *jsiiProxy_SchemaPolicyOutputReference) CreateInput() interface{} { return returns } -func (j *jsiiProxy_SchemaPolicyOutputReference) CreateWithGrant() interface{} { - var returns interface{} +func (j *jsiiProxy_SchemaPolicyOutputReference) CreateWithGrant() any { + var returns any _jsii_.Get( j, "createWithGrant", @@ -146,8 +146,8 @@ func (j *jsiiProxy_SchemaPolicyOutputReference) CreateWithGrant() interface{} { return returns } -func (j *jsiiProxy_SchemaPolicyOutputReference) CreateWithGrantInput() interface{} { - var returns interface{} +func (j *jsiiProxy_SchemaPolicyOutputReference) CreateWithGrantInput() any { + var returns any _jsii_.Get( j, "createWithGrantInput", @@ -176,8 +176,8 @@ func (j *jsiiProxy_SchemaPolicyOutputReference) Fqn() *string { return returns } -func (j *jsiiProxy_SchemaPolicyOutputReference) InternalValue() interface{} { - var returns interface{} +func (j *jsiiProxy_SchemaPolicyOutputReference) InternalValue() any { + var returns any _jsii_.Get( j, "internalValue", @@ -226,8 +226,8 @@ func (j *jsiiProxy_SchemaPolicyOutputReference) TerraformResource() cdktf.IInter return returns } -func (j *jsiiProxy_SchemaPolicyOutputReference) Usage() interface{} { - var returns interface{} +func (j *jsiiProxy_SchemaPolicyOutputReference) Usage() any { + var returns any _jsii_.Get( j, "usage", @@ -236,8 +236,8 @@ func (j *jsiiProxy_SchemaPolicyOutputReference) Usage() interface{} { return returns } -func (j *jsiiProxy_SchemaPolicyOutputReference) UsageInput() interface{} { - var returns interface{} +func (j *jsiiProxy_SchemaPolicyOutputReference) UsageInput() any { + var returns any _jsii_.Get( j, "usageInput", @@ -246,8 +246,8 @@ func (j *jsiiProxy_SchemaPolicyOutputReference) UsageInput() interface{} { return returns } -func (j *jsiiProxy_SchemaPolicyOutputReference) UsageWithGrant() interface{} { - var returns interface{} +func (j *jsiiProxy_SchemaPolicyOutputReference) UsageWithGrant() any { + var returns any _jsii_.Get( j, "usageWithGrant", @@ -256,8 +256,8 @@ func (j *jsiiProxy_SchemaPolicyOutputReference) UsageWithGrant() interface{} { return returns } -func (j *jsiiProxy_SchemaPolicyOutputReference) UsageWithGrantInput() interface{} { - var returns interface{} +func (j *jsiiProxy_SchemaPolicyOutputReference) UsageWithGrantInput() any { + var returns any _jsii_.Get( j, "usageWithGrantInput", @@ -266,7 +266,6 @@ func (j *jsiiProxy_SchemaPolicyOutputReference) UsageWithGrantInput() interface{ return returns } - func NewSchemaPolicyOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) SchemaPolicyOutputReference { _init_.Initialize() @@ -277,7 +276,7 @@ func NewSchemaPolicyOutputReference(terraformResource cdktf.IInterpolatingParent _jsii_.Create( "@cdktf/provider-postgresql.schema.SchemaPolicyOutputReference", - []interface{}{terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet}, + []any{terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet}, &j, ) @@ -289,12 +288,12 @@ func NewSchemaPolicyOutputReference_Override(s SchemaPolicyOutputReference, terr _jsii_.Create( "@cdktf/provider-postgresql.schema.SchemaPolicyOutputReference", - []interface{}{terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet}, + []any{terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet}, s, ) } -func (j *jsiiProxy_SchemaPolicyOutputReference)SetComplexObjectIndex(val interface{}) { +func (j *jsiiProxy_SchemaPolicyOutputReference) SetComplexObjectIndex(val any) { if err := j.validateSetComplexObjectIndexParameters(val); err != nil { panic(err) } @@ -305,7 +304,7 @@ func (j *jsiiProxy_SchemaPolicyOutputReference)SetComplexObjectIndex(val interfa ) } -func (j *jsiiProxy_SchemaPolicyOutputReference)SetComplexObjectIsFromSet(val *bool) { +func (j *jsiiProxy_SchemaPolicyOutputReference) SetComplexObjectIsFromSet(val *bool) { if err := j.validateSetComplexObjectIsFromSetParameters(val); err != nil { panic(err) } @@ -316,7 +315,7 @@ func (j *jsiiProxy_SchemaPolicyOutputReference)SetComplexObjectIsFromSet(val *bo ) } -func (j *jsiiProxy_SchemaPolicyOutputReference)SetCreate(val interface{}) { +func (j *jsiiProxy_SchemaPolicyOutputReference) SetCreate(val any) { if err := j.validateSetCreateParameters(val); err != nil { panic(err) } @@ -327,7 +326,7 @@ func (j *jsiiProxy_SchemaPolicyOutputReference)SetCreate(val interface{}) { ) } -func (j *jsiiProxy_SchemaPolicyOutputReference)SetCreateWithGrant(val interface{}) { +func (j *jsiiProxy_SchemaPolicyOutputReference) SetCreateWithGrant(val any) { if err := j.validateSetCreateWithGrantParameters(val); err != nil { panic(err) } @@ -338,7 +337,7 @@ func (j *jsiiProxy_SchemaPolicyOutputReference)SetCreateWithGrant(val interface{ ) } -func (j *jsiiProxy_SchemaPolicyOutputReference)SetInternalValue(val interface{}) { +func (j *jsiiProxy_SchemaPolicyOutputReference) SetInternalValue(val any) { if err := j.validateSetInternalValueParameters(val); err != nil { panic(err) } @@ -349,7 +348,7 @@ func (j *jsiiProxy_SchemaPolicyOutputReference)SetInternalValue(val interface{}) ) } -func (j *jsiiProxy_SchemaPolicyOutputReference)SetRole(val *string) { +func (j *jsiiProxy_SchemaPolicyOutputReference) SetRole(val *string) { if err := j.validateSetRoleParameters(val); err != nil { panic(err) } @@ -360,7 +359,7 @@ func (j *jsiiProxy_SchemaPolicyOutputReference)SetRole(val *string) { ) } -func (j *jsiiProxy_SchemaPolicyOutputReference)SetTerraformAttribute(val *string) { +func (j *jsiiProxy_SchemaPolicyOutputReference) SetTerraformAttribute(val *string) { if err := j.validateSetTerraformAttributeParameters(val); err != nil { panic(err) } @@ -371,7 +370,7 @@ func (j *jsiiProxy_SchemaPolicyOutputReference)SetTerraformAttribute(val *string ) } -func (j *jsiiProxy_SchemaPolicyOutputReference)SetTerraformResource(val cdktf.IInterpolatingParent) { +func (j *jsiiProxy_SchemaPolicyOutputReference) SetTerraformResource(val cdktf.IInterpolatingParent) { if err := j.validateSetTerraformResourceParameters(val); err != nil { panic(err) } @@ -382,7 +381,7 @@ func (j *jsiiProxy_SchemaPolicyOutputReference)SetTerraformResource(val cdktf.II ) } -func (j *jsiiProxy_SchemaPolicyOutputReference)SetUsage(val interface{}) { +func (j *jsiiProxy_SchemaPolicyOutputReference) SetUsage(val any) { if err := j.validateSetUsageParameters(val); err != nil { panic(err) } @@ -393,7 +392,7 @@ func (j *jsiiProxy_SchemaPolicyOutputReference)SetUsage(val interface{}) { ) } -func (j *jsiiProxy_SchemaPolicyOutputReference)SetUsageWithGrant(val interface{}) { +func (j *jsiiProxy_SchemaPolicyOutputReference) SetUsageWithGrant(val any) { if err := j.validateSetUsageWithGrantParameters(val); err != nil { panic(err) } @@ -417,16 +416,16 @@ func (s *jsiiProxy_SchemaPolicyOutputReference) ComputeFqn() *string { return returns } -func (s *jsiiProxy_SchemaPolicyOutputReference) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (s *jsiiProxy_SchemaPolicyOutputReference) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := s.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( s, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -442,7 +441,7 @@ func (s *jsiiProxy_SchemaPolicyOutputReference) GetBooleanAttribute(terraformAtt _jsii_.Invoke( s, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -458,7 +457,7 @@ func (s *jsiiProxy_SchemaPolicyOutputReference) GetBooleanMapAttribute(terraform _jsii_.Invoke( s, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -474,7 +473,7 @@ func (s *jsiiProxy_SchemaPolicyOutputReference) GetListAttribute(terraformAttrib _jsii_.Invoke( s, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -490,7 +489,7 @@ func (s *jsiiProxy_SchemaPolicyOutputReference) GetNumberAttribute(terraformAttr _jsii_.Invoke( s, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -506,7 +505,7 @@ func (s *jsiiProxy_SchemaPolicyOutputReference) GetNumberListAttribute(terraform _jsii_.Invoke( s, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -522,7 +521,7 @@ func (s *jsiiProxy_SchemaPolicyOutputReference) GetNumberMapAttribute(terraformA _jsii_.Invoke( s, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -538,7 +537,7 @@ func (s *jsiiProxy_SchemaPolicyOutputReference) GetStringAttribute(terraformAttr _jsii_.Invoke( s, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -554,7 +553,7 @@ func (s *jsiiProxy_SchemaPolicyOutputReference) GetStringMapAttribute(terraformA _jsii_.Invoke( s, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -583,7 +582,7 @@ func (s *jsiiProxy_SchemaPolicyOutputReference) InterpolationForAttribute(proper _jsii_.Invoke( s, "interpolationForAttribute", - []interface{}{property}, + []any{property}, &returns, ) @@ -630,16 +629,16 @@ func (s *jsiiProxy_SchemaPolicyOutputReference) ResetUsageWithGrant() { ) } -func (s *jsiiProxy_SchemaPolicyOutputReference) Resolve(_context cdktf.IResolveContext) interface{} { +func (s *jsiiProxy_SchemaPolicyOutputReference) Resolve(_context cdktf.IResolveContext) any { if err := s.validateResolveParameters(_context); err != nil { panic(err) } - var returns interface{} + var returns any _jsii_.Invoke( s, "resolve", - []interface{}{_context}, + []any{_context}, &returns, ) @@ -658,4 +657,3 @@ func (s *jsiiProxy_SchemaPolicyOutputReference) ToString() *string { return returns } - diff --git a/gen/postgresql/schema/SchemaPolicyOutputReference__checks.go b/gen/postgresql/schema/SchemaPolicyOutputReference__checks.go index b1227c45a3..a4b6466b4f 100644 --- a/gen/postgresql/schema/SchemaPolicyOutputReference__checks.go +++ b/gen/postgresql/schema/SchemaPolicyOutputReference__checks.go @@ -98,7 +98,7 @@ func (s *jsiiProxy_SchemaPolicyOutputReference) validateResolveParameters(_conte return nil } -func (j *jsiiProxy_SchemaPolicyOutputReference) validateSetComplexObjectIndexParameters(val interface{}) error { +func (j *jsiiProxy_SchemaPolicyOutputReference) validateSetComplexObjectIndexParameters(val any) error { switch val.(type) { case *string: // ok @@ -163,7 +163,7 @@ func (j *jsiiProxy_SchemaPolicyOutputReference) validateSetComplexObjectIsFromSe return nil } -func (j *jsiiProxy_SchemaPolicyOutputReference) validateSetCreateParameters(val interface{}) error { +func (j *jsiiProxy_SchemaPolicyOutputReference) validateSetCreateParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -183,7 +183,7 @@ func (j *jsiiProxy_SchemaPolicyOutputReference) validateSetCreateParameters(val return nil } -func (j *jsiiProxy_SchemaPolicyOutputReference) validateSetCreateWithGrantParameters(val interface{}) error { +func (j *jsiiProxy_SchemaPolicyOutputReference) validateSetCreateWithGrantParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -203,7 +203,7 @@ func (j *jsiiProxy_SchemaPolicyOutputReference) validateSetCreateWithGrantParame return nil } -func (j *jsiiProxy_SchemaPolicyOutputReference) validateSetInternalValueParameters(val interface{}) error { +func (j *jsiiProxy_SchemaPolicyOutputReference) validateSetInternalValueParameters(val any) error { switch val.(type) { case cdktf.IResolvable: // ok @@ -251,7 +251,7 @@ func (j *jsiiProxy_SchemaPolicyOutputReference) validateSetTerraformResourcePara return nil } -func (j *jsiiProxy_SchemaPolicyOutputReference) validateSetUsageParameters(val interface{}) error { +func (j *jsiiProxy_SchemaPolicyOutputReference) validateSetUsageParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -271,7 +271,7 @@ func (j *jsiiProxy_SchemaPolicyOutputReference) validateSetUsageParameters(val i return nil } -func (j *jsiiProxy_SchemaPolicyOutputReference) validateSetUsageWithGrantParameters(val interface{}) error { +func (j *jsiiProxy_SchemaPolicyOutputReference) validateSetUsageWithGrantParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -310,4 +310,3 @@ func validateNewSchemaPolicyOutputReferenceParameters(terraformResource cdktf.II return nil } - diff --git a/gen/postgresql/schema/Schema__checks.go b/gen/postgresql/schema/Schema__checks.go index ced8d12564..e8b5043d94 100644 --- a/gen/postgresql/schema/Schema__checks.go +++ b/gen/postgresql/schema/Schema__checks.go @@ -19,7 +19,7 @@ func (s *jsiiProxy_Schema) validateAddMoveTargetParameters(moveTarget *string) e return nil } -func (s *jsiiProxy_Schema) validateAddOverrideParameters(path *string, value interface{}) error { +func (s *jsiiProxy_Schema) validateAddOverrideParameters(path *string, value any) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } @@ -127,7 +127,7 @@ func (s *jsiiProxy_Schema) validateMoveFromIdParameters(id *string) error { return nil } -func (s *jsiiProxy_Schema) validateMoveToParameters(moveTarget *string, index interface{}) error { +func (s *jsiiProxy_Schema) validateMoveToParameters(moveTarget *string, index any) error { if moveTarget == nil { return fmt.Errorf("parameter moveTarget is required, but nil was provided") } @@ -204,7 +204,7 @@ func (s *jsiiProxy_Schema) validateOverrideLogicalIdParameters(newLogicalId *str return nil } -func (s *jsiiProxy_Schema) validatePutPolicyParameters(value interface{}) error { +func (s *jsiiProxy_Schema) validatePutPolicyParameters(value any) error { if value == nil { return fmt.Errorf("parameter value is required, but nil was provided") } @@ -251,7 +251,7 @@ func validateSchema_GenerateConfigForImportParameters(scope constructs.Construct return nil } -func validateSchema_IsConstructParameters(x interface{}) error { +func validateSchema_IsConstructParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -259,7 +259,7 @@ func validateSchema_IsConstructParameters(x interface{}) error { return nil } -func validateSchema_IsTerraformElementParameters(x interface{}) error { +func validateSchema_IsTerraformElementParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -267,7 +267,7 @@ func validateSchema_IsTerraformElementParameters(x interface{}) error { return nil } -func validateSchema_IsTerraformResourceParameters(x interface{}) error { +func validateSchema_IsTerraformResourceParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -275,7 +275,7 @@ func validateSchema_IsTerraformResourceParameters(x interface{}) error { return nil } -func (j *jsiiProxy_Schema) validateSetConnectionParameters(val interface{}) error { +func (j *jsiiProxy_Schema) validateSetConnectionParameters(val any) error { switch val.(type) { case *cdktf.SSHProvisionerConnection: val := val.(*cdktf.SSHProvisionerConnection) @@ -308,7 +308,7 @@ func (j *jsiiProxy_Schema) validateSetConnectionParameters(val interface{}) erro return nil } -func (j *jsiiProxy_Schema) validateSetCountParameters(val interface{}) error { +func (j *jsiiProxy_Schema) validateSetCountParameters(val any) error { switch val.(type) { case *float64: // ok @@ -373,7 +373,7 @@ func (j *jsiiProxy_Schema) validateSetDatabaseParameters(val *string) error { return nil } -func (j *jsiiProxy_Schema) validateSetDropCascadeParameters(val interface{}) error { +func (j *jsiiProxy_Schema) validateSetDropCascadeParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -401,7 +401,7 @@ func (j *jsiiProxy_Schema) validateSetIdParameters(val *string) error { return nil } -func (j *jsiiProxy_Schema) validateSetIfNotExistsParameters(val interface{}) error { +func (j *jsiiProxy_Schema) validateSetIfNotExistsParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -445,7 +445,7 @@ func (j *jsiiProxy_Schema) validateSetOwnerParameters(val *string) error { return nil } -func (j *jsiiProxy_Schema) validateSetProvisionersParameters(val *[]interface{}) error { +func (j *jsiiProxy_Schema) validateSetProvisionersParameters(val *[]any) error { for idx_97dfc6, v := range *val { switch v.(type) { case *cdktf.FileProvisioner: @@ -509,4 +509,3 @@ func validateNewSchemaParameters(scope constructs.Construct, id *string, config return nil } - diff --git a/gen/postgresql/schema/main.go b/gen/postgresql/schema/main.go index 05c433a1b3..5964b9390b 100644 --- a/gen/postgresql/schema/main.go +++ b/gen/postgresql/schema/main.go @@ -9,7 +9,7 @@ import ( func init() { _jsii_.RegisterClass( "@cdktf/provider-postgresql.schema.Schema", - reflect.TypeOf((*Schema)(nil)).Elem(), + reflect.TypeFor[Schema](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "addMoveTarget", GoMethod: "AddMoveTarget"}, _jsii_.MemberMethod{JsiiMethod: "addOverride", GoMethod: "AddOverride"}, @@ -74,7 +74,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "toString", GoMethod: "ToString"}, _jsii_.MemberMethod{JsiiMethod: "toTerraform", GoMethod: "ToTerraform"}, }, - func() interface{} { + func() any { j := jsiiProxy_Schema{} _jsii_.InitJsiiProxy(&j.Type__cdktfTerraformResource) return &j @@ -82,15 +82,15 @@ func init() { ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.schema.SchemaConfig", - reflect.TypeOf((*SchemaConfig)(nil)).Elem(), + reflect.TypeFor[SchemaConfig](), ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.schema.SchemaPolicy", - reflect.TypeOf((*SchemaPolicy)(nil)).Elem(), + reflect.TypeFor[SchemaPolicy](), ) _jsii_.RegisterClass( "@cdktf/provider-postgresql.schema.SchemaPolicyList", - reflect.TypeOf((*SchemaPolicyList)(nil)).Elem(), + reflect.TypeFor[SchemaPolicyList](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "allWithMapKey", GoMethod: "AllWithMapKey"}, _jsii_.MemberMethod{JsiiMethod: "computeFqn", GoMethod: "ComputeFqn"}, @@ -104,7 +104,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "toString", GoMethod: "ToString"}, _jsii_.MemberProperty{JsiiProperty: "wrapsSet", GoGetter: "WrapsSet"}, }, - func() interface{} { + func() any { j := jsiiProxy_SchemaPolicyList{} _jsii_.InitJsiiProxy(&j.Type__cdktfComplexList) return &j @@ -112,7 +112,7 @@ func init() { ) _jsii_.RegisterClass( "@cdktf/provider-postgresql.schema.SchemaPolicyOutputReference", - reflect.TypeOf((*SchemaPolicyOutputReference)(nil)).Elem(), + reflect.TypeFor[SchemaPolicyOutputReference](), []_jsii_.Member{ _jsii_.MemberProperty{JsiiProperty: "complexObjectIndex", GoGetter: "ComplexObjectIndex"}, _jsii_.MemberProperty{JsiiProperty: "complexObjectIsFromSet", GoGetter: "ComplexObjectIsFromSet"}, @@ -151,7 +151,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "usageWithGrant", GoGetter: "UsageWithGrant"}, _jsii_.MemberProperty{JsiiProperty: "usageWithGrantInput", GoGetter: "UsageWithGrantInput"}, }, - func() interface{} { + func() any { j := jsiiProxy_SchemaPolicyOutputReference{} _jsii_.InitJsiiProxy(&j.Type__cdktfComplexObject) return &j diff --git a/gen/postgresql/securitylabel/SecurityLabel.go b/gen/postgresql/securitylabel/SecurityLabel.go index 0c411aa1bb..cf79149953 100644 --- a/gen/postgresql/securitylabel/SecurityLabel.go +++ b/gen/postgresql/securitylabel/SecurityLabel.go @@ -15,15 +15,15 @@ type SecurityLabel interface { // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. - Connection() interface{} + Connection() any // Experimental. - SetConnection(val interface{}) + SetConnection(val any) // Experimental. - ConstructNodeMetadata() *map[string]interface{} + ConstructNodeMetadata() *map[string]any // Experimental. - Count() interface{} + Count() any // Experimental. - SetCount(val interface{}) + SetCount(val any) // Experimental. DependsOn() *[]*string // Experimental. @@ -62,24 +62,24 @@ type SecurityLabel interface { // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. - Provisioners() *[]interface{} + Provisioners() *[]any // Experimental. - SetProvisioners(val *[]interface{}) + SetProvisioners(val *[]any) // Experimental. - RawOverrides() interface{} + RawOverrides() any // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. - TerraformMetaArguments() *map[string]interface{} + TerraformMetaArguments() *map[string]any // Experimental. TerraformResourceType() *string // Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. // Experimental. AddMoveTarget(moveTarget *string) // Experimental. - AddOverride(path *string, value interface{}) + AddOverride(path *string, value any) // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -97,7 +97,7 @@ type SecurityLabel interface { // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. - HasResourceMove() interface{} + HasResourceMove() any // Experimental. ImportFrom(id *string, provider cdktf.TerraformProvider) // Experimental. @@ -109,7 +109,7 @@ type SecurityLabel interface { MoveFromId(id *string) // Moves this resource to the target resource given by moveTarget. // Experimental. - MoveTo(moveTarget *string, index interface{}) + MoveTo(moveTarget *string, index any) // Moves this resource to the resource corresponding to "id". // Experimental. MoveToId(id *string) @@ -120,17 +120,17 @@ type SecurityLabel interface { // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() - SynthesizeAttributes() *map[string]interface{} - SynthesizeHclAttributes() *map[string]interface{} + SynthesizeAttributes() *map[string]any + SynthesizeHclAttributes() *map[string]any // Experimental. - ToHclTerraform() interface{} + ToHclTerraform() any // Experimental. - ToMetadata() interface{} + ToMetadata() any // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. - ToTerraform() interface{} + ToTerraform() any } // The jsii proxy struct for SecurityLabel @@ -148,8 +148,8 @@ func (j *jsiiProxy_SecurityLabel) CdktfStack() cdktf.TerraformStack { return returns } -func (j *jsiiProxy_SecurityLabel) Connection() interface{} { - var returns interface{} +func (j *jsiiProxy_SecurityLabel) Connection() any { + var returns any _jsii_.Get( j, "connection", @@ -158,8 +158,8 @@ func (j *jsiiProxy_SecurityLabel) Connection() interface{} { return returns } -func (j *jsiiProxy_SecurityLabel) ConstructNodeMetadata() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_SecurityLabel) ConstructNodeMetadata() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "constructNodeMetadata", @@ -168,8 +168,8 @@ func (j *jsiiProxy_SecurityLabel) ConstructNodeMetadata() *map[string]interface{ return returns } -func (j *jsiiProxy_SecurityLabel) Count() interface{} { - var returns interface{} +func (j *jsiiProxy_SecurityLabel) Count() any { + var returns any _jsii_.Get( j, "count", @@ -348,8 +348,8 @@ func (j *jsiiProxy_SecurityLabel) Provider() cdktf.TerraformProvider { return returns } -func (j *jsiiProxy_SecurityLabel) Provisioners() *[]interface{} { - var returns *[]interface{} +func (j *jsiiProxy_SecurityLabel) Provisioners() *[]any { + var returns *[]any _jsii_.Get( j, "provisioners", @@ -358,8 +358,8 @@ func (j *jsiiProxy_SecurityLabel) Provisioners() *[]interface{} { return returns } -func (j *jsiiProxy_SecurityLabel) RawOverrides() interface{} { - var returns interface{} +func (j *jsiiProxy_SecurityLabel) RawOverrides() any { + var returns any _jsii_.Get( j, "rawOverrides", @@ -378,8 +378,8 @@ func (j *jsiiProxy_SecurityLabel) TerraformGeneratorMetadata() *cdktf.TerraformP return returns } -func (j *jsiiProxy_SecurityLabel) TerraformMetaArguments() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_SecurityLabel) TerraformMetaArguments() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "terraformMetaArguments", @@ -398,7 +398,6 @@ func (j *jsiiProxy_SecurityLabel) TerraformResourceType() *string { return returns } - // Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/security_label postgresql_security_label} Resource. func NewSecurityLabel(scope constructs.Construct, id *string, config *SecurityLabelConfig) SecurityLabel { _init_.Initialize() @@ -410,7 +409,7 @@ func NewSecurityLabel(scope constructs.Construct, id *string, config *SecurityLa _jsii_.Create( "@cdktf/provider-postgresql.securityLabel.SecurityLabel", - []interface{}{scope, id, config}, + []any{scope, id, config}, &j, ) @@ -423,12 +422,12 @@ func NewSecurityLabel_Override(s SecurityLabel, scope constructs.Construct, id * _jsii_.Create( "@cdktf/provider-postgresql.securityLabel.SecurityLabel", - []interface{}{scope, id, config}, + []any{scope, id, config}, s, ) } -func (j *jsiiProxy_SecurityLabel)SetConnection(val interface{}) { +func (j *jsiiProxy_SecurityLabel) SetConnection(val any) { if err := j.validateSetConnectionParameters(val); err != nil { panic(err) } @@ -439,7 +438,7 @@ func (j *jsiiProxy_SecurityLabel)SetConnection(val interface{}) { ) } -func (j *jsiiProxy_SecurityLabel)SetCount(val interface{}) { +func (j *jsiiProxy_SecurityLabel) SetCount(val any) { if err := j.validateSetCountParameters(val); err != nil { panic(err) } @@ -450,7 +449,7 @@ func (j *jsiiProxy_SecurityLabel)SetCount(val interface{}) { ) } -func (j *jsiiProxy_SecurityLabel)SetDependsOn(val *[]*string) { +func (j *jsiiProxy_SecurityLabel) SetDependsOn(val *[]*string) { _jsii_.Set( j, "dependsOn", @@ -458,7 +457,7 @@ func (j *jsiiProxy_SecurityLabel)SetDependsOn(val *[]*string) { ) } -func (j *jsiiProxy_SecurityLabel)SetForEach(val cdktf.ITerraformIterator) { +func (j *jsiiProxy_SecurityLabel) SetForEach(val cdktf.ITerraformIterator) { _jsii_.Set( j, "forEach", @@ -466,7 +465,7 @@ func (j *jsiiProxy_SecurityLabel)SetForEach(val cdktf.ITerraformIterator) { ) } -func (j *jsiiProxy_SecurityLabel)SetId(val *string) { +func (j *jsiiProxy_SecurityLabel) SetId(val *string) { if err := j.validateSetIdParameters(val); err != nil { panic(err) } @@ -477,7 +476,7 @@ func (j *jsiiProxy_SecurityLabel)SetId(val *string) { ) } -func (j *jsiiProxy_SecurityLabel)SetLabel(val *string) { +func (j *jsiiProxy_SecurityLabel) SetLabel(val *string) { if err := j.validateSetLabelParameters(val); err != nil { panic(err) } @@ -488,7 +487,7 @@ func (j *jsiiProxy_SecurityLabel)SetLabel(val *string) { ) } -func (j *jsiiProxy_SecurityLabel)SetLabelProvider(val *string) { +func (j *jsiiProxy_SecurityLabel) SetLabelProvider(val *string) { if err := j.validateSetLabelProviderParameters(val); err != nil { panic(err) } @@ -499,7 +498,7 @@ func (j *jsiiProxy_SecurityLabel)SetLabelProvider(val *string) { ) } -func (j *jsiiProxy_SecurityLabel)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { +func (j *jsiiProxy_SecurityLabel) SetLifecycle(val *cdktf.TerraformResourceLifecycle) { if err := j.validateSetLifecycleParameters(val); err != nil { panic(err) } @@ -510,7 +509,7 @@ func (j *jsiiProxy_SecurityLabel)SetLifecycle(val *cdktf.TerraformResourceLifecy ) } -func (j *jsiiProxy_SecurityLabel)SetObjectName(val *string) { +func (j *jsiiProxy_SecurityLabel) SetObjectName(val *string) { if err := j.validateSetObjectNameParameters(val); err != nil { panic(err) } @@ -521,7 +520,7 @@ func (j *jsiiProxy_SecurityLabel)SetObjectName(val *string) { ) } -func (j *jsiiProxy_SecurityLabel)SetObjectType(val *string) { +func (j *jsiiProxy_SecurityLabel) SetObjectType(val *string) { if err := j.validateSetObjectTypeParameters(val); err != nil { panic(err) } @@ -532,7 +531,7 @@ func (j *jsiiProxy_SecurityLabel)SetObjectType(val *string) { ) } -func (j *jsiiProxy_SecurityLabel)SetProvider(val cdktf.TerraformProvider) { +func (j *jsiiProxy_SecurityLabel) SetProvider(val cdktf.TerraformProvider) { _jsii_.Set( j, "provider", @@ -540,7 +539,7 @@ func (j *jsiiProxy_SecurityLabel)SetProvider(val cdktf.TerraformProvider) { ) } -func (j *jsiiProxy_SecurityLabel)SetProvisioners(val *[]interface{}) { +func (j *jsiiProxy_SecurityLabel) SetProvisioners(val *[]any) { if err := j.validateSetProvisionersParameters(val); err != nil { panic(err) } @@ -563,7 +562,7 @@ func SecurityLabel_GenerateConfigForImport(scope constructs.Construct, importToI _jsii_.StaticInvoke( "@cdktf/provider-postgresql.securityLabel.SecurityLabel", "generateConfigForImport", - []interface{}{scope, importToId, importFromId, provider}, + []any{scope, importToId, importFromId, provider}, &returns, ) @@ -587,7 +586,7 @@ func SecurityLabel_GenerateConfigForImport(scope constructs.Construct, importToI // this type-testing method instead. // // Returns: true if `x` is an object created from a class which extends `Construct`. -func SecurityLabel_IsConstruct(x interface{}) *bool { +func SecurityLabel_IsConstruct(x any) *bool { _init_.Initialize() if err := validateSecurityLabel_IsConstructParameters(x); err != nil { @@ -598,7 +597,7 @@ func SecurityLabel_IsConstruct(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.securityLabel.SecurityLabel", "isConstruct", - []interface{}{x}, + []any{x}, &returns, ) @@ -606,7 +605,7 @@ func SecurityLabel_IsConstruct(x interface{}) *bool { } // Experimental. -func SecurityLabel_IsTerraformElement(x interface{}) *bool { +func SecurityLabel_IsTerraformElement(x any) *bool { _init_.Initialize() if err := validateSecurityLabel_IsTerraformElementParameters(x); err != nil { @@ -617,7 +616,7 @@ func SecurityLabel_IsTerraformElement(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.securityLabel.SecurityLabel", "isTerraformElement", - []interface{}{x}, + []any{x}, &returns, ) @@ -625,7 +624,7 @@ func SecurityLabel_IsTerraformElement(x interface{}) *bool { } // Experimental. -func SecurityLabel_IsTerraformResource(x interface{}) *bool { +func SecurityLabel_IsTerraformResource(x any) *bool { _init_.Initialize() if err := validateSecurityLabel_IsTerraformResourceParameters(x); err != nil { @@ -636,7 +635,7 @@ func SecurityLabel_IsTerraformResource(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.securityLabel.SecurityLabel", "isTerraformResource", - []interface{}{x}, + []any{x}, &returns, ) @@ -661,31 +660,31 @@ func (s *jsiiProxy_SecurityLabel) AddMoveTarget(moveTarget *string) { _jsii_.InvokeVoid( s, "addMoveTarget", - []interface{}{moveTarget}, + []any{moveTarget}, ) } -func (s *jsiiProxy_SecurityLabel) AddOverride(path *string, value interface{}) { +func (s *jsiiProxy_SecurityLabel) AddOverride(path *string, value any) { if err := s.validateAddOverrideParameters(path, value); err != nil { panic(err) } _jsii_.InvokeVoid( s, "addOverride", - []interface{}{path, value}, + []any{path, value}, ) } -func (s *jsiiProxy_SecurityLabel) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (s *jsiiProxy_SecurityLabel) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := s.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( s, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -701,7 +700,7 @@ func (s *jsiiProxy_SecurityLabel) GetBooleanAttribute(terraformAttribute *string _jsii_.Invoke( s, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -717,7 +716,7 @@ func (s *jsiiProxy_SecurityLabel) GetBooleanMapAttribute(terraformAttribute *str _jsii_.Invoke( s, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -733,7 +732,7 @@ func (s *jsiiProxy_SecurityLabel) GetListAttribute(terraformAttribute *string) * _jsii_.Invoke( s, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -749,7 +748,7 @@ func (s *jsiiProxy_SecurityLabel) GetNumberAttribute(terraformAttribute *string) _jsii_.Invoke( s, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -765,7 +764,7 @@ func (s *jsiiProxy_SecurityLabel) GetNumberListAttribute(terraformAttribute *str _jsii_.Invoke( s, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -781,7 +780,7 @@ func (s *jsiiProxy_SecurityLabel) GetNumberMapAttribute(terraformAttribute *stri _jsii_.Invoke( s, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -797,7 +796,7 @@ func (s *jsiiProxy_SecurityLabel) GetStringAttribute(terraformAttribute *string) _jsii_.Invoke( s, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -813,15 +812,15 @@ func (s *jsiiProxy_SecurityLabel) GetStringMapAttribute(terraformAttribute *stri _jsii_.Invoke( s, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) return returns } -func (s *jsiiProxy_SecurityLabel) HasResourceMove() interface{} { - var returns interface{} +func (s *jsiiProxy_SecurityLabel) HasResourceMove() any { + var returns any _jsii_.Invoke( s, @@ -840,7 +839,7 @@ func (s *jsiiProxy_SecurityLabel) ImportFrom(id *string, provider cdktf.Terrafor _jsii_.InvokeVoid( s, "importFrom", - []interface{}{id, provider}, + []any{id, provider}, ) } @@ -853,7 +852,7 @@ func (s *jsiiProxy_SecurityLabel) InterpolationForAttribute(terraformAttribute * _jsii_.Invoke( s, "interpolationForAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -867,18 +866,18 @@ func (s *jsiiProxy_SecurityLabel) MoveFromId(id *string) { _jsii_.InvokeVoid( s, "moveFromId", - []interface{}{id}, + []any{id}, ) } -func (s *jsiiProxy_SecurityLabel) MoveTo(moveTarget *string, index interface{}) { +func (s *jsiiProxy_SecurityLabel) MoveTo(moveTarget *string, index any) { if err := s.validateMoveToParameters(moveTarget, index); err != nil { panic(err) } _jsii_.InvokeVoid( s, "moveTo", - []interface{}{moveTarget, index}, + []any{moveTarget, index}, ) } @@ -889,7 +888,7 @@ func (s *jsiiProxy_SecurityLabel) MoveToId(id *string) { _jsii_.InvokeVoid( s, "moveToId", - []interface{}{id}, + []any{id}, ) } @@ -900,7 +899,7 @@ func (s *jsiiProxy_SecurityLabel) OverrideLogicalId(newLogicalId *string) { _jsii_.InvokeVoid( s, "overrideLogicalId", - []interface{}{newLogicalId}, + []any{newLogicalId}, ) } @@ -920,8 +919,8 @@ func (s *jsiiProxy_SecurityLabel) ResetOverrideLogicalId() { ) } -func (s *jsiiProxy_SecurityLabel) SynthesizeAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (s *jsiiProxy_SecurityLabel) SynthesizeAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( s, @@ -933,8 +932,8 @@ func (s *jsiiProxy_SecurityLabel) SynthesizeAttributes() *map[string]interface{} return returns } -func (s *jsiiProxy_SecurityLabel) SynthesizeHclAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (s *jsiiProxy_SecurityLabel) SynthesizeHclAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( s, @@ -946,8 +945,8 @@ func (s *jsiiProxy_SecurityLabel) SynthesizeHclAttributes() *map[string]interfac return returns } -func (s *jsiiProxy_SecurityLabel) ToHclTerraform() interface{} { - var returns interface{} +func (s *jsiiProxy_SecurityLabel) ToHclTerraform() any { + var returns any _jsii_.Invoke( s, @@ -959,8 +958,8 @@ func (s *jsiiProxy_SecurityLabel) ToHclTerraform() interface{} { return returns } -func (s *jsiiProxy_SecurityLabel) ToMetadata() interface{} { - var returns interface{} +func (s *jsiiProxy_SecurityLabel) ToMetadata() any { + var returns any _jsii_.Invoke( s, @@ -985,8 +984,8 @@ func (s *jsiiProxy_SecurityLabel) ToString() *string { return returns } -func (s *jsiiProxy_SecurityLabel) ToTerraform() interface{} { - var returns interface{} +func (s *jsiiProxy_SecurityLabel) ToTerraform() any { + var returns any _jsii_.Invoke( s, @@ -997,4 +996,3 @@ func (s *jsiiProxy_SecurityLabel) ToTerraform() interface{} { return returns } - diff --git a/gen/postgresql/securitylabel/SecurityLabelConfig.go b/gen/postgresql/securitylabel/SecurityLabelConfig.go index cc05a9ca8e..55e14c6243 100644 --- a/gen/postgresql/securitylabel/SecurityLabelConfig.go +++ b/gen/postgresql/securitylabel/SecurityLabelConfig.go @@ -6,9 +6,9 @@ import ( type SecurityLabelConfig struct { // Experimental. - Connection interface{} `field:"optional" json:"connection" yaml:"connection"` + Connection any `field:"optional" json:"connection" yaml:"connection"` // Experimental. - Count interface{} `field:"optional" json:"count" yaml:"count"` + Count any `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. @@ -18,7 +18,7 @@ type SecurityLabelConfig struct { // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. - Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` + Provisioners *[]any `field:"optional" json:"provisioners" yaml:"provisioners"` // The label to be applied. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/security_label#label SecurityLabel#label} @@ -41,4 +41,3 @@ type SecurityLabelConfig struct { // If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. Id *string `field:"optional" json:"id" yaml:"id"` } - diff --git a/gen/postgresql/securitylabel/SecurityLabel__checks.go b/gen/postgresql/securitylabel/SecurityLabel__checks.go index 64872fc956..f7fd99e977 100644 --- a/gen/postgresql/securitylabel/SecurityLabel__checks.go +++ b/gen/postgresql/securitylabel/SecurityLabel__checks.go @@ -19,7 +19,7 @@ func (s *jsiiProxy_SecurityLabel) validateAddMoveTargetParameters(moveTarget *st return nil } -func (s *jsiiProxy_SecurityLabel) validateAddOverrideParameters(path *string, value interface{}) error { +func (s *jsiiProxy_SecurityLabel) validateAddOverrideParameters(path *string, value any) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } @@ -127,7 +127,7 @@ func (s *jsiiProxy_SecurityLabel) validateMoveFromIdParameters(id *string) error return nil } -func (s *jsiiProxy_SecurityLabel) validateMoveToParameters(moveTarget *string, index interface{}) error { +func (s *jsiiProxy_SecurityLabel) validateMoveToParameters(moveTarget *string, index any) error { if moveTarget == nil { return fmt.Errorf("parameter moveTarget is required, but nil was provided") } @@ -220,7 +220,7 @@ func validateSecurityLabel_GenerateConfigForImportParameters(scope constructs.Co return nil } -func validateSecurityLabel_IsConstructParameters(x interface{}) error { +func validateSecurityLabel_IsConstructParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -228,7 +228,7 @@ func validateSecurityLabel_IsConstructParameters(x interface{}) error { return nil } -func validateSecurityLabel_IsTerraformElementParameters(x interface{}) error { +func validateSecurityLabel_IsTerraformElementParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -236,7 +236,7 @@ func validateSecurityLabel_IsTerraformElementParameters(x interface{}) error { return nil } -func validateSecurityLabel_IsTerraformResourceParameters(x interface{}) error { +func validateSecurityLabel_IsTerraformResourceParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -244,7 +244,7 @@ func validateSecurityLabel_IsTerraformResourceParameters(x interface{}) error { return nil } -func (j *jsiiProxy_SecurityLabel) validateSetConnectionParameters(val interface{}) error { +func (j *jsiiProxy_SecurityLabel) validateSetConnectionParameters(val any) error { switch val.(type) { case *cdktf.SSHProvisionerConnection: val := val.(*cdktf.SSHProvisionerConnection) @@ -277,7 +277,7 @@ func (j *jsiiProxy_SecurityLabel) validateSetConnectionParameters(val interface{ return nil } -func (j *jsiiProxy_SecurityLabel) validateSetCountParameters(val interface{}) error { +func (j *jsiiProxy_SecurityLabel) validateSetCountParameters(val any) error { switch val.(type) { case *float64: // ok @@ -382,7 +382,7 @@ func (j *jsiiProxy_SecurityLabel) validateSetObjectTypeParameters(val *string) e return nil } -func (j *jsiiProxy_SecurityLabel) validateSetProvisionersParameters(val *[]interface{}) error { +func (j *jsiiProxy_SecurityLabel) validateSetProvisionersParameters(val *[]any) error { for idx_97dfc6, v := range *val { switch v.(type) { case *cdktf.FileProvisioner: @@ -446,4 +446,3 @@ func validateNewSecurityLabelParameters(scope constructs.Construct, id *string, return nil } - diff --git a/gen/postgresql/securitylabel/main.go b/gen/postgresql/securitylabel/main.go index 63a526ceee..8f635ee54f 100644 --- a/gen/postgresql/securitylabel/main.go +++ b/gen/postgresql/securitylabel/main.go @@ -9,7 +9,7 @@ import ( func init() { _jsii_.RegisterClass( "@cdktf/provider-postgresql.securityLabel.SecurityLabel", - reflect.TypeOf((*SecurityLabel)(nil)).Elem(), + reflect.TypeFor[SecurityLabel](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "addMoveTarget", GoMethod: "AddMoveTarget"}, _jsii_.MemberMethod{JsiiMethod: "addOverride", GoMethod: "AddOverride"}, @@ -64,7 +64,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "toString", GoMethod: "ToString"}, _jsii_.MemberMethod{JsiiMethod: "toTerraform", GoMethod: "ToTerraform"}, }, - func() interface{} { + func() any { j := jsiiProxy_SecurityLabel{} _jsii_.InitJsiiProxy(&j.Type__cdktfTerraformResource) return &j @@ -72,6 +72,6 @@ func init() { ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.securityLabel.SecurityLabelConfig", - reflect.TypeOf((*SecurityLabelConfig)(nil)).Elem(), + reflect.TypeFor[SecurityLabelConfig](), ) } diff --git a/gen/postgresql/server/Server.go b/gen/postgresql/server/Server.go index dc36321766..cc0639ad7f 100644 --- a/gen/postgresql/server/Server.go +++ b/gen/postgresql/server/Server.go @@ -15,22 +15,22 @@ type Server interface { // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. - Connection() interface{} + Connection() any // Experimental. - SetConnection(val interface{}) + SetConnection(val any) // Experimental. - ConstructNodeMetadata() *map[string]interface{} + ConstructNodeMetadata() *map[string]any // Experimental. - Count() interface{} + Count() any // Experimental. - SetCount(val interface{}) + SetCount(val any) // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) - DropCascade() interface{} - SetDropCascade(val interface{}) - DropCascadeInput() interface{} + DropCascade() any + SetDropCascade(val any) + DropCascadeInput() any FdwName() *string SetFdwName(val *string) FdwNameInput() *string @@ -59,11 +59,11 @@ type Server interface { // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. - Provisioners() *[]interface{} + Provisioners() *[]any // Experimental. - SetProvisioners(val *[]interface{}) + SetProvisioners(val *[]any) // Experimental. - RawOverrides() interface{} + RawOverrides() any ServerName() *string SetServerName(val *string) ServerNameInput() *string @@ -79,16 +79,16 @@ type Server interface { // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. - TerraformMetaArguments() *map[string]interface{} + TerraformMetaArguments() *map[string]any // Experimental. TerraformResourceType() *string // Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. // Experimental. AddMoveTarget(moveTarget *string) // Experimental. - AddOverride(path *string, value interface{}) + AddOverride(path *string, value any) // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -106,7 +106,7 @@ type Server interface { // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. - HasResourceMove() interface{} + HasResourceMove() any // Experimental. ImportFrom(id *string, provider cdktf.TerraformProvider) // Experimental. @@ -118,7 +118,7 @@ type Server interface { MoveFromId(id *string) // Moves this resource to the target resource given by moveTarget. // Experimental. - MoveTo(moveTarget *string, index interface{}) + MoveTo(moveTarget *string, index any) // Moves this resource to the resource corresponding to "id". // Experimental. MoveToId(id *string) @@ -134,17 +134,17 @@ type Server interface { ResetServerOwner() ResetServerType() ResetServerVersion() - SynthesizeAttributes() *map[string]interface{} - SynthesizeHclAttributes() *map[string]interface{} + SynthesizeAttributes() *map[string]any + SynthesizeHclAttributes() *map[string]any // Experimental. - ToHclTerraform() interface{} + ToHclTerraform() any // Experimental. - ToMetadata() interface{} + ToMetadata() any // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. - ToTerraform() interface{} + ToTerraform() any } // The jsii proxy struct for Server @@ -162,8 +162,8 @@ func (j *jsiiProxy_Server) CdktfStack() cdktf.TerraformStack { return returns } -func (j *jsiiProxy_Server) Connection() interface{} { - var returns interface{} +func (j *jsiiProxy_Server) Connection() any { + var returns any _jsii_.Get( j, "connection", @@ -172,8 +172,8 @@ func (j *jsiiProxy_Server) Connection() interface{} { return returns } -func (j *jsiiProxy_Server) ConstructNodeMetadata() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_Server) ConstructNodeMetadata() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "constructNodeMetadata", @@ -182,8 +182,8 @@ func (j *jsiiProxy_Server) ConstructNodeMetadata() *map[string]interface{} { return returns } -func (j *jsiiProxy_Server) Count() interface{} { - var returns interface{} +func (j *jsiiProxy_Server) Count() any { + var returns any _jsii_.Get( j, "count", @@ -202,8 +202,8 @@ func (j *jsiiProxy_Server) DependsOn() *[]*string { return returns } -func (j *jsiiProxy_Server) DropCascade() interface{} { - var returns interface{} +func (j *jsiiProxy_Server) DropCascade() any { + var returns any _jsii_.Get( j, "dropCascade", @@ -212,8 +212,8 @@ func (j *jsiiProxy_Server) DropCascade() interface{} { return returns } -func (j *jsiiProxy_Server) DropCascadeInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Server) DropCascadeInput() any { + var returns any _jsii_.Get( j, "dropCascadeInput", @@ -342,8 +342,8 @@ func (j *jsiiProxy_Server) Provider() cdktf.TerraformProvider { return returns } -func (j *jsiiProxy_Server) Provisioners() *[]interface{} { - var returns *[]interface{} +func (j *jsiiProxy_Server) Provisioners() *[]any { + var returns *[]any _jsii_.Get( j, "provisioners", @@ -352,8 +352,8 @@ func (j *jsiiProxy_Server) Provisioners() *[]interface{} { return returns } -func (j *jsiiProxy_Server) RawOverrides() interface{} { - var returns interface{} +func (j *jsiiProxy_Server) RawOverrides() any { + var returns any _jsii_.Get( j, "rawOverrides", @@ -452,8 +452,8 @@ func (j *jsiiProxy_Server) TerraformGeneratorMetadata() *cdktf.TerraformProvider return returns } -func (j *jsiiProxy_Server) TerraformMetaArguments() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_Server) TerraformMetaArguments() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "terraformMetaArguments", @@ -472,7 +472,6 @@ func (j *jsiiProxy_Server) TerraformResourceType() *string { return returns } - // Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/server postgresql_server} Resource. func NewServer(scope constructs.Construct, id *string, config *ServerConfig) Server { _init_.Initialize() @@ -484,7 +483,7 @@ func NewServer(scope constructs.Construct, id *string, config *ServerConfig) Ser _jsii_.Create( "@cdktf/provider-postgresql.server.Server", - []interface{}{scope, id, config}, + []any{scope, id, config}, &j, ) @@ -497,12 +496,12 @@ func NewServer_Override(s Server, scope constructs.Construct, id *string, config _jsii_.Create( "@cdktf/provider-postgresql.server.Server", - []interface{}{scope, id, config}, + []any{scope, id, config}, s, ) } -func (j *jsiiProxy_Server)SetConnection(val interface{}) { +func (j *jsiiProxy_Server) SetConnection(val any) { if err := j.validateSetConnectionParameters(val); err != nil { panic(err) } @@ -513,7 +512,7 @@ func (j *jsiiProxy_Server)SetConnection(val interface{}) { ) } -func (j *jsiiProxy_Server)SetCount(val interface{}) { +func (j *jsiiProxy_Server) SetCount(val any) { if err := j.validateSetCountParameters(val); err != nil { panic(err) } @@ -524,7 +523,7 @@ func (j *jsiiProxy_Server)SetCount(val interface{}) { ) } -func (j *jsiiProxy_Server)SetDependsOn(val *[]*string) { +func (j *jsiiProxy_Server) SetDependsOn(val *[]*string) { _jsii_.Set( j, "dependsOn", @@ -532,7 +531,7 @@ func (j *jsiiProxy_Server)SetDependsOn(val *[]*string) { ) } -func (j *jsiiProxy_Server)SetDropCascade(val interface{}) { +func (j *jsiiProxy_Server) SetDropCascade(val any) { if err := j.validateSetDropCascadeParameters(val); err != nil { panic(err) } @@ -543,7 +542,7 @@ func (j *jsiiProxy_Server)SetDropCascade(val interface{}) { ) } -func (j *jsiiProxy_Server)SetFdwName(val *string) { +func (j *jsiiProxy_Server) SetFdwName(val *string) { if err := j.validateSetFdwNameParameters(val); err != nil { panic(err) } @@ -554,7 +553,7 @@ func (j *jsiiProxy_Server)SetFdwName(val *string) { ) } -func (j *jsiiProxy_Server)SetForEach(val cdktf.ITerraformIterator) { +func (j *jsiiProxy_Server) SetForEach(val cdktf.ITerraformIterator) { _jsii_.Set( j, "forEach", @@ -562,7 +561,7 @@ func (j *jsiiProxy_Server)SetForEach(val cdktf.ITerraformIterator) { ) } -func (j *jsiiProxy_Server)SetId(val *string) { +func (j *jsiiProxy_Server) SetId(val *string) { if err := j.validateSetIdParameters(val); err != nil { panic(err) } @@ -573,7 +572,7 @@ func (j *jsiiProxy_Server)SetId(val *string) { ) } -func (j *jsiiProxy_Server)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { +func (j *jsiiProxy_Server) SetLifecycle(val *cdktf.TerraformResourceLifecycle) { if err := j.validateSetLifecycleParameters(val); err != nil { panic(err) } @@ -584,7 +583,7 @@ func (j *jsiiProxy_Server)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { ) } -func (j *jsiiProxy_Server)SetOptions(val *map[string]*string) { +func (j *jsiiProxy_Server) SetOptions(val *map[string]*string) { if err := j.validateSetOptionsParameters(val); err != nil { panic(err) } @@ -595,7 +594,7 @@ func (j *jsiiProxy_Server)SetOptions(val *map[string]*string) { ) } -func (j *jsiiProxy_Server)SetProvider(val cdktf.TerraformProvider) { +func (j *jsiiProxy_Server) SetProvider(val cdktf.TerraformProvider) { _jsii_.Set( j, "provider", @@ -603,7 +602,7 @@ func (j *jsiiProxy_Server)SetProvider(val cdktf.TerraformProvider) { ) } -func (j *jsiiProxy_Server)SetProvisioners(val *[]interface{}) { +func (j *jsiiProxy_Server) SetProvisioners(val *[]any) { if err := j.validateSetProvisionersParameters(val); err != nil { panic(err) } @@ -614,7 +613,7 @@ func (j *jsiiProxy_Server)SetProvisioners(val *[]interface{}) { ) } -func (j *jsiiProxy_Server)SetServerName(val *string) { +func (j *jsiiProxy_Server) SetServerName(val *string) { if err := j.validateSetServerNameParameters(val); err != nil { panic(err) } @@ -625,7 +624,7 @@ func (j *jsiiProxy_Server)SetServerName(val *string) { ) } -func (j *jsiiProxy_Server)SetServerOwner(val *string) { +func (j *jsiiProxy_Server) SetServerOwner(val *string) { if err := j.validateSetServerOwnerParameters(val); err != nil { panic(err) } @@ -636,7 +635,7 @@ func (j *jsiiProxy_Server)SetServerOwner(val *string) { ) } -func (j *jsiiProxy_Server)SetServerType(val *string) { +func (j *jsiiProxy_Server) SetServerType(val *string) { if err := j.validateSetServerTypeParameters(val); err != nil { panic(err) } @@ -647,7 +646,7 @@ func (j *jsiiProxy_Server)SetServerType(val *string) { ) } -func (j *jsiiProxy_Server)SetServerVersion(val *string) { +func (j *jsiiProxy_Server) SetServerVersion(val *string) { if err := j.validateSetServerVersionParameters(val); err != nil { panic(err) } @@ -670,7 +669,7 @@ func Server_GenerateConfigForImport(scope constructs.Construct, importToId *stri _jsii_.StaticInvoke( "@cdktf/provider-postgresql.server.Server", "generateConfigForImport", - []interface{}{scope, importToId, importFromId, provider}, + []any{scope, importToId, importFromId, provider}, &returns, ) @@ -694,7 +693,7 @@ func Server_GenerateConfigForImport(scope constructs.Construct, importToId *stri // this type-testing method instead. // // Returns: true if `x` is an object created from a class which extends `Construct`. -func Server_IsConstruct(x interface{}) *bool { +func Server_IsConstruct(x any) *bool { _init_.Initialize() if err := validateServer_IsConstructParameters(x); err != nil { @@ -705,7 +704,7 @@ func Server_IsConstruct(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.server.Server", "isConstruct", - []interface{}{x}, + []any{x}, &returns, ) @@ -713,7 +712,7 @@ func Server_IsConstruct(x interface{}) *bool { } // Experimental. -func Server_IsTerraformElement(x interface{}) *bool { +func Server_IsTerraformElement(x any) *bool { _init_.Initialize() if err := validateServer_IsTerraformElementParameters(x); err != nil { @@ -724,7 +723,7 @@ func Server_IsTerraformElement(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.server.Server", "isTerraformElement", - []interface{}{x}, + []any{x}, &returns, ) @@ -732,7 +731,7 @@ func Server_IsTerraformElement(x interface{}) *bool { } // Experimental. -func Server_IsTerraformResource(x interface{}) *bool { +func Server_IsTerraformResource(x any) *bool { _init_.Initialize() if err := validateServer_IsTerraformResourceParameters(x); err != nil { @@ -743,7 +742,7 @@ func Server_IsTerraformResource(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.server.Server", "isTerraformResource", - []interface{}{x}, + []any{x}, &returns, ) @@ -768,31 +767,31 @@ func (s *jsiiProxy_Server) AddMoveTarget(moveTarget *string) { _jsii_.InvokeVoid( s, "addMoveTarget", - []interface{}{moveTarget}, + []any{moveTarget}, ) } -func (s *jsiiProxy_Server) AddOverride(path *string, value interface{}) { +func (s *jsiiProxy_Server) AddOverride(path *string, value any) { if err := s.validateAddOverrideParameters(path, value); err != nil { panic(err) } _jsii_.InvokeVoid( s, "addOverride", - []interface{}{path, value}, + []any{path, value}, ) } -func (s *jsiiProxy_Server) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (s *jsiiProxy_Server) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := s.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( s, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -808,7 +807,7 @@ func (s *jsiiProxy_Server) GetBooleanAttribute(terraformAttribute *string) cdktf _jsii_.Invoke( s, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -824,7 +823,7 @@ func (s *jsiiProxy_Server) GetBooleanMapAttribute(terraformAttribute *string) *m _jsii_.Invoke( s, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -840,7 +839,7 @@ func (s *jsiiProxy_Server) GetListAttribute(terraformAttribute *string) *[]*stri _jsii_.Invoke( s, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -856,7 +855,7 @@ func (s *jsiiProxy_Server) GetNumberAttribute(terraformAttribute *string) *float _jsii_.Invoke( s, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -872,7 +871,7 @@ func (s *jsiiProxy_Server) GetNumberListAttribute(terraformAttribute *string) *[ _jsii_.Invoke( s, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -888,7 +887,7 @@ func (s *jsiiProxy_Server) GetNumberMapAttribute(terraformAttribute *string) *ma _jsii_.Invoke( s, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -904,7 +903,7 @@ func (s *jsiiProxy_Server) GetStringAttribute(terraformAttribute *string) *strin _jsii_.Invoke( s, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -920,15 +919,15 @@ func (s *jsiiProxy_Server) GetStringMapAttribute(terraformAttribute *string) *ma _jsii_.Invoke( s, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) return returns } -func (s *jsiiProxy_Server) HasResourceMove() interface{} { - var returns interface{} +func (s *jsiiProxy_Server) HasResourceMove() any { + var returns any _jsii_.Invoke( s, @@ -947,7 +946,7 @@ func (s *jsiiProxy_Server) ImportFrom(id *string, provider cdktf.TerraformProvid _jsii_.InvokeVoid( s, "importFrom", - []interface{}{id, provider}, + []any{id, provider}, ) } @@ -960,7 +959,7 @@ func (s *jsiiProxy_Server) InterpolationForAttribute(terraformAttribute *string) _jsii_.Invoke( s, "interpolationForAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -974,18 +973,18 @@ func (s *jsiiProxy_Server) MoveFromId(id *string) { _jsii_.InvokeVoid( s, "moveFromId", - []interface{}{id}, + []any{id}, ) } -func (s *jsiiProxy_Server) MoveTo(moveTarget *string, index interface{}) { +func (s *jsiiProxy_Server) MoveTo(moveTarget *string, index any) { if err := s.validateMoveToParameters(moveTarget, index); err != nil { panic(err) } _jsii_.InvokeVoid( s, "moveTo", - []interface{}{moveTarget, index}, + []any{moveTarget, index}, ) } @@ -996,7 +995,7 @@ func (s *jsiiProxy_Server) MoveToId(id *string) { _jsii_.InvokeVoid( s, "moveToId", - []interface{}{id}, + []any{id}, ) } @@ -1007,7 +1006,7 @@ func (s *jsiiProxy_Server) OverrideLogicalId(newLogicalId *string) { _jsii_.InvokeVoid( s, "overrideLogicalId", - []interface{}{newLogicalId}, + []any{newLogicalId}, ) } @@ -1067,8 +1066,8 @@ func (s *jsiiProxy_Server) ResetServerVersion() { ) } -func (s *jsiiProxy_Server) SynthesizeAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (s *jsiiProxy_Server) SynthesizeAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( s, @@ -1080,8 +1079,8 @@ func (s *jsiiProxy_Server) SynthesizeAttributes() *map[string]interface{} { return returns } -func (s *jsiiProxy_Server) SynthesizeHclAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (s *jsiiProxy_Server) SynthesizeHclAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( s, @@ -1093,8 +1092,8 @@ func (s *jsiiProxy_Server) SynthesizeHclAttributes() *map[string]interface{} { return returns } -func (s *jsiiProxy_Server) ToHclTerraform() interface{} { - var returns interface{} +func (s *jsiiProxy_Server) ToHclTerraform() any { + var returns any _jsii_.Invoke( s, @@ -1106,8 +1105,8 @@ func (s *jsiiProxy_Server) ToHclTerraform() interface{} { return returns } -func (s *jsiiProxy_Server) ToMetadata() interface{} { - var returns interface{} +func (s *jsiiProxy_Server) ToMetadata() any { + var returns any _jsii_.Invoke( s, @@ -1132,8 +1131,8 @@ func (s *jsiiProxy_Server) ToString() *string { return returns } -func (s *jsiiProxy_Server) ToTerraform() interface{} { - var returns interface{} +func (s *jsiiProxy_Server) ToTerraform() any { + var returns any _jsii_.Invoke( s, @@ -1144,4 +1143,3 @@ func (s *jsiiProxy_Server) ToTerraform() interface{} { return returns } - diff --git a/gen/postgresql/server/ServerConfig.go b/gen/postgresql/server/ServerConfig.go index be4b371de3..bca133bd3d 100644 --- a/gen/postgresql/server/ServerConfig.go +++ b/gen/postgresql/server/ServerConfig.go @@ -6,9 +6,9 @@ import ( type ServerConfig struct { // Experimental. - Connection interface{} `field:"optional" json:"connection" yaml:"connection"` + Connection any `field:"optional" json:"connection" yaml:"connection"` // Experimental. - Count interface{} `field:"optional" json:"count" yaml:"count"` + Count any `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. @@ -18,7 +18,7 @@ type ServerConfig struct { // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. - Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` + Provisioners *[]any `field:"optional" json:"provisioners" yaml:"provisioners"` // The name of the foreign-data wrapper that manages the server. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/server#fdw_name Server#fdw_name} @@ -32,7 +32,7 @@ type ServerConfig struct { // Drop RESTRICT is the default // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/server#drop_cascade Server#drop_cascade} - DropCascade interface{} `field:"optional" json:"dropCascade" yaml:"dropCascade"` + DropCascade any `field:"optional" json:"dropCascade" yaml:"dropCascade"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/server#id Server#id}. // // Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. @@ -57,4 +57,3 @@ type ServerConfig struct { // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/server#server_version Server#server_version} ServerVersion *string `field:"optional" json:"serverVersion" yaml:"serverVersion"` } - diff --git a/gen/postgresql/server/Server__checks.go b/gen/postgresql/server/Server__checks.go index 2479bfdc32..753857add2 100644 --- a/gen/postgresql/server/Server__checks.go +++ b/gen/postgresql/server/Server__checks.go @@ -19,7 +19,7 @@ func (s *jsiiProxy_Server) validateAddMoveTargetParameters(moveTarget *string) e return nil } -func (s *jsiiProxy_Server) validateAddOverrideParameters(path *string, value interface{}) error { +func (s *jsiiProxy_Server) validateAddOverrideParameters(path *string, value any) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } @@ -127,7 +127,7 @@ func (s *jsiiProxy_Server) validateMoveFromIdParameters(id *string) error { return nil } -func (s *jsiiProxy_Server) validateMoveToParameters(moveTarget *string, index interface{}) error { +func (s *jsiiProxy_Server) validateMoveToParameters(moveTarget *string, index any) error { if moveTarget == nil { return fmt.Errorf("parameter moveTarget is required, but nil was provided") } @@ -220,7 +220,7 @@ func validateServer_GenerateConfigForImportParameters(scope constructs.Construct return nil } -func validateServer_IsConstructParameters(x interface{}) error { +func validateServer_IsConstructParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -228,7 +228,7 @@ func validateServer_IsConstructParameters(x interface{}) error { return nil } -func validateServer_IsTerraformElementParameters(x interface{}) error { +func validateServer_IsTerraformElementParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -236,7 +236,7 @@ func validateServer_IsTerraformElementParameters(x interface{}) error { return nil } -func validateServer_IsTerraformResourceParameters(x interface{}) error { +func validateServer_IsTerraformResourceParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -244,7 +244,7 @@ func validateServer_IsTerraformResourceParameters(x interface{}) error { return nil } -func (j *jsiiProxy_Server) validateSetConnectionParameters(val interface{}) error { +func (j *jsiiProxy_Server) validateSetConnectionParameters(val any) error { switch val.(type) { case *cdktf.SSHProvisionerConnection: val := val.(*cdktf.SSHProvisionerConnection) @@ -277,7 +277,7 @@ func (j *jsiiProxy_Server) validateSetConnectionParameters(val interface{}) erro return nil } -func (j *jsiiProxy_Server) validateSetCountParameters(val interface{}) error { +func (j *jsiiProxy_Server) validateSetCountParameters(val any) error { switch val.(type) { case *float64: // ok @@ -334,7 +334,7 @@ func (j *jsiiProxy_Server) validateSetCountParameters(val interface{}) error { return nil } -func (j *jsiiProxy_Server) validateSetDropCascadeParameters(val interface{}) error { +func (j *jsiiProxy_Server) validateSetDropCascadeParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -386,7 +386,7 @@ func (j *jsiiProxy_Server) validateSetOptionsParameters(val *map[string]*string) return nil } -func (j *jsiiProxy_Server) validateSetProvisionersParameters(val *[]interface{}) error { +func (j *jsiiProxy_Server) validateSetProvisionersParameters(val *[]any) error { for idx_97dfc6, v := range *val { switch v.(type) { case *cdktf.FileProvisioner: @@ -482,4 +482,3 @@ func validateNewServerParameters(scope constructs.Construct, id *string, config return nil } - diff --git a/gen/postgresql/server/main.go b/gen/postgresql/server/main.go index ea9bf8b679..a19e17bfd4 100644 --- a/gen/postgresql/server/main.go +++ b/gen/postgresql/server/main.go @@ -9,7 +9,7 @@ import ( func init() { _jsii_.RegisterClass( "@cdktf/provider-postgresql.server.Server", - reflect.TypeOf((*Server)(nil)).Elem(), + reflect.TypeFor[Server](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "addMoveTarget", GoMethod: "AddMoveTarget"}, _jsii_.MemberMethod{JsiiMethod: "addOverride", GoMethod: "AddOverride"}, @@ -75,7 +75,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "toString", GoMethod: "ToString"}, _jsii_.MemberMethod{JsiiMethod: "toTerraform", GoMethod: "ToTerraform"}, }, - func() interface{} { + func() any { j := jsiiProxy_Server{} _jsii_.InitJsiiProxy(&j.Type__cdktfTerraformResource) return &j @@ -83,6 +83,6 @@ func init() { ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.server.ServerConfig", - reflect.TypeOf((*ServerConfig)(nil)).Elem(), + reflect.TypeFor[ServerConfig](), ) } diff --git a/gen/postgresql/subscription/Subscription.go b/gen/postgresql/subscription/Subscription.go index 5c6994cd55..7925d41e9b 100644 --- a/gen/postgresql/subscription/Subscription.go +++ b/gen/postgresql/subscription/Subscription.go @@ -15,21 +15,21 @@ type Subscription interface { // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. - Connection() interface{} + Connection() any // Experimental. - SetConnection(val interface{}) + SetConnection(val any) Conninfo() *string SetConninfo(val *string) ConninfoInput() *string // Experimental. - ConstructNodeMetadata() *map[string]interface{} + ConstructNodeMetadata() *map[string]any // Experimental. - Count() interface{} + Count() any // Experimental. - SetCount(val interface{}) - CreateSlot() interface{} - SetCreateSlot(val interface{}) - CreateSlotInput() interface{} + SetCount(val any) + CreateSlot() any + SetCreateSlot(val any) + CreateSlotInput() any Database() *string SetDatabase(val *string) DatabaseInput() *string @@ -62,30 +62,30 @@ type Subscription interface { // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. - Provisioners() *[]interface{} + Provisioners() *[]any // Experimental. - SetProvisioners(val *[]interface{}) + SetProvisioners(val *[]any) Publications() *[]*string SetPublications(val *[]*string) PublicationsInput() *[]*string // Experimental. - RawOverrides() interface{} + RawOverrides() any SlotName() *string SetSlotName(val *string) SlotNameInput() *string // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. - TerraformMetaArguments() *map[string]interface{} + TerraformMetaArguments() *map[string]any // Experimental. TerraformResourceType() *string // Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. // Experimental. AddMoveTarget(moveTarget *string) // Experimental. - AddOverride(path *string, value interface{}) + AddOverride(path *string, value any) // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -103,7 +103,7 @@ type Subscription interface { // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. - HasResourceMove() interface{} + HasResourceMove() any // Experimental. ImportFrom(id *string, provider cdktf.TerraformProvider) // Experimental. @@ -115,7 +115,7 @@ type Subscription interface { MoveFromId(id *string) // Moves this resource to the target resource given by moveTarget. // Experimental. - MoveTo(moveTarget *string, index interface{}) + MoveTo(moveTarget *string, index any) // Moves this resource to the resource corresponding to "id". // Experimental. MoveToId(id *string) @@ -129,17 +129,17 @@ type Subscription interface { // Experimental. ResetOverrideLogicalId() ResetSlotName() - SynthesizeAttributes() *map[string]interface{} - SynthesizeHclAttributes() *map[string]interface{} + SynthesizeAttributes() *map[string]any + SynthesizeHclAttributes() *map[string]any // Experimental. - ToHclTerraform() interface{} + ToHclTerraform() any // Experimental. - ToMetadata() interface{} + ToMetadata() any // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. - ToTerraform() interface{} + ToTerraform() any } // The jsii proxy struct for Subscription @@ -157,8 +157,8 @@ func (j *jsiiProxy_Subscription) CdktfStack() cdktf.TerraformStack { return returns } -func (j *jsiiProxy_Subscription) Connection() interface{} { - var returns interface{} +func (j *jsiiProxy_Subscription) Connection() any { + var returns any _jsii_.Get( j, "connection", @@ -187,8 +187,8 @@ func (j *jsiiProxy_Subscription) ConninfoInput() *string { return returns } -func (j *jsiiProxy_Subscription) ConstructNodeMetadata() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_Subscription) ConstructNodeMetadata() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "constructNodeMetadata", @@ -197,8 +197,8 @@ func (j *jsiiProxy_Subscription) ConstructNodeMetadata() *map[string]interface{} return returns } -func (j *jsiiProxy_Subscription) Count() interface{} { - var returns interface{} +func (j *jsiiProxy_Subscription) Count() any { + var returns any _jsii_.Get( j, "count", @@ -207,8 +207,8 @@ func (j *jsiiProxy_Subscription) Count() interface{} { return returns } -func (j *jsiiProxy_Subscription) CreateSlot() interface{} { - var returns interface{} +func (j *jsiiProxy_Subscription) CreateSlot() any { + var returns any _jsii_.Get( j, "createSlot", @@ -217,8 +217,8 @@ func (j *jsiiProxy_Subscription) CreateSlot() interface{} { return returns } -func (j *jsiiProxy_Subscription) CreateSlotInput() interface{} { - var returns interface{} +func (j *jsiiProxy_Subscription) CreateSlotInput() any { + var returns any _jsii_.Get( j, "createSlotInput", @@ -357,8 +357,8 @@ func (j *jsiiProxy_Subscription) Provider() cdktf.TerraformProvider { return returns } -func (j *jsiiProxy_Subscription) Provisioners() *[]interface{} { - var returns *[]interface{} +func (j *jsiiProxy_Subscription) Provisioners() *[]any { + var returns *[]any _jsii_.Get( j, "provisioners", @@ -387,8 +387,8 @@ func (j *jsiiProxy_Subscription) PublicationsInput() *[]*string { return returns } -func (j *jsiiProxy_Subscription) RawOverrides() interface{} { - var returns interface{} +func (j *jsiiProxy_Subscription) RawOverrides() any { + var returns any _jsii_.Get( j, "rawOverrides", @@ -427,8 +427,8 @@ func (j *jsiiProxy_Subscription) TerraformGeneratorMetadata() *cdktf.TerraformPr return returns } -func (j *jsiiProxy_Subscription) TerraformMetaArguments() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_Subscription) TerraformMetaArguments() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "terraformMetaArguments", @@ -447,7 +447,6 @@ func (j *jsiiProxy_Subscription) TerraformResourceType() *string { return returns } - // Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/subscription postgresql_subscription} Resource. func NewSubscription(scope constructs.Construct, id *string, config *SubscriptionConfig) Subscription { _init_.Initialize() @@ -459,7 +458,7 @@ func NewSubscription(scope constructs.Construct, id *string, config *Subscriptio _jsii_.Create( "@cdktf/provider-postgresql.subscription.Subscription", - []interface{}{scope, id, config}, + []any{scope, id, config}, &j, ) @@ -472,12 +471,12 @@ func NewSubscription_Override(s Subscription, scope constructs.Construct, id *st _jsii_.Create( "@cdktf/provider-postgresql.subscription.Subscription", - []interface{}{scope, id, config}, + []any{scope, id, config}, s, ) } -func (j *jsiiProxy_Subscription)SetConnection(val interface{}) { +func (j *jsiiProxy_Subscription) SetConnection(val any) { if err := j.validateSetConnectionParameters(val); err != nil { panic(err) } @@ -488,7 +487,7 @@ func (j *jsiiProxy_Subscription)SetConnection(val interface{}) { ) } -func (j *jsiiProxy_Subscription)SetConninfo(val *string) { +func (j *jsiiProxy_Subscription) SetConninfo(val *string) { if err := j.validateSetConninfoParameters(val); err != nil { panic(err) } @@ -499,7 +498,7 @@ func (j *jsiiProxy_Subscription)SetConninfo(val *string) { ) } -func (j *jsiiProxy_Subscription)SetCount(val interface{}) { +func (j *jsiiProxy_Subscription) SetCount(val any) { if err := j.validateSetCountParameters(val); err != nil { panic(err) } @@ -510,7 +509,7 @@ func (j *jsiiProxy_Subscription)SetCount(val interface{}) { ) } -func (j *jsiiProxy_Subscription)SetCreateSlot(val interface{}) { +func (j *jsiiProxy_Subscription) SetCreateSlot(val any) { if err := j.validateSetCreateSlotParameters(val); err != nil { panic(err) } @@ -521,7 +520,7 @@ func (j *jsiiProxy_Subscription)SetCreateSlot(val interface{}) { ) } -func (j *jsiiProxy_Subscription)SetDatabase(val *string) { +func (j *jsiiProxy_Subscription) SetDatabase(val *string) { if err := j.validateSetDatabaseParameters(val); err != nil { panic(err) } @@ -532,7 +531,7 @@ func (j *jsiiProxy_Subscription)SetDatabase(val *string) { ) } -func (j *jsiiProxy_Subscription)SetDependsOn(val *[]*string) { +func (j *jsiiProxy_Subscription) SetDependsOn(val *[]*string) { _jsii_.Set( j, "dependsOn", @@ -540,7 +539,7 @@ func (j *jsiiProxy_Subscription)SetDependsOn(val *[]*string) { ) } -func (j *jsiiProxy_Subscription)SetForEach(val cdktf.ITerraformIterator) { +func (j *jsiiProxy_Subscription) SetForEach(val cdktf.ITerraformIterator) { _jsii_.Set( j, "forEach", @@ -548,7 +547,7 @@ func (j *jsiiProxy_Subscription)SetForEach(val cdktf.ITerraformIterator) { ) } -func (j *jsiiProxy_Subscription)SetId(val *string) { +func (j *jsiiProxy_Subscription) SetId(val *string) { if err := j.validateSetIdParameters(val); err != nil { panic(err) } @@ -559,7 +558,7 @@ func (j *jsiiProxy_Subscription)SetId(val *string) { ) } -func (j *jsiiProxy_Subscription)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { +func (j *jsiiProxy_Subscription) SetLifecycle(val *cdktf.TerraformResourceLifecycle) { if err := j.validateSetLifecycleParameters(val); err != nil { panic(err) } @@ -570,7 +569,7 @@ func (j *jsiiProxy_Subscription)SetLifecycle(val *cdktf.TerraformResourceLifecyc ) } -func (j *jsiiProxy_Subscription)SetName(val *string) { +func (j *jsiiProxy_Subscription) SetName(val *string) { if err := j.validateSetNameParameters(val); err != nil { panic(err) } @@ -581,7 +580,7 @@ func (j *jsiiProxy_Subscription)SetName(val *string) { ) } -func (j *jsiiProxy_Subscription)SetProvider(val cdktf.TerraformProvider) { +func (j *jsiiProxy_Subscription) SetProvider(val cdktf.TerraformProvider) { _jsii_.Set( j, "provider", @@ -589,7 +588,7 @@ func (j *jsiiProxy_Subscription)SetProvider(val cdktf.TerraformProvider) { ) } -func (j *jsiiProxy_Subscription)SetProvisioners(val *[]interface{}) { +func (j *jsiiProxy_Subscription) SetProvisioners(val *[]any) { if err := j.validateSetProvisionersParameters(val); err != nil { panic(err) } @@ -600,7 +599,7 @@ func (j *jsiiProxy_Subscription)SetProvisioners(val *[]interface{}) { ) } -func (j *jsiiProxy_Subscription)SetPublications(val *[]*string) { +func (j *jsiiProxy_Subscription) SetPublications(val *[]*string) { if err := j.validateSetPublicationsParameters(val); err != nil { panic(err) } @@ -611,7 +610,7 @@ func (j *jsiiProxy_Subscription)SetPublications(val *[]*string) { ) } -func (j *jsiiProxy_Subscription)SetSlotName(val *string) { +func (j *jsiiProxy_Subscription) SetSlotName(val *string) { if err := j.validateSetSlotNameParameters(val); err != nil { panic(err) } @@ -634,7 +633,7 @@ func Subscription_GenerateConfigForImport(scope constructs.Construct, importToId _jsii_.StaticInvoke( "@cdktf/provider-postgresql.subscription.Subscription", "generateConfigForImport", - []interface{}{scope, importToId, importFromId, provider}, + []any{scope, importToId, importFromId, provider}, &returns, ) @@ -658,7 +657,7 @@ func Subscription_GenerateConfigForImport(scope constructs.Construct, importToId // this type-testing method instead. // // Returns: true if `x` is an object created from a class which extends `Construct`. -func Subscription_IsConstruct(x interface{}) *bool { +func Subscription_IsConstruct(x any) *bool { _init_.Initialize() if err := validateSubscription_IsConstructParameters(x); err != nil { @@ -669,7 +668,7 @@ func Subscription_IsConstruct(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.subscription.Subscription", "isConstruct", - []interface{}{x}, + []any{x}, &returns, ) @@ -677,7 +676,7 @@ func Subscription_IsConstruct(x interface{}) *bool { } // Experimental. -func Subscription_IsTerraformElement(x interface{}) *bool { +func Subscription_IsTerraformElement(x any) *bool { _init_.Initialize() if err := validateSubscription_IsTerraformElementParameters(x); err != nil { @@ -688,7 +687,7 @@ func Subscription_IsTerraformElement(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.subscription.Subscription", "isTerraformElement", - []interface{}{x}, + []any{x}, &returns, ) @@ -696,7 +695,7 @@ func Subscription_IsTerraformElement(x interface{}) *bool { } // Experimental. -func Subscription_IsTerraformResource(x interface{}) *bool { +func Subscription_IsTerraformResource(x any) *bool { _init_.Initialize() if err := validateSubscription_IsTerraformResourceParameters(x); err != nil { @@ -707,7 +706,7 @@ func Subscription_IsTerraformResource(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.subscription.Subscription", "isTerraformResource", - []interface{}{x}, + []any{x}, &returns, ) @@ -732,31 +731,31 @@ func (s *jsiiProxy_Subscription) AddMoveTarget(moveTarget *string) { _jsii_.InvokeVoid( s, "addMoveTarget", - []interface{}{moveTarget}, + []any{moveTarget}, ) } -func (s *jsiiProxy_Subscription) AddOverride(path *string, value interface{}) { +func (s *jsiiProxy_Subscription) AddOverride(path *string, value any) { if err := s.validateAddOverrideParameters(path, value); err != nil { panic(err) } _jsii_.InvokeVoid( s, "addOverride", - []interface{}{path, value}, + []any{path, value}, ) } -func (s *jsiiProxy_Subscription) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (s *jsiiProxy_Subscription) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := s.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( s, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -772,7 +771,7 @@ func (s *jsiiProxy_Subscription) GetBooleanAttribute(terraformAttribute *string) _jsii_.Invoke( s, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -788,7 +787,7 @@ func (s *jsiiProxy_Subscription) GetBooleanMapAttribute(terraformAttribute *stri _jsii_.Invoke( s, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -804,7 +803,7 @@ func (s *jsiiProxy_Subscription) GetListAttribute(terraformAttribute *string) *[ _jsii_.Invoke( s, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -820,7 +819,7 @@ func (s *jsiiProxy_Subscription) GetNumberAttribute(terraformAttribute *string) _jsii_.Invoke( s, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -836,7 +835,7 @@ func (s *jsiiProxy_Subscription) GetNumberListAttribute(terraformAttribute *stri _jsii_.Invoke( s, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -852,7 +851,7 @@ func (s *jsiiProxy_Subscription) GetNumberMapAttribute(terraformAttribute *strin _jsii_.Invoke( s, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -868,7 +867,7 @@ func (s *jsiiProxy_Subscription) GetStringAttribute(terraformAttribute *string) _jsii_.Invoke( s, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -884,15 +883,15 @@ func (s *jsiiProxy_Subscription) GetStringMapAttribute(terraformAttribute *strin _jsii_.Invoke( s, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) return returns } -func (s *jsiiProxy_Subscription) HasResourceMove() interface{} { - var returns interface{} +func (s *jsiiProxy_Subscription) HasResourceMove() any { + var returns any _jsii_.Invoke( s, @@ -911,7 +910,7 @@ func (s *jsiiProxy_Subscription) ImportFrom(id *string, provider cdktf.Terraform _jsii_.InvokeVoid( s, "importFrom", - []interface{}{id, provider}, + []any{id, provider}, ) } @@ -924,7 +923,7 @@ func (s *jsiiProxy_Subscription) InterpolationForAttribute(terraformAttribute *s _jsii_.Invoke( s, "interpolationForAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -938,18 +937,18 @@ func (s *jsiiProxy_Subscription) MoveFromId(id *string) { _jsii_.InvokeVoid( s, "moveFromId", - []interface{}{id}, + []any{id}, ) } -func (s *jsiiProxy_Subscription) MoveTo(moveTarget *string, index interface{}) { +func (s *jsiiProxy_Subscription) MoveTo(moveTarget *string, index any) { if err := s.validateMoveToParameters(moveTarget, index); err != nil { panic(err) } _jsii_.InvokeVoid( s, "moveTo", - []interface{}{moveTarget, index}, + []any{moveTarget, index}, ) } @@ -960,7 +959,7 @@ func (s *jsiiProxy_Subscription) MoveToId(id *string) { _jsii_.InvokeVoid( s, "moveToId", - []interface{}{id}, + []any{id}, ) } @@ -971,7 +970,7 @@ func (s *jsiiProxy_Subscription) OverrideLogicalId(newLogicalId *string) { _jsii_.InvokeVoid( s, "overrideLogicalId", - []interface{}{newLogicalId}, + []any{newLogicalId}, ) } @@ -1015,8 +1014,8 @@ func (s *jsiiProxy_Subscription) ResetSlotName() { ) } -func (s *jsiiProxy_Subscription) SynthesizeAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (s *jsiiProxy_Subscription) SynthesizeAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( s, @@ -1028,8 +1027,8 @@ func (s *jsiiProxy_Subscription) SynthesizeAttributes() *map[string]interface{} return returns } -func (s *jsiiProxy_Subscription) SynthesizeHclAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (s *jsiiProxy_Subscription) SynthesizeHclAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( s, @@ -1041,8 +1040,8 @@ func (s *jsiiProxy_Subscription) SynthesizeHclAttributes() *map[string]interface return returns } -func (s *jsiiProxy_Subscription) ToHclTerraform() interface{} { - var returns interface{} +func (s *jsiiProxy_Subscription) ToHclTerraform() any { + var returns any _jsii_.Invoke( s, @@ -1054,8 +1053,8 @@ func (s *jsiiProxy_Subscription) ToHclTerraform() interface{} { return returns } -func (s *jsiiProxy_Subscription) ToMetadata() interface{} { - var returns interface{} +func (s *jsiiProxy_Subscription) ToMetadata() any { + var returns any _jsii_.Invoke( s, @@ -1080,8 +1079,8 @@ func (s *jsiiProxy_Subscription) ToString() *string { return returns } -func (s *jsiiProxy_Subscription) ToTerraform() interface{} { - var returns interface{} +func (s *jsiiProxy_Subscription) ToTerraform() any { + var returns any _jsii_.Invoke( s, @@ -1092,4 +1091,3 @@ func (s *jsiiProxy_Subscription) ToTerraform() interface{} { return returns } - diff --git a/gen/postgresql/subscription/SubscriptionConfig.go b/gen/postgresql/subscription/SubscriptionConfig.go index 95ff636054..0470c19620 100644 --- a/gen/postgresql/subscription/SubscriptionConfig.go +++ b/gen/postgresql/subscription/SubscriptionConfig.go @@ -6,9 +6,9 @@ import ( type SubscriptionConfig struct { // Experimental. - Connection interface{} `field:"optional" json:"connection" yaml:"connection"` + Connection any `field:"optional" json:"connection" yaml:"connection"` // Experimental. - Count interface{} `field:"optional" json:"count" yaml:"count"` + Count any `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. @@ -18,7 +18,7 @@ type SubscriptionConfig struct { // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. - Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` + Provisioners *[]any `field:"optional" json:"provisioners" yaml:"provisioners"` // The connection string to the publisher. It should follow the keyword/value format (https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING). // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/subscription#conninfo Subscription#conninfo} @@ -34,7 +34,7 @@ type SubscriptionConfig struct { // Specifies whether the command should create the replication slot on the publisher. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/subscription#create_slot Subscription#create_slot} - CreateSlot interface{} `field:"optional" json:"createSlot" yaml:"createSlot"` + CreateSlot any `field:"optional" json:"createSlot" yaml:"createSlot"` // Sets the database to add the subscription for. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/subscription#database Subscription#database} @@ -51,4 +51,3 @@ type SubscriptionConfig struct { // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/subscription#slot_name Subscription#slot_name} SlotName *string `field:"optional" json:"slotName" yaml:"slotName"` } - diff --git a/gen/postgresql/subscription/Subscription__checks.go b/gen/postgresql/subscription/Subscription__checks.go index 043d914133..f28c217308 100644 --- a/gen/postgresql/subscription/Subscription__checks.go +++ b/gen/postgresql/subscription/Subscription__checks.go @@ -19,7 +19,7 @@ func (s *jsiiProxy_Subscription) validateAddMoveTargetParameters(moveTarget *str return nil } -func (s *jsiiProxy_Subscription) validateAddOverrideParameters(path *string, value interface{}) error { +func (s *jsiiProxy_Subscription) validateAddOverrideParameters(path *string, value any) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } @@ -127,7 +127,7 @@ func (s *jsiiProxy_Subscription) validateMoveFromIdParameters(id *string) error return nil } -func (s *jsiiProxy_Subscription) validateMoveToParameters(moveTarget *string, index interface{}) error { +func (s *jsiiProxy_Subscription) validateMoveToParameters(moveTarget *string, index any) error { if moveTarget == nil { return fmt.Errorf("parameter moveTarget is required, but nil was provided") } @@ -220,7 +220,7 @@ func validateSubscription_GenerateConfigForImportParameters(scope constructs.Con return nil } -func validateSubscription_IsConstructParameters(x interface{}) error { +func validateSubscription_IsConstructParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -228,7 +228,7 @@ func validateSubscription_IsConstructParameters(x interface{}) error { return nil } -func validateSubscription_IsTerraformElementParameters(x interface{}) error { +func validateSubscription_IsTerraformElementParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -236,7 +236,7 @@ func validateSubscription_IsTerraformElementParameters(x interface{}) error { return nil } -func validateSubscription_IsTerraformResourceParameters(x interface{}) error { +func validateSubscription_IsTerraformResourceParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -244,7 +244,7 @@ func validateSubscription_IsTerraformResourceParameters(x interface{}) error { return nil } -func (j *jsiiProxy_Subscription) validateSetConnectionParameters(val interface{}) error { +func (j *jsiiProxy_Subscription) validateSetConnectionParameters(val any) error { switch val.(type) { case *cdktf.SSHProvisionerConnection: val := val.(*cdktf.SSHProvisionerConnection) @@ -285,7 +285,7 @@ func (j *jsiiProxy_Subscription) validateSetConninfoParameters(val *string) erro return nil } -func (j *jsiiProxy_Subscription) validateSetCountParameters(val interface{}) error { +func (j *jsiiProxy_Subscription) validateSetCountParameters(val any) error { switch val.(type) { case *float64: // ok @@ -342,7 +342,7 @@ func (j *jsiiProxy_Subscription) validateSetCountParameters(val interface{}) err return nil } -func (j *jsiiProxy_Subscription) validateSetCreateSlotParameters(val interface{}) error { +func (j *jsiiProxy_Subscription) validateSetCreateSlotParameters(val any) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } @@ -394,7 +394,7 @@ func (j *jsiiProxy_Subscription) validateSetNameParameters(val *string) error { return nil } -func (j *jsiiProxy_Subscription) validateSetProvisionersParameters(val *[]interface{}) error { +func (j *jsiiProxy_Subscription) validateSetProvisionersParameters(val *[]any) error { for idx_97dfc6, v := range *val { switch v.(type) { case *cdktf.FileProvisioner: @@ -474,4 +474,3 @@ func validateNewSubscriptionParameters(scope constructs.Construct, id *string, c return nil } - diff --git a/gen/postgresql/subscription/main.go b/gen/postgresql/subscription/main.go index 76bcc0cefe..847cad357e 100644 --- a/gen/postgresql/subscription/main.go +++ b/gen/postgresql/subscription/main.go @@ -9,7 +9,7 @@ import ( func init() { _jsii_.RegisterClass( "@cdktf/provider-postgresql.subscription.Subscription", - reflect.TypeOf((*Subscription)(nil)).Elem(), + reflect.TypeFor[Subscription](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "addMoveTarget", GoMethod: "AddMoveTarget"}, _jsii_.MemberMethod{JsiiMethod: "addOverride", GoMethod: "AddOverride"}, @@ -71,7 +71,7 @@ func init() { _jsii_.MemberMethod{JsiiMethod: "toString", GoMethod: "ToString"}, _jsii_.MemberMethod{JsiiMethod: "toTerraform", GoMethod: "ToTerraform"}, }, - func() interface{} { + func() any { j := jsiiProxy_Subscription{} _jsii_.InitJsiiProxy(&j.Type__cdktfTerraformResource) return &j @@ -79,6 +79,6 @@ func init() { ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.subscription.SubscriptionConfig", - reflect.TypeOf((*SubscriptionConfig)(nil)).Elem(), + reflect.TypeFor[SubscriptionConfig](), ) } diff --git a/gen/postgresql/usermapping/UserMapping.go b/gen/postgresql/usermapping/UserMapping.go index b72bba2f08..6d4bddd8fc 100644 --- a/gen/postgresql/usermapping/UserMapping.go +++ b/gen/postgresql/usermapping/UserMapping.go @@ -15,15 +15,15 @@ type UserMapping interface { // Experimental. CdktfStack() cdktf.TerraformStack // Experimental. - Connection() interface{} + Connection() any // Experimental. - SetConnection(val interface{}) + SetConnection(val any) // Experimental. - ConstructNodeMetadata() *map[string]interface{} + ConstructNodeMetadata() *map[string]any // Experimental. - Count() interface{} + Count() any // Experimental. - SetCount(val interface{}) + SetCount(val any) // Experimental. DependsOn() *[]*string // Experimental. @@ -53,18 +53,18 @@ type UserMapping interface { // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. - Provisioners() *[]interface{} + Provisioners() *[]any // Experimental. - SetProvisioners(val *[]interface{}) + SetProvisioners(val *[]any) // Experimental. - RawOverrides() interface{} + RawOverrides() any ServerName() *string SetServerName(val *string) ServerNameInput() *string // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. - TerraformMetaArguments() *map[string]interface{} + TerraformMetaArguments() *map[string]any // Experimental. TerraformResourceType() *string UserName() *string @@ -74,9 +74,9 @@ type UserMapping interface { // Experimental. AddMoveTarget(moveTarget *string) // Experimental. - AddOverride(path *string, value interface{}) + AddOverride(path *string, value any) // Experimental. - GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} + GetAnyMapAttribute(terraformAttribute *string) *map[string]any // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. @@ -94,7 +94,7 @@ type UserMapping interface { // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. - HasResourceMove() interface{} + HasResourceMove() any // Experimental. ImportFrom(id *string, provider cdktf.TerraformProvider) // Experimental. @@ -106,7 +106,7 @@ type UserMapping interface { MoveFromId(id *string) // Moves this resource to the target resource given by moveTarget. // Experimental. - MoveTo(moveTarget *string, index interface{}) + MoveTo(moveTarget *string, index any) // Moves this resource to the resource corresponding to "id". // Experimental. MoveToId(id *string) @@ -118,17 +118,17 @@ type UserMapping interface { // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() - SynthesizeAttributes() *map[string]interface{} - SynthesizeHclAttributes() *map[string]interface{} + SynthesizeAttributes() *map[string]any + SynthesizeHclAttributes() *map[string]any // Experimental. - ToHclTerraform() interface{} + ToHclTerraform() any // Experimental. - ToMetadata() interface{} + ToMetadata() any // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. - ToTerraform() interface{} + ToTerraform() any } // The jsii proxy struct for UserMapping @@ -146,8 +146,8 @@ func (j *jsiiProxy_UserMapping) CdktfStack() cdktf.TerraformStack { return returns } -func (j *jsiiProxy_UserMapping) Connection() interface{} { - var returns interface{} +func (j *jsiiProxy_UserMapping) Connection() any { + var returns any _jsii_.Get( j, "connection", @@ -156,8 +156,8 @@ func (j *jsiiProxy_UserMapping) Connection() interface{} { return returns } -func (j *jsiiProxy_UserMapping) ConstructNodeMetadata() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_UserMapping) ConstructNodeMetadata() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "constructNodeMetadata", @@ -166,8 +166,8 @@ func (j *jsiiProxy_UserMapping) ConstructNodeMetadata() *map[string]interface{} return returns } -func (j *jsiiProxy_UserMapping) Count() interface{} { - var returns interface{} +func (j *jsiiProxy_UserMapping) Count() any { + var returns any _jsii_.Get( j, "count", @@ -286,8 +286,8 @@ func (j *jsiiProxy_UserMapping) Provider() cdktf.TerraformProvider { return returns } -func (j *jsiiProxy_UserMapping) Provisioners() *[]interface{} { - var returns *[]interface{} +func (j *jsiiProxy_UserMapping) Provisioners() *[]any { + var returns *[]any _jsii_.Get( j, "provisioners", @@ -296,8 +296,8 @@ func (j *jsiiProxy_UserMapping) Provisioners() *[]interface{} { return returns } -func (j *jsiiProxy_UserMapping) RawOverrides() interface{} { - var returns interface{} +func (j *jsiiProxy_UserMapping) RawOverrides() any { + var returns any _jsii_.Get( j, "rawOverrides", @@ -336,8 +336,8 @@ func (j *jsiiProxy_UserMapping) TerraformGeneratorMetadata() *cdktf.TerraformPro return returns } -func (j *jsiiProxy_UserMapping) TerraformMetaArguments() *map[string]interface{} { - var returns *map[string]interface{} +func (j *jsiiProxy_UserMapping) TerraformMetaArguments() *map[string]any { + var returns *map[string]any _jsii_.Get( j, "terraformMetaArguments", @@ -376,7 +376,6 @@ func (j *jsiiProxy_UserMapping) UserNameInput() *string { return returns } - // Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/user_mapping postgresql_user_mapping} Resource. func NewUserMapping(scope constructs.Construct, id *string, config *UserMappingConfig) UserMapping { _init_.Initialize() @@ -388,7 +387,7 @@ func NewUserMapping(scope constructs.Construct, id *string, config *UserMappingC _jsii_.Create( "@cdktf/provider-postgresql.userMapping.UserMapping", - []interface{}{scope, id, config}, + []any{scope, id, config}, &j, ) @@ -401,12 +400,12 @@ func NewUserMapping_Override(u UserMapping, scope constructs.Construct, id *stri _jsii_.Create( "@cdktf/provider-postgresql.userMapping.UserMapping", - []interface{}{scope, id, config}, + []any{scope, id, config}, u, ) } -func (j *jsiiProxy_UserMapping)SetConnection(val interface{}) { +func (j *jsiiProxy_UserMapping) SetConnection(val any) { if err := j.validateSetConnectionParameters(val); err != nil { panic(err) } @@ -417,7 +416,7 @@ func (j *jsiiProxy_UserMapping)SetConnection(val interface{}) { ) } -func (j *jsiiProxy_UserMapping)SetCount(val interface{}) { +func (j *jsiiProxy_UserMapping) SetCount(val any) { if err := j.validateSetCountParameters(val); err != nil { panic(err) } @@ -428,7 +427,7 @@ func (j *jsiiProxy_UserMapping)SetCount(val interface{}) { ) } -func (j *jsiiProxy_UserMapping)SetDependsOn(val *[]*string) { +func (j *jsiiProxy_UserMapping) SetDependsOn(val *[]*string) { _jsii_.Set( j, "dependsOn", @@ -436,7 +435,7 @@ func (j *jsiiProxy_UserMapping)SetDependsOn(val *[]*string) { ) } -func (j *jsiiProxy_UserMapping)SetForEach(val cdktf.ITerraformIterator) { +func (j *jsiiProxy_UserMapping) SetForEach(val cdktf.ITerraformIterator) { _jsii_.Set( j, "forEach", @@ -444,7 +443,7 @@ func (j *jsiiProxy_UserMapping)SetForEach(val cdktf.ITerraformIterator) { ) } -func (j *jsiiProxy_UserMapping)SetId(val *string) { +func (j *jsiiProxy_UserMapping) SetId(val *string) { if err := j.validateSetIdParameters(val); err != nil { panic(err) } @@ -455,7 +454,7 @@ func (j *jsiiProxy_UserMapping)SetId(val *string) { ) } -func (j *jsiiProxy_UserMapping)SetLifecycle(val *cdktf.TerraformResourceLifecycle) { +func (j *jsiiProxy_UserMapping) SetLifecycle(val *cdktf.TerraformResourceLifecycle) { if err := j.validateSetLifecycleParameters(val); err != nil { panic(err) } @@ -466,7 +465,7 @@ func (j *jsiiProxy_UserMapping)SetLifecycle(val *cdktf.TerraformResourceLifecycl ) } -func (j *jsiiProxy_UserMapping)SetOptions(val *map[string]*string) { +func (j *jsiiProxy_UserMapping) SetOptions(val *map[string]*string) { if err := j.validateSetOptionsParameters(val); err != nil { panic(err) } @@ -477,7 +476,7 @@ func (j *jsiiProxy_UserMapping)SetOptions(val *map[string]*string) { ) } -func (j *jsiiProxy_UserMapping)SetProvider(val cdktf.TerraformProvider) { +func (j *jsiiProxy_UserMapping) SetProvider(val cdktf.TerraformProvider) { _jsii_.Set( j, "provider", @@ -485,7 +484,7 @@ func (j *jsiiProxy_UserMapping)SetProvider(val cdktf.TerraformProvider) { ) } -func (j *jsiiProxy_UserMapping)SetProvisioners(val *[]interface{}) { +func (j *jsiiProxy_UserMapping) SetProvisioners(val *[]any) { if err := j.validateSetProvisionersParameters(val); err != nil { panic(err) } @@ -496,7 +495,7 @@ func (j *jsiiProxy_UserMapping)SetProvisioners(val *[]interface{}) { ) } -func (j *jsiiProxy_UserMapping)SetServerName(val *string) { +func (j *jsiiProxy_UserMapping) SetServerName(val *string) { if err := j.validateSetServerNameParameters(val); err != nil { panic(err) } @@ -507,7 +506,7 @@ func (j *jsiiProxy_UserMapping)SetServerName(val *string) { ) } -func (j *jsiiProxy_UserMapping)SetUserName(val *string) { +func (j *jsiiProxy_UserMapping) SetUserName(val *string) { if err := j.validateSetUserNameParameters(val); err != nil { panic(err) } @@ -530,7 +529,7 @@ func UserMapping_GenerateConfigForImport(scope constructs.Construct, importToId _jsii_.StaticInvoke( "@cdktf/provider-postgresql.userMapping.UserMapping", "generateConfigForImport", - []interface{}{scope, importToId, importFromId, provider}, + []any{scope, importToId, importFromId, provider}, &returns, ) @@ -554,7 +553,7 @@ func UserMapping_GenerateConfigForImport(scope constructs.Construct, importToId // this type-testing method instead. // // Returns: true if `x` is an object created from a class which extends `Construct`. -func UserMapping_IsConstruct(x interface{}) *bool { +func UserMapping_IsConstruct(x any) *bool { _init_.Initialize() if err := validateUserMapping_IsConstructParameters(x); err != nil { @@ -565,7 +564,7 @@ func UserMapping_IsConstruct(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.userMapping.UserMapping", "isConstruct", - []interface{}{x}, + []any{x}, &returns, ) @@ -573,7 +572,7 @@ func UserMapping_IsConstruct(x interface{}) *bool { } // Experimental. -func UserMapping_IsTerraformElement(x interface{}) *bool { +func UserMapping_IsTerraformElement(x any) *bool { _init_.Initialize() if err := validateUserMapping_IsTerraformElementParameters(x); err != nil { @@ -584,7 +583,7 @@ func UserMapping_IsTerraformElement(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.userMapping.UserMapping", "isTerraformElement", - []interface{}{x}, + []any{x}, &returns, ) @@ -592,7 +591,7 @@ func UserMapping_IsTerraformElement(x interface{}) *bool { } // Experimental. -func UserMapping_IsTerraformResource(x interface{}) *bool { +func UserMapping_IsTerraformResource(x any) *bool { _init_.Initialize() if err := validateUserMapping_IsTerraformResourceParameters(x); err != nil { @@ -603,7 +602,7 @@ func UserMapping_IsTerraformResource(x interface{}) *bool { _jsii_.StaticInvoke( "@cdktf/provider-postgresql.userMapping.UserMapping", "isTerraformResource", - []interface{}{x}, + []any{x}, &returns, ) @@ -628,31 +627,31 @@ func (u *jsiiProxy_UserMapping) AddMoveTarget(moveTarget *string) { _jsii_.InvokeVoid( u, "addMoveTarget", - []interface{}{moveTarget}, + []any{moveTarget}, ) } -func (u *jsiiProxy_UserMapping) AddOverride(path *string, value interface{}) { +func (u *jsiiProxy_UserMapping) AddOverride(path *string, value any) { if err := u.validateAddOverrideParameters(path, value); err != nil { panic(err) } _jsii_.InvokeVoid( u, "addOverride", - []interface{}{path, value}, + []any{path, value}, ) } -func (u *jsiiProxy_UserMapping) GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} { +func (u *jsiiProxy_UserMapping) GetAnyMapAttribute(terraformAttribute *string) *map[string]any { if err := u.validateGetAnyMapAttributeParameters(terraformAttribute); err != nil { panic(err) } - var returns *map[string]interface{} + var returns *map[string]any _jsii_.Invoke( u, "getAnyMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -668,7 +667,7 @@ func (u *jsiiProxy_UserMapping) GetBooleanAttribute(terraformAttribute *string) _jsii_.Invoke( u, "getBooleanAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -684,7 +683,7 @@ func (u *jsiiProxy_UserMapping) GetBooleanMapAttribute(terraformAttribute *strin _jsii_.Invoke( u, "getBooleanMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -700,7 +699,7 @@ func (u *jsiiProxy_UserMapping) GetListAttribute(terraformAttribute *string) *[] _jsii_.Invoke( u, "getListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -716,7 +715,7 @@ func (u *jsiiProxy_UserMapping) GetNumberAttribute(terraformAttribute *string) * _jsii_.Invoke( u, "getNumberAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -732,7 +731,7 @@ func (u *jsiiProxy_UserMapping) GetNumberListAttribute(terraformAttribute *strin _jsii_.Invoke( u, "getNumberListAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -748,7 +747,7 @@ func (u *jsiiProxy_UserMapping) GetNumberMapAttribute(terraformAttribute *string _jsii_.Invoke( u, "getNumberMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -764,7 +763,7 @@ func (u *jsiiProxy_UserMapping) GetStringAttribute(terraformAttribute *string) * _jsii_.Invoke( u, "getStringAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -780,15 +779,15 @@ func (u *jsiiProxy_UserMapping) GetStringMapAttribute(terraformAttribute *string _jsii_.Invoke( u, "getStringMapAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) return returns } -func (u *jsiiProxy_UserMapping) HasResourceMove() interface{} { - var returns interface{} +func (u *jsiiProxy_UserMapping) HasResourceMove() any { + var returns any _jsii_.Invoke( u, @@ -807,7 +806,7 @@ func (u *jsiiProxy_UserMapping) ImportFrom(id *string, provider cdktf.TerraformP _jsii_.InvokeVoid( u, "importFrom", - []interface{}{id, provider}, + []any{id, provider}, ) } @@ -820,7 +819,7 @@ func (u *jsiiProxy_UserMapping) InterpolationForAttribute(terraformAttribute *st _jsii_.Invoke( u, "interpolationForAttribute", - []interface{}{terraformAttribute}, + []any{terraformAttribute}, &returns, ) @@ -834,18 +833,18 @@ func (u *jsiiProxy_UserMapping) MoveFromId(id *string) { _jsii_.InvokeVoid( u, "moveFromId", - []interface{}{id}, + []any{id}, ) } -func (u *jsiiProxy_UserMapping) MoveTo(moveTarget *string, index interface{}) { +func (u *jsiiProxy_UserMapping) MoveTo(moveTarget *string, index any) { if err := u.validateMoveToParameters(moveTarget, index); err != nil { panic(err) } _jsii_.InvokeVoid( u, "moveTo", - []interface{}{moveTarget, index}, + []any{moveTarget, index}, ) } @@ -856,7 +855,7 @@ func (u *jsiiProxy_UserMapping) MoveToId(id *string) { _jsii_.InvokeVoid( u, "moveToId", - []interface{}{id}, + []any{id}, ) } @@ -867,7 +866,7 @@ func (u *jsiiProxy_UserMapping) OverrideLogicalId(newLogicalId *string) { _jsii_.InvokeVoid( u, "overrideLogicalId", - []interface{}{newLogicalId}, + []any{newLogicalId}, ) } @@ -895,8 +894,8 @@ func (u *jsiiProxy_UserMapping) ResetOverrideLogicalId() { ) } -func (u *jsiiProxy_UserMapping) SynthesizeAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (u *jsiiProxy_UserMapping) SynthesizeAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( u, @@ -908,8 +907,8 @@ func (u *jsiiProxy_UserMapping) SynthesizeAttributes() *map[string]interface{} { return returns } -func (u *jsiiProxy_UserMapping) SynthesizeHclAttributes() *map[string]interface{} { - var returns *map[string]interface{} +func (u *jsiiProxy_UserMapping) SynthesizeHclAttributes() *map[string]any { + var returns *map[string]any _jsii_.Invoke( u, @@ -921,8 +920,8 @@ func (u *jsiiProxy_UserMapping) SynthesizeHclAttributes() *map[string]interface{ return returns } -func (u *jsiiProxy_UserMapping) ToHclTerraform() interface{} { - var returns interface{} +func (u *jsiiProxy_UserMapping) ToHclTerraform() any { + var returns any _jsii_.Invoke( u, @@ -934,8 +933,8 @@ func (u *jsiiProxy_UserMapping) ToHclTerraform() interface{} { return returns } -func (u *jsiiProxy_UserMapping) ToMetadata() interface{} { - var returns interface{} +func (u *jsiiProxy_UserMapping) ToMetadata() any { + var returns any _jsii_.Invoke( u, @@ -960,8 +959,8 @@ func (u *jsiiProxy_UserMapping) ToString() *string { return returns } -func (u *jsiiProxy_UserMapping) ToTerraform() interface{} { - var returns interface{} +func (u *jsiiProxy_UserMapping) ToTerraform() any { + var returns any _jsii_.Invoke( u, @@ -972,4 +971,3 @@ func (u *jsiiProxy_UserMapping) ToTerraform() interface{} { return returns } - diff --git a/gen/postgresql/usermapping/UserMappingConfig.go b/gen/postgresql/usermapping/UserMappingConfig.go index dc12d0037a..0a04e56ee6 100644 --- a/gen/postgresql/usermapping/UserMappingConfig.go +++ b/gen/postgresql/usermapping/UserMappingConfig.go @@ -6,9 +6,9 @@ import ( type UserMappingConfig struct { // Experimental. - Connection interface{} `field:"optional" json:"connection" yaml:"connection"` + Connection any `field:"optional" json:"connection" yaml:"connection"` // Experimental. - Count interface{} `field:"optional" json:"count" yaml:"count"` + Count any `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. @@ -18,7 +18,7 @@ type UserMappingConfig struct { // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. - Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` + Provisioners *[]any `field:"optional" json:"provisioners" yaml:"provisioners"` // The name of an existing server for which the user mapping is to be created. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/user_mapping#server_name UserMapping#server_name} @@ -41,4 +41,3 @@ type UserMappingConfig struct { // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.25.0-sg.4/docs/resources/user_mapping#options UserMapping#options} Options *map[string]*string `field:"optional" json:"options" yaml:"options"` } - diff --git a/gen/postgresql/usermapping/UserMapping__checks.go b/gen/postgresql/usermapping/UserMapping__checks.go index 6a66574f6a..96af2d3252 100644 --- a/gen/postgresql/usermapping/UserMapping__checks.go +++ b/gen/postgresql/usermapping/UserMapping__checks.go @@ -19,7 +19,7 @@ func (u *jsiiProxy_UserMapping) validateAddMoveTargetParameters(moveTarget *stri return nil } -func (u *jsiiProxy_UserMapping) validateAddOverrideParameters(path *string, value interface{}) error { +func (u *jsiiProxy_UserMapping) validateAddOverrideParameters(path *string, value any) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } @@ -127,7 +127,7 @@ func (u *jsiiProxy_UserMapping) validateMoveFromIdParameters(id *string) error { return nil } -func (u *jsiiProxy_UserMapping) validateMoveToParameters(moveTarget *string, index interface{}) error { +func (u *jsiiProxy_UserMapping) validateMoveToParameters(moveTarget *string, index any) error { if moveTarget == nil { return fmt.Errorf("parameter moveTarget is required, but nil was provided") } @@ -220,7 +220,7 @@ func validateUserMapping_GenerateConfigForImportParameters(scope constructs.Cons return nil } -func validateUserMapping_IsConstructParameters(x interface{}) error { +func validateUserMapping_IsConstructParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -228,7 +228,7 @@ func validateUserMapping_IsConstructParameters(x interface{}) error { return nil } -func validateUserMapping_IsTerraformElementParameters(x interface{}) error { +func validateUserMapping_IsTerraformElementParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -236,7 +236,7 @@ func validateUserMapping_IsTerraformElementParameters(x interface{}) error { return nil } -func validateUserMapping_IsTerraformResourceParameters(x interface{}) error { +func validateUserMapping_IsTerraformResourceParameters(x any) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } @@ -244,7 +244,7 @@ func validateUserMapping_IsTerraformResourceParameters(x interface{}) error { return nil } -func (j *jsiiProxy_UserMapping) validateSetConnectionParameters(val interface{}) error { +func (j *jsiiProxy_UserMapping) validateSetConnectionParameters(val any) error { switch val.(type) { case *cdktf.SSHProvisionerConnection: val := val.(*cdktf.SSHProvisionerConnection) @@ -277,7 +277,7 @@ func (j *jsiiProxy_UserMapping) validateSetConnectionParameters(val interface{}) return nil } -func (j *jsiiProxy_UserMapping) validateSetCountParameters(val interface{}) error { +func (j *jsiiProxy_UserMapping) validateSetCountParameters(val any) error { switch val.(type) { case *float64: // ok @@ -358,7 +358,7 @@ func (j *jsiiProxy_UserMapping) validateSetOptionsParameters(val *map[string]*st return nil } -func (j *jsiiProxy_UserMapping) validateSetProvisionersParameters(val *[]interface{}) error { +func (j *jsiiProxy_UserMapping) validateSetProvisionersParameters(val *[]any) error { for idx_97dfc6, v := range *val { switch v.(type) { case *cdktf.FileProvisioner: @@ -438,4 +438,3 @@ func validateNewUserMappingParameters(scope constructs.Construct, id *string, co return nil } - diff --git a/gen/postgresql/usermapping/main.go b/gen/postgresql/usermapping/main.go index 55d547ab85..944b7866b5 100644 --- a/gen/postgresql/usermapping/main.go +++ b/gen/postgresql/usermapping/main.go @@ -9,7 +9,7 @@ import ( func init() { _jsii_.RegisterClass( "@cdktf/provider-postgresql.userMapping.UserMapping", - reflect.TypeOf((*UserMapping)(nil)).Elem(), + reflect.TypeFor[UserMapping](), []_jsii_.Member{ _jsii_.MemberMethod{JsiiMethod: "addMoveTarget", GoMethod: "AddMoveTarget"}, _jsii_.MemberMethod{JsiiMethod: "addOverride", GoMethod: "AddOverride"}, @@ -63,7 +63,7 @@ func init() { _jsii_.MemberProperty{JsiiProperty: "userName", GoGetter: "UserName"}, _jsii_.MemberProperty{JsiiProperty: "userNameInput", GoGetter: "UserNameInput"}, }, - func() interface{} { + func() any { j := jsiiProxy_UserMapping{} _jsii_.InitJsiiProxy(&j.Type__cdktfTerraformResource) return &j @@ -71,6 +71,6 @@ func init() { ) _jsii_.RegisterStruct( "@cdktf/provider-postgresql.userMapping.UserMappingConfig", - reflect.TypeOf((*UserMappingConfig)(nil)).Elem(), + reflect.TypeFor[UserMappingConfig](), ) }