//go:build !no_runtime_type_checking package awsappsync import ( "fmt" _jsii_ "github.com/aws/jsii-runtime-go/runtime" "github.com/aws/aws-cdk-go/awscdk/v2" "github.com/aws/constructs-go/constructs/v10" ) func (c *jsiiProxy_CfnDataSource) validateAddDeletionOverrideParameters(path *string) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDataSource) validateAddDependencyParameters(target awscdk.CfnResource) error { if target == nil { return fmt.Errorf("parameter target is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDataSource) validateAddDependsOnParameters(target awscdk.CfnResource) error { if target == nil { return fmt.Errorf("parameter target is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDataSource) validateAddMetadataParameters(key *string, value interface{}) error { if key == nil { return fmt.Errorf("parameter key is required, but nil was provided") } if value == nil { return fmt.Errorf("parameter value is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDataSource) validateAddOverrideParameters(path *string, value interface{}) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } if value == nil { return fmt.Errorf("parameter value is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDataSource) validateAddPropertyDeletionOverrideParameters(propertyPath *string) error { if propertyPath == nil { return fmt.Errorf("parameter propertyPath is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDataSource) validateAddPropertyOverrideParameters(propertyPath *string, value interface{}) error { if propertyPath == nil { return fmt.Errorf("parameter propertyPath is required, but nil was provided") } if value == nil { return fmt.Errorf("parameter value is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDataSource) validateApplyRemovalPolicyParameters(options *awscdk.RemovalPolicyOptions) error { if err := _jsii_.ValidateStruct(options, func() string { return "parameter options" }); err != nil { return err } return nil } func (c *jsiiProxy_CfnDataSource) validateGetAttParameters(attributeName *string) error { if attributeName == nil { return fmt.Errorf("parameter attributeName is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDataSource) validateGetMetadataParameters(key *string) error { if key == nil { return fmt.Errorf("parameter key is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDataSource) validateInspectParameters(inspector awscdk.TreeInspector) error { if inspector == nil { return fmt.Errorf("parameter inspector is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDataSource) validateOverrideLogicalIdParameters(newLogicalId *string) error { if newLogicalId == nil { return fmt.Errorf("parameter newLogicalId is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDataSource) validateRemoveDependencyParameters(target awscdk.CfnResource) error { if target == nil { return fmt.Errorf("parameter target is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDataSource) validateRenderPropertiesParameters(props *map[string]interface{}) error { if props == nil { return fmt.Errorf("parameter props is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDataSource) validateReplaceDependencyParameters(target awscdk.CfnResource, newTarget awscdk.CfnResource) error { if target == nil { return fmt.Errorf("parameter target is required, but nil was provided") } if newTarget == nil { return fmt.Errorf("parameter newTarget is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDataSource) validateValidatePropertiesParameters(_properties interface{}) error { if _properties == nil { return fmt.Errorf("parameter _properties is required, but nil was provided") } return nil } func validateCfnDataSource_IsCfnElementParameters(x interface{}) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } return nil } func validateCfnDataSource_IsCfnResourceParameters(construct constructs.IConstruct) error { if construct == nil { return fmt.Errorf("parameter construct is required, but nil was provided") } return nil } func validateCfnDataSource_IsConstructParameters(x interface{}) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } return nil } func (j *jsiiProxy_CfnDataSource) validateSetApiIdParameters(val *string) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } return nil } func (j *jsiiProxy_CfnDataSource) validateSetDynamoDbConfigParameters(val interface{}) error { switch val.(type) { case awscdk.IResolvable: // ok case *CfnDataSource_DynamoDBConfigProperty: val := val.(*CfnDataSource_DynamoDBConfigProperty) if err := _jsii_.ValidateStruct(val, func() string { return "parameter val" }); err != nil { return err } case CfnDataSource_DynamoDBConfigProperty: val_ := val.(CfnDataSource_DynamoDBConfigProperty) val := &val_ if err := _jsii_.ValidateStruct(val, func() string { return "parameter val" }); err != nil { return err } default: if !_jsii_.IsAnonymousProxy(val) { return fmt.Errorf("parameter val must be one of the allowed types: awscdk.IResolvable, *CfnDataSource_DynamoDBConfigProperty; received %#v (a %T)", val, val) } } return nil } func (j *jsiiProxy_CfnDataSource) validateSetElasticsearchConfigParameters(val interface{}) error { switch val.(type) { case awscdk.IResolvable: // ok case *CfnDataSource_ElasticsearchConfigProperty: val := val.(*CfnDataSource_ElasticsearchConfigProperty) if err := _jsii_.ValidateStruct(val, func() string { return "parameter val" }); err != nil { return err } case CfnDataSource_ElasticsearchConfigProperty: val_ := val.(CfnDataSource_ElasticsearchConfigProperty) val := &val_ if err := _jsii_.ValidateStruct(val, func() string { return "parameter val" }); err != nil { return err } default: if !_jsii_.IsAnonymousProxy(val) { return fmt.Errorf("parameter val must be one of the allowed types: awscdk.IResolvable, *CfnDataSource_ElasticsearchConfigProperty; received %#v (a %T)", val, val) } } return nil } func (j *jsiiProxy_CfnDataSource) validateSetEventBridgeConfigParameters(val interface{}) error { switch val.(type) { case awscdk.IResolvable: // ok case *CfnDataSource_EventBridgeConfigProperty: val := val.(*CfnDataSource_EventBridgeConfigProperty) if err := _jsii_.ValidateStruct(val, func() string { return "parameter val" }); err != nil { return err } case CfnDataSource_EventBridgeConfigProperty: val_ := val.(CfnDataSource_EventBridgeConfigProperty) val := &val_ if err := _jsii_.ValidateStruct(val, func() string { return "parameter val" }); err != nil { return err } default: if !_jsii_.IsAnonymousProxy(val) { return fmt.Errorf("parameter val must be one of the allowed types: awscdk.IResolvable, *CfnDataSource_EventBridgeConfigProperty; received %#v (a %T)", val, val) } } return nil } func (j *jsiiProxy_CfnDataSource) validateSetHttpConfigParameters(val interface{}) error { switch val.(type) { case awscdk.IResolvable: // ok case *CfnDataSource_HttpConfigProperty: val := val.(*CfnDataSource_HttpConfigProperty) if err := _jsii_.ValidateStruct(val, func() string { return "parameter val" }); err != nil { return err } case CfnDataSource_HttpConfigProperty: val_ := val.(CfnDataSource_HttpConfigProperty) val := &val_ if err := _jsii_.ValidateStruct(val, func() string { return "parameter val" }); err != nil { return err } default: if !_jsii_.IsAnonymousProxy(val) { return fmt.Errorf("parameter val must be one of the allowed types: awscdk.IResolvable, *CfnDataSource_HttpConfigProperty; received %#v (a %T)", val, val) } } return nil } func (j *jsiiProxy_CfnDataSource) validateSetLambdaConfigParameters(val interface{}) error { switch val.(type) { case awscdk.IResolvable: // ok case *CfnDataSource_LambdaConfigProperty: val := val.(*CfnDataSource_LambdaConfigProperty) if err := _jsii_.ValidateStruct(val, func() string { return "parameter val" }); err != nil { return err } case CfnDataSource_LambdaConfigProperty: val_ := val.(CfnDataSource_LambdaConfigProperty) val := &val_ if err := _jsii_.ValidateStruct(val, func() string { return "parameter val" }); err != nil { return err } default: if !_jsii_.IsAnonymousProxy(val) { return fmt.Errorf("parameter val must be one of the allowed types: awscdk.IResolvable, *CfnDataSource_LambdaConfigProperty; received %#v (a %T)", val, val) } } return nil } func (j *jsiiProxy_CfnDataSource) validateSetNameParameters(val *string) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } return nil } func (j *jsiiProxy_CfnDataSource) validateSetOpenSearchServiceConfigParameters(val interface{}) error { switch val.(type) { case awscdk.IResolvable: // ok case *CfnDataSource_OpenSearchServiceConfigProperty: val := val.(*CfnDataSource_OpenSearchServiceConfigProperty) if err := _jsii_.ValidateStruct(val, func() string { return "parameter val" }); err != nil { return err } case CfnDataSource_OpenSearchServiceConfigProperty: val_ := val.(CfnDataSource_OpenSearchServiceConfigProperty) val := &val_ if err := _jsii_.ValidateStruct(val, func() string { return "parameter val" }); err != nil { return err } default: if !_jsii_.IsAnonymousProxy(val) { return fmt.Errorf("parameter val must be one of the allowed types: awscdk.IResolvable, *CfnDataSource_OpenSearchServiceConfigProperty; received %#v (a %T)", val, val) } } return nil } func (j *jsiiProxy_CfnDataSource) validateSetRelationalDatabaseConfigParameters(val interface{}) error { switch val.(type) { case awscdk.IResolvable: // ok case *CfnDataSource_RelationalDatabaseConfigProperty: val := val.(*CfnDataSource_RelationalDatabaseConfigProperty) if err := _jsii_.ValidateStruct(val, func() string { return "parameter val" }); err != nil { return err } case CfnDataSource_RelationalDatabaseConfigProperty: val_ := val.(CfnDataSource_RelationalDatabaseConfigProperty) val := &val_ if err := _jsii_.ValidateStruct(val, func() string { return "parameter val" }); err != nil { return err } default: if !_jsii_.IsAnonymousProxy(val) { return fmt.Errorf("parameter val must be one of the allowed types: awscdk.IResolvable, *CfnDataSource_RelationalDatabaseConfigProperty; received %#v (a %T)", val, val) } } return nil } func (j *jsiiProxy_CfnDataSource) validateSetTypeParameters(val *string) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } return nil } func validateNewCfnDataSourceParameters(scope constructs.Construct, id *string, props *CfnDataSourceProps) error { if scope == nil { return fmt.Errorf("parameter scope is required, but nil was provided") } if id == nil { return fmt.Errorf("parameter id is required, but nil was provided") } if props == nil { return fmt.Errorf("parameter props is required, but nil was provided") } if err := _jsii_.ValidateStruct(props, func() string { return "parameter props" }); err != nil { return err } return nil }