//go:build !no_runtime_type_checking package awscodedeploy 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_CfnDeploymentGroup) validateAddDeletionOverrideParameters(path *string) error { if path == nil { return fmt.Errorf("parameter path is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDeploymentGroup) validateAddDependencyParameters(target awscdk.CfnResource) error { if target == nil { return fmt.Errorf("parameter target is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDeploymentGroup) validateAddDependsOnParameters(target awscdk.CfnResource) error { if target == nil { return fmt.Errorf("parameter target is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDeploymentGroup) 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_CfnDeploymentGroup) 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_CfnDeploymentGroup) validateAddPropertyDeletionOverrideParameters(propertyPath *string) error { if propertyPath == nil { return fmt.Errorf("parameter propertyPath is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDeploymentGroup) 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_CfnDeploymentGroup) validateApplyRemovalPolicyParameters(options *awscdk.RemovalPolicyOptions) error { if err := _jsii_.ValidateStruct(options, func() string { return "parameter options" }); err != nil { return err } return nil } func (c *jsiiProxy_CfnDeploymentGroup) validateGetAttParameters(attributeName *string) error { if attributeName == nil { return fmt.Errorf("parameter attributeName is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDeploymentGroup) validateGetMetadataParameters(key *string) error { if key == nil { return fmt.Errorf("parameter key is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDeploymentGroup) validateInspectParameters(inspector awscdk.TreeInspector) error { if inspector == nil { return fmt.Errorf("parameter inspector is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDeploymentGroup) validateOverrideLogicalIdParameters(newLogicalId *string) error { if newLogicalId == nil { return fmt.Errorf("parameter newLogicalId is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDeploymentGroup) validateRemoveDependencyParameters(target awscdk.CfnResource) error { if target == nil { return fmt.Errorf("parameter target is required, but nil was provided") } return nil } func (c *jsiiProxy_CfnDeploymentGroup) 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_CfnDeploymentGroup) 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_CfnDeploymentGroup) validateValidatePropertiesParameters(_properties interface{}) error { if _properties == nil { return fmt.Errorf("parameter _properties is required, but nil was provided") } return nil } func validateCfnDeploymentGroup_IsCfnElementParameters(x interface{}) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } return nil } func validateCfnDeploymentGroup_IsCfnResourceParameters(construct constructs.IConstruct) error { if construct == nil { return fmt.Errorf("parameter construct is required, but nil was provided") } return nil } func validateCfnDeploymentGroup_IsConstructParameters(x interface{}) error { if x == nil { return fmt.Errorf("parameter x is required, but nil was provided") } return nil } func (j *jsiiProxy_CfnDeploymentGroup) validateSetAlarmConfigurationParameters(val interface{}) error { switch val.(type) { case awscdk.IResolvable: // ok case *CfnDeploymentGroup_AlarmConfigurationProperty: val := val.(*CfnDeploymentGroup_AlarmConfigurationProperty) if err := _jsii_.ValidateStruct(val, func() string { return "parameter val" }); err != nil { return err } case CfnDeploymentGroup_AlarmConfigurationProperty: val_ := val.(CfnDeploymentGroup_AlarmConfigurationProperty) 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, *CfnDeploymentGroup_AlarmConfigurationProperty; received %#v (a %T)", val, val) } } return nil } func (j *jsiiProxy_CfnDeploymentGroup) validateSetApplicationNameParameters(val *string) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } return nil } func (j *jsiiProxy_CfnDeploymentGroup) validateSetAutoRollbackConfigurationParameters(val interface{}) error { switch val.(type) { case awscdk.IResolvable: // ok case *CfnDeploymentGroup_AutoRollbackConfigurationProperty: val := val.(*CfnDeploymentGroup_AutoRollbackConfigurationProperty) if err := _jsii_.ValidateStruct(val, func() string { return "parameter val" }); err != nil { return err } case CfnDeploymentGroup_AutoRollbackConfigurationProperty: val_ := val.(CfnDeploymentGroup_AutoRollbackConfigurationProperty) 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, *CfnDeploymentGroup_AutoRollbackConfigurationProperty; received %#v (a %T)", val, val) } } return nil } func (j *jsiiProxy_CfnDeploymentGroup) validateSetBlueGreenDeploymentConfigurationParameters(val interface{}) error { switch val.(type) { case awscdk.IResolvable: // ok case *CfnDeploymentGroup_BlueGreenDeploymentConfigurationProperty: val := val.(*CfnDeploymentGroup_BlueGreenDeploymentConfigurationProperty) if err := _jsii_.ValidateStruct(val, func() string { return "parameter val" }); err != nil { return err } case CfnDeploymentGroup_BlueGreenDeploymentConfigurationProperty: val_ := val.(CfnDeploymentGroup_BlueGreenDeploymentConfigurationProperty) 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, *CfnDeploymentGroup_BlueGreenDeploymentConfigurationProperty; received %#v (a %T)", val, val) } } return nil } func (j *jsiiProxy_CfnDeploymentGroup) validateSetDeploymentParameters(val interface{}) error { switch val.(type) { case awscdk.IResolvable: // ok case *CfnDeploymentGroup_DeploymentProperty: val := val.(*CfnDeploymentGroup_DeploymentProperty) if err := _jsii_.ValidateStruct(val, func() string { return "parameter val" }); err != nil { return err } case CfnDeploymentGroup_DeploymentProperty: val_ := val.(CfnDeploymentGroup_DeploymentProperty) 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, *CfnDeploymentGroup_DeploymentProperty; received %#v (a %T)", val, val) } } return nil } func (j *jsiiProxy_CfnDeploymentGroup) validateSetDeploymentStyleParameters(val interface{}) error { switch val.(type) { case awscdk.IResolvable: // ok case *CfnDeploymentGroup_DeploymentStyleProperty: val := val.(*CfnDeploymentGroup_DeploymentStyleProperty) if err := _jsii_.ValidateStruct(val, func() string { return "parameter val" }); err != nil { return err } case CfnDeploymentGroup_DeploymentStyleProperty: val_ := val.(CfnDeploymentGroup_DeploymentStyleProperty) 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, *CfnDeploymentGroup_DeploymentStyleProperty; received %#v (a %T)", val, val) } } return nil } func (j *jsiiProxy_CfnDeploymentGroup) validateSetEc2TagFiltersParameters(val interface{}) error { switch val.(type) { case awscdk.IResolvable: // ok case *[]interface{}: val := val.(*[]interface{}) for idx_97dfc6, v := range *val { switch v.(type) { case awscdk.IResolvable: // ok case *CfnDeploymentGroup_EC2TagFilterProperty: v := v.(*CfnDeploymentGroup_EC2TagFilterProperty) if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil { return err } case CfnDeploymentGroup_EC2TagFilterProperty: v_ := v.(CfnDeploymentGroup_EC2TagFilterProperty) v := &v_ if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil { return err } default: if !_jsii_.IsAnonymousProxy(v) { return fmt.Errorf("parameter val[%#v] must be one of the allowed types: awscdk.IResolvable, *CfnDeploymentGroup_EC2TagFilterProperty; received %#v (a %T)", idx_97dfc6, v, v) } } } case []interface{}: val_ := val.([]interface{}) val := &val_ for idx_97dfc6, v := range *val { switch v.(type) { case awscdk.IResolvable: // ok case *CfnDeploymentGroup_EC2TagFilterProperty: v := v.(*CfnDeploymentGroup_EC2TagFilterProperty) if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil { return err } case CfnDeploymentGroup_EC2TagFilterProperty: v_ := v.(CfnDeploymentGroup_EC2TagFilterProperty) v := &v_ if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil { return err } default: if !_jsii_.IsAnonymousProxy(v) { return fmt.Errorf("parameter val[%#v] must be one of the allowed types: awscdk.IResolvable, *CfnDeploymentGroup_EC2TagFilterProperty; received %#v (a %T)", idx_97dfc6, v, v) } } } default: if !_jsii_.IsAnonymousProxy(val) { return fmt.Errorf("parameter val must be one of the allowed types: awscdk.IResolvable, *[]interface{}; received %#v (a %T)", val, val) } } return nil } func (j *jsiiProxy_CfnDeploymentGroup) validateSetEc2TagSetParameters(val interface{}) error { switch val.(type) { case awscdk.IResolvable: // ok case *CfnDeploymentGroup_EC2TagSetProperty: val := val.(*CfnDeploymentGroup_EC2TagSetProperty) if err := _jsii_.ValidateStruct(val, func() string { return "parameter val" }); err != nil { return err } case CfnDeploymentGroup_EC2TagSetProperty: val_ := val.(CfnDeploymentGroup_EC2TagSetProperty) 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, *CfnDeploymentGroup_EC2TagSetProperty; received %#v (a %T)", val, val) } } return nil } func (j *jsiiProxy_CfnDeploymentGroup) validateSetEcsServicesParameters(val interface{}) error { switch val.(type) { case awscdk.IResolvable: // ok case *[]interface{}: val := val.(*[]interface{}) for idx_97dfc6, v := range *val { switch v.(type) { case awscdk.IResolvable: // ok case *CfnDeploymentGroup_ECSServiceProperty: v := v.(*CfnDeploymentGroup_ECSServiceProperty) if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil { return err } case CfnDeploymentGroup_ECSServiceProperty: v_ := v.(CfnDeploymentGroup_ECSServiceProperty) v := &v_ if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil { return err } default: if !_jsii_.IsAnonymousProxy(v) { return fmt.Errorf("parameter val[%#v] must be one of the allowed types: awscdk.IResolvable, *CfnDeploymentGroup_ECSServiceProperty; received %#v (a %T)", idx_97dfc6, v, v) } } } case []interface{}: val_ := val.([]interface{}) val := &val_ for idx_97dfc6, v := range *val { switch v.(type) { case awscdk.IResolvable: // ok case *CfnDeploymentGroup_ECSServiceProperty: v := v.(*CfnDeploymentGroup_ECSServiceProperty) if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil { return err } case CfnDeploymentGroup_ECSServiceProperty: v_ := v.(CfnDeploymentGroup_ECSServiceProperty) v := &v_ if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil { return err } default: if !_jsii_.IsAnonymousProxy(v) { return fmt.Errorf("parameter val[%#v] must be one of the allowed types: awscdk.IResolvable, *CfnDeploymentGroup_ECSServiceProperty; received %#v (a %T)", idx_97dfc6, v, v) } } } default: if !_jsii_.IsAnonymousProxy(val) { return fmt.Errorf("parameter val must be one of the allowed types: awscdk.IResolvable, *[]interface{}; received %#v (a %T)", val, val) } } return nil } func (j *jsiiProxy_CfnDeploymentGroup) validateSetLoadBalancerInfoParameters(val interface{}) error { switch val.(type) { case awscdk.IResolvable: // ok case *CfnDeploymentGroup_LoadBalancerInfoProperty: val := val.(*CfnDeploymentGroup_LoadBalancerInfoProperty) if err := _jsii_.ValidateStruct(val, func() string { return "parameter val" }); err != nil { return err } case CfnDeploymentGroup_LoadBalancerInfoProperty: val_ := val.(CfnDeploymentGroup_LoadBalancerInfoProperty) 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, *CfnDeploymentGroup_LoadBalancerInfoProperty; received %#v (a %T)", val, val) } } return nil } func (j *jsiiProxy_CfnDeploymentGroup) validateSetOnPremisesInstanceTagFiltersParameters(val interface{}) error { switch val.(type) { case awscdk.IResolvable: // ok case *[]interface{}: val := val.(*[]interface{}) for idx_97dfc6, v := range *val { switch v.(type) { case awscdk.IResolvable: // ok case *CfnDeploymentGroup_TagFilterProperty: v := v.(*CfnDeploymentGroup_TagFilterProperty) if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil { return err } case CfnDeploymentGroup_TagFilterProperty: v_ := v.(CfnDeploymentGroup_TagFilterProperty) v := &v_ if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil { return err } default: if !_jsii_.IsAnonymousProxy(v) { return fmt.Errorf("parameter val[%#v] must be one of the allowed types: awscdk.IResolvable, *CfnDeploymentGroup_TagFilterProperty; received %#v (a %T)", idx_97dfc6, v, v) } } } case []interface{}: val_ := val.([]interface{}) val := &val_ for idx_97dfc6, v := range *val { switch v.(type) { case awscdk.IResolvable: // ok case *CfnDeploymentGroup_TagFilterProperty: v := v.(*CfnDeploymentGroup_TagFilterProperty) if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil { return err } case CfnDeploymentGroup_TagFilterProperty: v_ := v.(CfnDeploymentGroup_TagFilterProperty) v := &v_ if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil { return err } default: if !_jsii_.IsAnonymousProxy(v) { return fmt.Errorf("parameter val[%#v] must be one of the allowed types: awscdk.IResolvable, *CfnDeploymentGroup_TagFilterProperty; received %#v (a %T)", idx_97dfc6, v, v) } } } default: if !_jsii_.IsAnonymousProxy(val) { return fmt.Errorf("parameter val must be one of the allowed types: awscdk.IResolvable, *[]interface{}; received %#v (a %T)", val, val) } } return nil } func (j *jsiiProxy_CfnDeploymentGroup) validateSetOnPremisesTagSetParameters(val interface{}) error { switch val.(type) { case awscdk.IResolvable: // ok case *CfnDeploymentGroup_OnPremisesTagSetProperty: val := val.(*CfnDeploymentGroup_OnPremisesTagSetProperty) if err := _jsii_.ValidateStruct(val, func() string { return "parameter val" }); err != nil { return err } case CfnDeploymentGroup_OnPremisesTagSetProperty: val_ := val.(CfnDeploymentGroup_OnPremisesTagSetProperty) 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, *CfnDeploymentGroup_OnPremisesTagSetProperty; received %#v (a %T)", val, val) } } return nil } func (j *jsiiProxy_CfnDeploymentGroup) validateSetServiceRoleArnParameters(val *string) error { if val == nil { return fmt.Errorf("parameter val is required, but nil was provided") } return nil } func (j *jsiiProxy_CfnDeploymentGroup) validateSetTagsRawParameters(val *[]*awscdk.CfnTag) error { for idx_97dfc6, v := range *val { if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil { return err } } return nil } func (j *jsiiProxy_CfnDeploymentGroup) validateSetTriggerConfigurationsParameters(val interface{}) error { switch val.(type) { case awscdk.IResolvable: // ok case *[]interface{}: val := val.(*[]interface{}) for idx_97dfc6, v := range *val { switch v.(type) { case awscdk.IResolvable: // ok case *CfnDeploymentGroup_TriggerConfigProperty: v := v.(*CfnDeploymentGroup_TriggerConfigProperty) if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil { return err } case CfnDeploymentGroup_TriggerConfigProperty: v_ := v.(CfnDeploymentGroup_TriggerConfigProperty) v := &v_ if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil { return err } default: if !_jsii_.IsAnonymousProxy(v) { return fmt.Errorf("parameter val[%#v] must be one of the allowed types: awscdk.IResolvable, *CfnDeploymentGroup_TriggerConfigProperty; received %#v (a %T)", idx_97dfc6, v, v) } } } case []interface{}: val_ := val.([]interface{}) val := &val_ for idx_97dfc6, v := range *val { switch v.(type) { case awscdk.IResolvable: // ok case *CfnDeploymentGroup_TriggerConfigProperty: v := v.(*CfnDeploymentGroup_TriggerConfigProperty) if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil { return err } case CfnDeploymentGroup_TriggerConfigProperty: v_ := v.(CfnDeploymentGroup_TriggerConfigProperty) v := &v_ if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil { return err } default: if !_jsii_.IsAnonymousProxy(v) { return fmt.Errorf("parameter val[%#v] must be one of the allowed types: awscdk.IResolvable, *CfnDeploymentGroup_TriggerConfigProperty; received %#v (a %T)", idx_97dfc6, v, v) } } } default: if !_jsii_.IsAnonymousProxy(val) { return fmt.Errorf("parameter val must be one of the allowed types: awscdk.IResolvable, *[]interface{}; received %#v (a %T)", val, val) } } return nil } func validateNewCfnDeploymentGroupParameters(scope constructs.Construct, id *string, props *CfnDeploymentGroupProps) 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 }