func NewSpringCloudAppMysqlAssociation(ctx *pulumi.Context,
	name string, args *SpringCloudAppMysqlAssociationArgs, opts ...pulumi.ResourceOption) (*SpringCloudAppMysqlAssociation, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}

	if args.DatabaseName == nil {
		return nil, errors.New("invalid value for required argument 'DatabaseName'")
	}
	if args.MysqlServerId == nil {
		return nil, errors.New("invalid value for required argument 'MysqlServerId'")
	}
	if args.Password == nil {
		return nil, errors.New("invalid value for required argument 'Password'")
	}
	if args.SpringCloudAppId == nil {
		return nil, errors.New("invalid value for required argument 'SpringCloudAppId'")
	}
	if args.Username == nil {
		return nil, errors.New("invalid value for required argument 'Username'")
	}
	var resource SpringCloudAppMysqlAssociation
	err := ctx.RegisterResource("azure:appplatform/springCloudAppMysqlAssociation:SpringCloudAppMysqlAssociation", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewSpringCloudAppMysqlAssociation registers a new resource with the given unique name, arguments, and options.
NewSpringCloudAppMysqlAssociation registers a new resource with the given unique name, arguments, and options.
// NewSpringCloudAppMysqlAssociation registers a new resource with the given unique name arguments and options .
func NewSpringCloudAppMysqlAssociation(ctx *pulumi.Context,
	name string, args *SpringCloudAppMysqlAssociationArgs, opts ...pulumi.ResourceOption) (*SpringCloudAppMysqlAssociation, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.DatabaseName == nil {
		return nil, errors.New("invalid value for required argument 'DatabaseName'")
	}
	if args.MysqlServerId == nil {
		return nil, errors.New("invalid value for required argument 'MysqlServerId'")
	}
	if args.Password == nil {
		return nil, errors.New("invalid value for required argument 'Password'")
	}
	if args.SpringCloudAppId == nil {
		return nil, errors.New("invalid value for required argument 'SpringCloudAppId'")
	}
	if args.Username == nil {
		return nil, errors.New("invalid value for required argument 'Username'")
	}
	var resource SpringCloudAppMysqlAssociation
	err := ctx.RegisterResource("azure:appplatform/springCloudAppMysqlAssociation:SpringCloudAppMysqlAssociation", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewSpringCloudAppMysqlAssociation ( ctx * pulumi . Context , name string , args * SpringCloudAppMysqlAssociationArgs , opts ... pulumi . ResourceOption ) ( * SpringCloudAppMysqlAssociation , error ) { if args == nil { return nil , errors . New ( " " ) } if args . DatabaseName == nil { return nil , errors . New ( " " ) } if args . MysqlServerId == nil { return nil , errors . New ( " " ) } if args . Password == nil { return nil , errors . New ( " " ) } if args . SpringCloudAppId == nil { return nil , errors . New ( " " ) } if args . Username == nil { return nil , errors . New ( " " ) } var resource SpringCloudAppMysqlAssociation err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewSpringCloudAppMysqlAssociation registers a new resource with the given unique name, arguments, and options.
NewSpringCloudAppMysqlAssociation registers a new resource with the given unique name arguments and options .